You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are several combined issues with the image generation over multiple plugins:
pictures
social (open graph image)
head (favicon generation)
shortcodes (figure, gallery)
SVG:
This is not a raster image format that can be processed with Hugo's image processing functions. It's basically a text file containing rules and options that result in an image on a canvas. The only "processing" possible would be "cropping" the canvas proportions of the image or resizing it by adding sizing options to the container.
GIF:
There is no reason to use the GIF format for a static image. These days most of the GIF images are animations. Hugo seems to be unable to process them (how could it?) and either fails loudly or silently, based on processor resources and timeout settings. It leads even if the processing run does not loudly fail to very long processing times, slowing Hugo down.
For this reason, for now, no SVGs and GIFs will be processed and the plugins will, depending on the use case, fail silently with a warning or loudly with a fail to process these formats.
Keep an eye on this space for updates.
Solution ideas:
adding dedicated shortcodes for SVG images or options to control a container for the image
find out, if the GIF images are animated (how?)
make a switch available to push those images through and output them unprocessed but with all the markup the other (or static) images receive
The text was updated successfully, but these errors were encountered:
There are several combined issues with the image generation over multiple plugins:
SVG:
This is not a raster image format that can be processed with Hugo's image processing functions. It's basically a text file containing rules and options that result in an image on a canvas. The only "processing" possible would be "cropping" the canvas proportions of the image or resizing it by adding sizing options to the container.
GIF:
There is no reason to use the GIF format for a static image. These days most of the GIF images are animations. Hugo seems to be unable to process them (how could it?) and either fails loudly or silently, based on processor resources and
timeout
settings. It leads even if the processing run does not loudly fail to very long processing times, slowing Hugo down.For this reason, for now, no SVGs and GIFs will be processed and the plugins will, depending on the use case, fail silently with a warning or loudly with a fail to process these formats.
Keep an eye on this space for updates.
Solution ideas:
The text was updated successfully, but these errors were encountered: