-
Notifications
You must be signed in to change notification settings - Fork 96
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
Images are scaled up when using with imagemagick 6 (Ubuntu 14.04) #45
Comments
Could you provide your full Grunt file please? |
Ok, here are:
The gruntfile is a bit longish, sorry for that. configuration.json:
package.json:
Gruntfile.js
|
What type of image file is it? |
No, all of the images were JPEGs (file extension differed, either jpg or JPG). |
I've released a new version that changes the internals for how options work. Does this still happen with v0.1.4? |
The problem is not fixed - upscale: false is respected when using GraphicsMagick, but not when using ImageMagick. I ran Grunt in verbose mode, but that did not reveal anything. |
Seems like At least I tried it and it seems to stop upscaling.. |
I have the same problem...using a simple configuration file it upscale the image (e.g. 80px to 400px)
|
If you adjust the tests to start with a small image, you'll see it get upscaled in the default options test. I also got it to work (with imagemagick 6 ) thanks to @hamsterbacke23 by changing this upscale bit of code on line 337 to:
which is just setting the sizing method to '>' if "Another commonly used option is to restrict IM so that it will only shrink images to fit into the size given. Never enlarge. This is the '>' resize option. Think of it only applying the resize to images 'greater than' the size given (its a little counter intuitive)." Happy to open a PR! |
This issue is also affecting me. Environment:
|
I had the same problem, fixed it last year somehow, but can't find that project. This also affects GraphicsMagic on Windows. There is an undocumented option that fixes the problem:
maybe that option is not getting set correctly? |
I suppose it depends on what people here want. As the name implies, Personally, I'd like a new file to be created, which is effectively just the original image duplicated but with a filename that uses the naming convention specified in the options. @JostBaron - would you clarify which problem you were describing in the ticket? |
Thanks, that makes sense. In my case I'm handling the images with code (PHP/Python) so I can check their presence, or just creating a ton of thumbnails (for galleries or contact sheets), so I hadn't considered the CSS case. I'm fine if it keeps working that same way. Maybe just indicate Now I have to check my setup on Windows, because I do have both ImageMagick and GraphicsMagic installed, and even when specifying GraphicsMagic explicitly, it still upscales, so it might be a case where it's finding IM first (maybe because of the registry). |
Awaiting response from @JostBaron - possibly this can be closed as issue #82 requests documentation enhancement. |
I do hope that @isaacchansky commit can be merged, as the suggestion in #82 requires a more complicated Grunt setup involving additional copying of those images that are not resized. |
another potential fix is to expose |
When I have defined this size
an 800x600 image is upscaled to 3000x2250. My other options are:
The text was updated successfully, but these errors were encountered: