blowfish: :bug: Image zoom level too low
Describe the bug The image zoom level on click is most of the time very low to the point it barely increases the size of the linked image.
To Reproduce Steps to reproduce the behavior:
- Add an image (in my case 2536 x 1215 px) with the Figure Shortcode via
 - Deploy the site and click on the linked image and notice the size barely increases.
Expected behavior The image zoom should be bigger, so details can be seen too.
Screenshots No Screenshot but see the first picture in this post as an example.
Desktop (please complete the following information):
- OS: Windows 10 / Android 13
- Browser: FireFox
- Version 108.0.1
Hugo & Blowfish versions Hugo: v0.106.0 Blowfish: v2.18.0
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (17 by maintainers)
Commits related to this issue
- Update docs Updated docs in reference to #336 — committed to lemonase/blowfish by lemonase 2 years ago
@chrisbanes that is a good point… already suffering a little for some similar past decisions.
3 options for voting (use emojis please):
❤️ Make it configurable - more maintenance work all options are covered now 🚀 keep current implementation
fill- @mztiq would this work for you? 🎉 revert to previous implementation usingresize- @chrisbanes would this work for you?Tagging some other contributors to get extra opinions on this: cc: @madoke @sergiod26 @Scoty @kszpieg @insidemordecai @lemonase @Coronon
Ah, that looks like Hugo’s smart cropping. You can go back to the previous behaviour by changing the anchor value in your
config.toml:@chrisbanes @mztiq my proposal:
Create a new global var in params.toml,
imageProcessingModewith two valuesresizeandfill. That way we can have both features in and people can chose which one applies to their use-case. Thoughts? If all agree I can move ahead with implementation for v2.20.0@mztiq Not related to the original ticket I think
will add a global param to disable the hugo pipelines that make the image smaller for perfomance. You can override and just use the original image… look for
disableImageOptimizationin the next release.https://github.com/nunocoracao/blowfish/pull/339