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

No control over images getting resized and expanded beyond their dimensions #101

Closed
rudygalfi opened this issue Jan 14, 2016 · 1 comment

Comments

@rudygalfi
Copy link

Any images will be resized to the width of the container, even if it's larger then the image's actual dimensions. This leads to blurring.

It would be nice to enable the content creator some control here or to have better default handling (e.g. image keeps its original dimension unless the container size shrinks, in which case it scales down proportionally).

I believe this is getting worked on but wanted to resolve ampproject/amphtml#1182 and have something for tracking.

mjangda added a commit that referenced this issue Jan 15, 2016
We want elements to not grow beyond their width and shrink to
fill the screen on viewports smaller than their width.

We do this by adding a `sizes` attribute (when not already set) to
enforce this behavior.

See #101
@mjangda
Copy link
Contributor

mjangda commented Jan 16, 2016

This should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants