hugo-shortcode-gallery icon indicating copy to clipboard operation
hugo-shortcode-gallery copied to clipboard

How to opt out of downscaling of the thumbnail image?

Open thecoducer opened this issue 1 year ago • 1 comments

thumbnailResizeOptions uses the Hugo's Fit method which downscales the thumbnail image. I don't want image to be downscaled or any compromise to the image quality. How can I stop this image resizing thing or at least the downscaling?

thecoducer avatar Jun 23 '24 21:06 thecoducer

On the master branch I have implemented two new options for thumbnailResizeOptions:

  • original: Use the original image (without scaling or other modifications).
  • full: Use the same image as the lightbox will show when clicked. Scaling may be applied depending on whether imageResizeOptions is used.

It would be nice if you could give me some feedback on whether or not this is working for you.

mfg92 avatar Jun 28 '24 20:06 mfg92

Hey @mfg92 , it is working as expected. Thanks for the enhancement.

thecoducer avatar Jul 06 '24 18:07 thecoducer