-
-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Image zoom level too low #336
Comments
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 |
@chrisbanes Is this related to #327? |
@mztiq Not related to the original ticket I think |
Ah, that looks like Hugo's smart cropping. You can go back to the previous behaviour by changing the anchor value in your
|
Reopening so that I'll have a look at this one... @chrisbanes removing the change you added on #327 would provide the outcome @mztiq is looking for right? May I ask you to clarify the different between the two behaviours aka the one before your change and after the change? Thanks |
The difference is that the old behaviour resized the image to 600px always (maintaining the aspect ratio), then relied on CSS to cover the resulting box. The new behaviour displays a pre-cropped image which has a roughly similar aspect ratio to what is displayed. It's not exact as the resulting div has a different size for different display sizes. I don't personally think there's an issue here. An alternative approach would be to remove the crop, and resize based on a fixed height. That is a bit more wasteful though. |
@mztiq could you do a quick test by changing your local Blowfish theme files: file: layouts/partials/article-link.html Change And share screenshots. I want to check if this is the behavior you are going for. @chrisbanes That might be an interesting approach. I was reading the image processing docs and need to understand better the |
@nunocoracao That's exactly the behaviour I'm going for, thanks for the suggestion. |
@chrisbanes @mztiq my proposal: Create a new global var in params.toml, |
@nunocoracao sounds great to me 👌. |
My $0.02: this shouldn't be configurable. Adding config values for every possible combination is going to make this theme harder to maintain in the long term. It's your choice though. |
@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 Tagging some other contributors to get extra opinions on this: |
Personally, I think keeping this at the partial layout/template level is a cleaner solution. Adding a section in the docs that links to Hugo's image processing methods would also be helpful for those who want to customize. |
Kinda agree with @lemonase, the only change to my config is adding @chrisbanes' suggestion so maybe linking/referencing Hugo's docs makes sense. |
Updated docs in reference to nunocoracao#336
Thanks @mztiq @chrisbanes @lemonase @insidemordecai, already accepted the PR from @lemonase. Will close this comment and leave the current implementation as-is. |
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:
![Alt text](image.jpg "Image caption")
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):
Hugo & Blowfish versions
Hugo: v0.106.0
Blowfish: v2.18.0
The text was updated successfully, but these errors were encountered: