Page 1 of 1

jpeg:extent not working with 6.7.3-9

Posted: 2011-12-01T08:36:14-07:00
by alexschomb
Hello there,

first of all, thanks for your great work so far. I'm having problems using the following command:

Code: Select all

convert.exe -define jpeg:extent=2048kb input.jpg output.jpg
(I also tried different extent values!)

If I understood your documentation correct, the result of the command should be an output.jpg file that does NOT exceed the given size (here: 2048kb). Sadly that is not true for my various tries, I always get a file that is even bigger than the original one is.
The file I used was a random big jpg from Google Pictures. Of course I renamed it before running the command. The original filesize is 3732kb and no matter what extent I use in the command I always get a output.jpg with a filesize of 4752kb.

I am using ImageMagick-6.7.3-Q16-windows.zip from your public FTP servers. My Operating System is Microsoft Windows 7 Professional x64.

Re: jpeg:extent not working with 6.7.3-9

Posted: 2011-12-01T12:36:17-07:00
by magick
Try jpeg:extent=2107392. We'll have a patch to support SI prefixes within a day or two.

Re: jpeg:extent not working with 6.7.3-9

Posted: 2011-12-01T13:08:01-07:00
by alexschomb
Awesome! Thanks that works. Didn't even think of entering the extent in bytes only.