Using ImageMagick to make sharp web-sized photographs
31–40 of 64 posts
Re: Using ImageMagick to make sharp web-sized photographs
#32Tangential to the point being made, 98 as quality seems way too high for an image to be shown on the web. 85 seems to be a decent tradeoff. Doing so might actually increase the image size.
I agree: that jumped out at me enough that I came here to make the same comment. I can hardly think of a case where I'd want to use a 98 quality setting on a JPEG. Maybe it would be a good choice if I wanted to preserve an almost-pristine copy of an original, but I'd compare the resulting file size to a lossless PNG first. Every quality step from 100 down to 95 gives a huge benefit in file size, and going from 95 to…
Re: Using ImageMagick to make sharp web-sized photographs
#33mod_pagespeed (and ngx_pagespeed) can automate this for all your images. If you have inline width/height or inline style dimensions, it will do the resampling on your behalf: https://developers.google.com/speed/pagespeed/module/filter-... The advantages of having correctly sized imagery are immense, but in short.. something like 70% smaller total byte payload for mobile, huge reduction in image decode & resize cost,…
This shouldn't be automated by a plugin AT ALL, and should be done based on the type of image it is. (icons, clipart, logos, etc. would make poor subjects).
Re: Using ImageMagick to make sharp web-sized photographs
#34Re: Using ImageMagick to make sharp web-sized photographs
#35Re: Using ImageMagick to make sharp web-sized photographs
#36really who time to do all this, image by image.I use aperture which is ok.
>How do I resize a whole folder of images? [...]
Re: Using ImageMagick to make sharp web-sized photographs
#37Earlier quoted context omitted.
I agree: that jumped out at me enough that I came here to make the same comment. I can hardly think of a case where I'd want to use a 98 quality setting on a JPEG. Maybe it would be a good choice if I wanted to preserve an almost-pristine copy of an original, but I'd compare the resulting file size to a lossless PNG first. Every quality step from 100 down to 95 gives a huge benefit in file size, and going from 95 to…
This also jumped out at me. My company ( http://www.firebox.com ) is built on having amazing looking images for products. No one could see any difference between the quality of images between 87 and 95, but it saved us roughly 50% in file size. Also for what it's worth, we spent a lot of time a/b testing 87 vs 95 with our users, but there was no conclusive difference
(Awesome stuff! That looks like a fun company to work for or found.)
Re: Using ImageMagick to make sharp web-sized photographs
#38Earlier quoted context omitted.
This is fine if you have a limited set of images that you handpick and optimize. Do you have any suggestions when there are thousands of images and all this needs to be automated?
He has an example at his github link where he uses a simple bash for loop to do many images at once.
Re: Using ImageMagick to make sharp web-sized photographs
#39Re: Using ImageMagick to make sharp web-sized photographs
#40ImageOptim has been my best buddy, been getting very agreeable results with it. It's just for compression but end results don't seem to have the need for sharpening. Using ImageMagick this way might be best for special cases... http://imageoptim.com/
For optimal images, you could do something like this:
1) Resize the image (And apply the trick from this article) use the proper quality marker (anywhere between 85-95)
2) Run it through Imageoptim
If you want a commandline version of ImageOptim, I have had good results with https://github.com/toy/image_optim