Irreversible conversion to/from pdf
Posted: 2009-01-28T14:00:18-07:00
Opensuse 11.1, IM 6.4.3.6
This problem is really old, and I already discussed this on the ML but without not too much interest -- maybe the reason was I didn't find good use cases, to test the problem. Now I found it, because other people were bitten by this bug.
From my POV (as user) I should be able to convert image to pdf, then from pdf to image, and I should get duplicate. In a bit worse version -- with some additional arguments.
IM now fails to provide such, reversible, conversion for some simple files really. Even if I try add some arguments, as size, or density.
image -> pdf: works fine, I get 1:1 copy
pdf -> image: I get "white paper" with actual image taking 25% of space in the lower, left corner
File to test it:
http://launchpadlibrarian.net/16005528/ ... output.zip
convert testpic.jpg test.pdf
convert test.pdf bad.png
Try it yourself. Maybe I am wrong but if any pdf reader can read pdf file and get the proper image+"paper" size then while converting this information should be used too.
If I can be any helpful, please let me know.
edit: note mine, but other person report of this bug at Ubuntu launchpad:
https://bugs.launchpad.net/ubuntu/+sour ... bug/248329
(about opposite direction of conversion actually)
This problem is really old, and I already discussed this on the ML but without not too much interest -- maybe the reason was I didn't find good use cases, to test the problem. Now I found it, because other people were bitten by this bug.
From my POV (as user) I should be able to convert image to pdf, then from pdf to image, and I should get duplicate. In a bit worse version -- with some additional arguments.
IM now fails to provide such, reversible, conversion for some simple files really. Even if I try add some arguments, as size, or density.
image -> pdf: works fine, I get 1:1 copy
pdf -> image: I get "white paper" with actual image taking 25% of space in the lower, left corner
File to test it:
http://launchpadlibrarian.net/16005528/ ... output.zip
convert testpic.jpg test.pdf
convert test.pdf bad.png
Try it yourself. Maybe I am wrong but if any pdf reader can read pdf file and get the proper image+"paper" size then while converting this information should be used too.
If I can be any helpful, please let me know.
edit: note mine, but other person report of this bug at Ubuntu launchpad:
https://bugs.launchpad.net/ubuntu/+sour ... bug/248329
(about opposite direction of conversion actually)