Closed CaiJimmy closed 11 months ago
Name | Link |
---|---|
Latest commit | |
Latest deploy log | https://app.netlify.com/sites/stirring-liger-36accf/deploys/65270a804c5a0c1caac60f91 |
Deploy Preview | https://deploy-preview-885--stirring-liger-36accf.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Add
allowedTypes
andresizableTypes
toimageProcessing
configurationPrior to this commit, SVG images were not processed by
render-image.html
because SVG does not have a physical dimension like JPEG. This logic was done using a conditional.I have now realised that Hugo can be very slow when resizing
gif
images. So I created this whitelist mechanism:allowedTypes
: image types with width and height attributesresizableTypes
: image types that can be resizedHere's a list of media types: bmp, gif, jpeg, png, svg+xml, tiff, webp
https://gohugo.io/templates/output-formats/#media-types