How to reduce the image size

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
needkane
Posts: 47
Joined: 2014-09-11T02:19:30-07:00
Authentication code: 6789

How to reduce the image size

Post by needkane »

Large : https://s3-us-west-2.amazonaws.com/qiniu-bs/97kb.jpeg
Small : https://s3-us-west-2.amazonaws.com/qiniu-bs/90kb.jpeg


Two images look like the same ,and quality is the same.
I want know how to reduce the large image size to 90kb,and width, height and quality no change
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: How to reduce the image size

Post by glennrp »

Quality is 100 in both images, but JPEG quality 100 is not lossless. The images are slightly (but imperceptibly) different. Compress them again with quality 92, they still look the same but are less than half the size. Compress them with -quality 75 and they still look the same but are reduced again by about 50 percent. It's not useful to compress JPEG images with a higher quality than what came from the camera, which is generally 85-95.
needkane
Posts: 47
Joined: 2014-09-11T02:19:30-07:00
Authentication code: 6789

Re: How to reduce the image size

Post by needkane »

glennrp wrote:Quality is 100 in both images, but JPEG quality 100 is not lossless. The images are slightly (but imperceptibly) different. Compress them again with quality 92, they still look the same but are less than half the size. Compress them with -quality 75 and they still look the same but are reduced again by about 50 percent. It's not useful to compress JPEG images with a higher quality than what came from the camera, which is generally 85-95.
Sorry, maybe you don't understand my question,it's my problem
I don't want reduce quality (i know reduce quality can reduce image size).

OK,now i have two questions
1、why the small picture size less than the large one.
2、 largest : https://s3-us-west-2.amazonaws.com/qiniu-bs/104.jpeg
The difference between largest and large is the option 'interlace',but 'interlace' only change (RGBRGB...) to (RR...GG..BB..)not compress,and others picture no change after add 'interlace'.
Can you tell me why
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: How to reduce the image size

Post by glennrp »

1. The 90kb picture size is less than the larger ones because they are slightly (but imperceptibly) different. It is more compressible than the others. The 97kb and 104kb images have identical pixels.

2. As you observed, the 97kb is interlaced and the 104kb isn't. The order in which numbers appear in a datastream can affect its compressibility.
needkane
Posts: 47
Joined: 2014-09-11T02:19:30-07:00
Authentication code: 6789

Re: How to reduce the image size

Post by needkane »

glennrp wrote:1. The 90kb picture size is less than the larger ones because they are slightly (but imperceptibly) different. It is more compressible than the others. The 97kb and 104kb images have identical pixels.

2. As you observed, the 97kb is interlaced and the 104kb isn't. The order in which numbers appear in a datastream can affect its compressibility.

How to change 97kb picture to 90kb,i know they are slightly different.Can you be more specific
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: How to reduce the image size

Post by glennrp »

needkane wrote: How to change 97kb picture to 90kb,i know they are slightly different.Can you be more specific
Reduce the quality to 99. But you don't want to do that, so I have no answer for you other than to repeat that the 90kb and 97kb images are of slightly different quality, even though you requested quality 100 for both.
Post Reply