The converted files are completely covered in black

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
KMC
Posts: 2
Joined: 2016-09-20T23:13:15-07:00
Authentication code: 1151

The converted files are completely covered in black

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: The converted files are completely covered in black

Post 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
KMC
Posts: 2
Joined: 2016-09-20T23:13:15-07:00
Authentication code: 1151

Re: The converted files are completely covered in black

Post by KMC »

It helped, thank you very much for your help.
Post Reply