nicokaiser / hugo-theme-gallery

Gallery Theme for Hugo
https://nicokaiser.github.io/hugo-theme-gallery/
MIT License
305 stars 85 forks source link

Viewing Resolution Adjust #29

Closed Hansxsourse closed 8 months ago

Hansxsourse commented 8 months ago

Hi, thanks for the amazing work! May I ask if there's any way to adjust the showing resolution for the images? And also if there's any way to control the compression quality. The displayed quality is much lower than the local one.

nicokaiser commented 8 months ago

You can copy the theme to your local installation (e.g. to themes/gallery) and just adjust the resolutions directly in the files:

You can adjust the JPEG quality in your site configuration (hugo.toml): https://gohugo.io/content-management/image-processing/#processing-options

TGNYC commented 2 months ago

Hi! I adjusted the JPEG quality to 100 in my hugo.toml file; however, there is still a very noticeable resolution loss difference between the image in the gallery and the image when downloaded and viewed. Do you have any tips? @nicokaiser

nicokaiser commented 2 months ago

You might want to adjust the „fit 1600x1600“ value in gallery.html. This is the resolution your photos are displayed (you usually do not want to display photos in original resolution/quality because of file size).