Hi
I have an image from my photo. It is 2256x1496 in size.
1) I opened it in GIMP resized to 1000x663 and saved to JPG with 80% quality (all other saving settings were GIMP's defaults). And I got a good image, which is 69Kbytes in size.
2) I did the same with "convert pic.jpg -resize 1000 -quality 80 -type optimize pic_new.jpg"
And I got an image, which is 133Kbytes in size.
Can someone help me understand why it is so?
I have got 100 images, and I want to convert them to the size of 1000x663 with a good quality and the smallest possible weight and download them to server. And I don't want to do it in GIMP one by one. But the weight of the image from GIMP is about 2 times less than from the imagemagick.
What is wrong? Please, help.
JPGs from GIMP are smaller than from ImageMagick
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: JPGs from GIMP are smaller than from ImageMagick
Are you using Q16 or Q8 IM? If Q16, then try adding -depth 8 to your IM command line.
-
- Posts: 1015
- Joined: 2005-03-21T21:16:57-07:00
Re: JPGs from GIMP are smaller than from ImageMagick
The original image probably has metadata such as EXIF information or a colour profile.
Try adding the -strip option to have IM remove the metadata:
Pete
Try adding the -strip option to have IM remove the metadata:
Code: Select all
convert pic.jpg -strip -resize 1000 -quality 80 -type optimize pic_new.jpg
Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
See my message in this topic for a link to a zip of all the files.