Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Changing quality of the JPEG when saving an image, changes the file size. For eg. I have the following image. Dimension: 243px x 53 px Quality:100% File Size:9.7kb Background:

sample image

size1

If I edit the image, keeping the dimensions and Quality same, the file size still falls to 6.1kb.

sample 2

size 2

Problem: I am using Fotoresizer, which has a batch Quality change option, but due to the above problem, you cannot predict file size from quality alone. So when I batch change quality of a set of 200px x 300px images set at 20% quality, some files will turn out at 6kb, whereas others will turn out at 15kb, when the file size I want is 10kb.

Is there any program or programmable solution, which lets me save all files in a range of 10-11kb, without me manually changing the quality slider to change file size each time.

share|improve this question
    
You may want to edit your title to make it clear you're talking about file size, not image size (which is what people will assume). –  Cry Havok Oct 20 '10 at 12:03
add comment

2 Answers

up vote 2 down vote accepted

BDsizer will allow you to do this you can set a maximum file size from the interface and drop a batch of files to resize.

http://www.idimager.com/products/freeware-tools

Just as an aside, be aware that the quality once you have done this may be quite poor. Also if the image will save at a high quality with out compression some files could be less than 10Kb.

share|improve this answer
add comment

Irfan View can convert image to jpeg of Your desired size.

Preconditions

If You will not find following option You have to download Irfan View plugins.

How to do it in Irfan View?

You have to press 'b' key or click on "file->batch conversion/rename". Then You can set desired file size of images You want to convert.

enter image description here

Notes

It might take longer to encode it. From what I tested it looks like that compression options are found by compressing image several times and doing binary search to find those which produce Your desired size; I may be wrong. :)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.