Hello,
convert -define jpeg:extent=Xkb not working in latest release 6.8.8-7
I have tried it on both win Q16 x64 and on linux debian. Converted image is always produced with the same or almost the same size (with few kB difference).
After that I have tried the same command with version win 6.7.7-0 Q16 x64 and it worked as expected.
modrljin
convert -define jpeg:extent not working in 6.8.8-7
Re: convert -define jpeg:extent not working in 6.8.8-7
We can reproduce the problem you posted and have a patch in ImageMagick 6.8.8-8 Beta available by sometime tomorrow. Thanks.
Re: convert -define jpeg:extent not working in 6.8.8-7
Hi again,
this is still not working in version 6.8.8-8. Tried on win only.
modrljin
this is still not working in version 6.8.8-8. Tried on win only.
modrljin
Re: convert -define jpeg:extent not working in 6.8.8-7
Give us a command we can reproduce, what you get, and what you expect. We need to reproduce the problem before we can comment further.
Re: convert -define jpeg:extent not working in 6.8.8-7
Command is same as in first post: convert -define jpeg:extent=Xkb
If I execute something like this:
convert -define jpeg:extent=600kb image.jpg image-600.jpg
where image.jpg is, for example, 20 MB, image-600.jpg shouldn't be about 20 MB, but less than 600 kB.
I thought you said in your first reply that you are able to reproduce this!?
thanks
modrljin
If I execute something like this:
convert -define jpeg:extent=600kb image.jpg image-600.jpg
where image.jpg is, for example, 20 MB, image-600.jpg shouldn't be about 20 MB, but less than 600 kB.
I thought you said in your first reply that you are able to reproduce this!?
thanks
modrljin
Re: convert -define jpeg:extent not working in 6.8.8-7
Use this command:
- convert image.jpg -quality 0 -define jpeg:extent=600KB image-600.jpg
Re: convert -define jpeg:extent not working in 6.8.8-7
OK, I tried like that and it works.
BTW. here http://imagemagick.org/script/command-l ... php#define is written:
jpeg:extent=value
Restrict the maximum JPEG file size, for example -define jpeg:extent=400kb. The JPEG encoder will search for the highest compression quality level that results in an output file that does not exceed the value. The -quality option is ignored if it is also present.
where kb is lowercase.
I tried now upper and lowercase and both works.
thanks
modrljin
BTW. here http://imagemagick.org/script/command-l ... php#define is written:
jpeg:extent=value
Restrict the maximum JPEG file size, for example -define jpeg:extent=400kb. The JPEG encoder will search for the highest compression quality level that results in an output file that does not exceed the value. The -quality option is ignored if it is also present.
where kb is lowercase.
I tried now upper and lowercase and both works.
thanks
modrljin