hi i have a little conundrum, my client wants to have photo documentation of their projects on their website. now i have both print-quality photos and downsized web-appropriate photos.
the print photos are massive, and because of them hugo takes upto 5 seconds to update each time i make a change
i realise this is not a problem with hugo, but with my personal needs.
is there any way i can get best of both worlds? keep my client happy and yet get maximum performance out of hugo?
how are you storing massive images/files? how do you deal with git? do you store in on long term glacial storage on aws or somesuch?
is there a common solution for this situation? please advise me
Also, are the print quality photos actually used in the site? If not, make sure they don’t live under static that way hugo isn’t wasting time copying over unused photos
Personally I do not recommend using shortcodes for images.
It may be convenient but it does come with a long term cost for image heavy websites.
For single pages that do not have many images I prefer to call them directly from the template like so:
Use the method resources.Get to fetch the images from the /assets/ folder
Combine the above with a Hugo Archetype so that when the command hugo new is executed the image resources are outputed as plain front matter parameters.
Obviously the above requires some planning but it also has the benefit that one can use a high-res image under /assets/ for Hugo to use and at the same time keep it out of version control so that the repo’s size is reasonable.
Finally for single pages that require a lot of images I have found that Page Bundles and plain Markdown syntax images work the best.
I am doing something else to keep large images out of version control. My /assets/ folder resides in my Dropbox account and I have created a Zapier integration to trigger a new deploy on Netlify whenever a file is added in that directory.
{{% imagelist dsc03298 %}} Aufnahme **-2 EV**, Belichtungszeit {{< frac 1 250 >}}<br/>Äußere Strukturen sind zu gut erkennen.{{% /imagelist %}}
{{% imagelist dsc03299 %}} Aufnahme **0 EV**, Belichtungszeit {{% frac 125%}}<br/>Die Decke und die Erker auf der unteren linken Seite sid abgesoffen, durch die Fenster sind äußere Strukturen kaum zu erkennen.{{% /imagelist %}}
{{% imagelist dsc03300 %}} Aufnahme **+2 EV**, Belichtungszeit {{% frac 60%}}<br/>Äußere Strukturen sind zu fast unsichtbar, die Fenster verlieren an Struktur, der Innenraum ist sehr gut abgebildet.{{% /imagelist %}}