Skip to content
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

Small images added to posts are stretched beyond their native width, become pixilated. #394

Closed
zebpalmer opened this issue Nov 29, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@zebpalmer
Copy link

zebpalmer commented Nov 29, 2022

What happened?

Apologies if this is works as intended or if you see it as a feature request (or I'm just totally missing something).

Smaller images (those smaller than a post's column width) are stretched and become very pixelated/hard to read. The workaround I see is to use default=true, which resets all the other styling making it inconsistent with the rest of the theme. The theme stretching an image beyond its native resolution seems like a bug to me.

Related, and totally a feature request once (if) the above is fixed, it'd be nice to have a clean way to center an image that isn't large enough to be full width. I'm very much not a front-end person, but I found a hacky way to do it in custom css; that hack should probably never see the light of day. But handling this may be something to consider if the above is fixed.

Thanks for the great theme; I'm starting to really like it.

Theme version

v2.4.2

Hugo version

v0.107.0+extended

What browsers are you seeing the problem on?

Firefox, Chrome

Relevant Hugo log output

No response

@zebpalmer zebpalmer added the bug Something isn't working label Nov 29, 2022
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had any recent activity.
If you are still experiencing this issue, please review the issue history and add a reply with any requested and/or additional information in order to keep the issue open.
This issue will automactically close in 14 days if no further activity occurs.

@github-actions github-actions bot added the stale This issue or pull request has not had any recent activity label Dec 30, 2022
@zebpalmer
Copy link
Author

Still an issue, shouldn't be marked stale yet.

@github-actions github-actions bot removed the stale This issue or pull request has not had any recent activity label Dec 31, 2022
@jpanther
Copy link
Owner

jpanther commented Jan 9, 2023

Thanks for the report, @zebpalmer. This is something that I think needs improvement as I agree that smaller images shouldn't be scaled to the article width. I'll have a look at some options. Apologies for the delayed response too, I've been super busy lately!

@jpanther jpanther added the wip Work in progress label Jan 9, 2023
@github-actions github-actions bot removed the wip Work in progress label Jan 13, 2023
@zebpalmer
Copy link
Author

Awesome! Thanks so much!

Nicceboy pushed a commit to ouspg/congo that referenced this issue Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants