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

use img width and height attributes as gm filtering input #92

Open
Munter opened this issue Jul 8, 2013 · 1 comment
Open

use img width and height attributes as gm filtering input #92

Munter opened this issue Jul 8, 2013 · 1 comment
Labels

Comments

@Munter
Copy link
Member

Munter commented Jul 8, 2013

Setting width and height of an image, thus sometime maybe resizing it, could potentially be used as dimension input information for the graphicsmagick resize filter.

@papandreou
Copy link
Member

So if you have <img width=100 height=200 src=foo.png>, where the width and height attributes will cause foo.png to be scaled down by the browser, foo.png should be resized during the build?

Sounds reasonable, although the code that does this should probably apply the resize only if the <img> is foo.png's only incoming relation, or if every incoming relation is an <img> that scales it to those exact dimensions.

papandreou added a commit that referenced this issue Jul 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants