jpeg:extent not working with 6.7.3-9

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
alexschomb
Posts: 2
Joined: 2011-12-01T08:25:14-07:00
Authentication code: 8675308

jpeg:extent not working with 6.7.3-9

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: jpeg:extent not working with 6.7.3-9

Post by magick »

Try jpeg:extent=2107392. We'll have a patch to support SI prefixes within a day or two.
alexschomb
Posts: 2
Joined: 2011-12-01T08:25:14-07:00
Authentication code: 8675308

Re: jpeg:extent not working with 6.7.3-9

Post by alexschomb »

Awesome! Thanks that works. Didn't even think of entering the extent in bytes only.
Post Reply