When I resize an image with photoshop's "Save for Web", it looks different than if I convert it with ImageMagick. Is there a setting I can change in ImageMagick to get same results as Photoshop? Here is an example.
The original:
"Save for Web" 30.01%
vsconvert -geometry 30.01% home-button-full.png home-button-ipad.png
Enlarged so it's easier to see the difference:
Photoshop:
ImageMagick:
The only immediate difference that's discoverable are these:
76x86
pixels in size.76x87
pixels in size. 378
.401
. 4.239 Bytes
.3.410 Bytes
. I only know how to fix the first difference:
convert orig.png -scale 76x86\! scaled-76x86.png
(This command's result has reduced the number of uniq colors to 358
... but that's by accident only.)
As long as we don't know what other sort of filtering Photoshop's Save for Web... does apply, we have little chance to mimic its results exactly... You could try this:
convert orig.png -scale 76x86\! -interpolate bicubic scaled-76x86.png
Check to see what re-sampling method (bicubic, bilinear, etc) you used in photoshop and make sure it's using the same method.
-interpolate type
type being bicubic, bilinear, average, etc. Interpolation type
According to the docs Imagemagick uses bilinear by default, whereas Photoshop uses Bicubic by default.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With