Why is it, when I insert a short comment in a jpeg, that the size of the
resulting jpeg file increases so much?  E.g.,

$ stat --format="%n %s" test.jpg ; convert -comment "This is a comment
inserted by me." test.jpg test1.jpg; stat --format="%n %s" test*.jpg
test.jpg 3460012
test1.jpg 3471325
test.jpg 3460012

The comment inserted is a mere 34 characters.  The increase in the file
size, however, is 11313 bytes.

Moreover, if I then change the comment to some other text which is
exactly the same length, the size of the file increases quite radically
again.  Why does this happen?


Thanks much for your enlightenment.
ken

-- 
"When a society comes together and makes decisions in harmony,
when it respects its most noble traditions, cares for its most
vulnerable members, treats its forests and lands with respect,
then it will prosper and not decline."
        --Buddha, Mahaparinirvana Sutra
_______________________________________________
Magick-developers mailing list
Magick-developers@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-developers

Reply via email to