Page 1 of 1

jpeg to pdf conversion

Posted: 2009-03-11T06:49:23-07:00
by mala
I used to convert jpeg files to pdf using just the command
convert fil1.jpg file2.pdf
The size of the jpg and pdf files was comparable
This was with the preinstalled convert (Version: ImageMagick 6.2.3 02/24/06)
under SuSE Linux 10.
Now I updated to SuSE Linux 11 and the same command seems to produce
pdf files about ten time bigger. In this case the version is 6.4.3 2008-12-03
Do I miss something?

Re: jpeg to pdf conversion

Posted: 2009-03-11T07:59:07-07:00
by magick
We get comparable results when we convert JPEG to PDF with the latest ImageMagick release 6.5.0. Try explicitly setting the compression:
  • convert image.jpg -compress JPEG image.pdf
Does that make a difference?

Re: jpeg to pdf conversion

Posted: 2009-03-11T23:22:33-07:00
by mala
Yes! It does , the behaviour becomes the same as before, the resulting pdf file
having essentially the same size as the jpeg one.
Also, as far as I can see, there no difference between the "compressed" and "non compressed"
files (visual check zooming in on the screen).
And finally the "compressed" version executes a little faster (about 15%).
Thanks a lot.
Of course now I wonder what is the benefit of this new way to convert.