Page 1 of 1

The converted files are completely covered in black

Posted: 2016-09-21T00:49:03-07:00
by KMC
Good day.
When converting from PDF to JPG,
The resulting JPG completely covered in black.
When converting from PDF to PNG turns normal.
When you try to convert the resulting PNG to JPG also covered with black.

I used ImageMagick 6.9.5 and ImageMagick 7.0.2., Ghostscript v9.19.
Command "magick test.pdf test.jpg"

Help me please with this problem.

File PDF is the link https://yadi.sk/i/O-OYy1l7vUEz5

Re: The converted files are completely covered in black

Posted: 2016-09-21T01:19:07-07:00
by fmw42
Your PDF has alpha channel data. In fact, all the data is in the alpha channel and the base image is black. JPG does not support transparency and so you see completely black.

try

Code: Select all

convert test.pdf -alpha extract -negate test.jpg

Re: The converted files are completely covered in black

Posted: 2016-09-21T01:42:40-07:00
by KMC
It helped, thank you very much for your help.