convert causes black pictures

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
maximmaleika
Posts: 1
Joined: 2017-01-05T10:24:49-07:00
Authentication code: 1151

convert causes black pictures

Post by maximmaleika »

Hi,

i'm not sure whether this is the correct forum.

I'm using kubuntu, Version 10.04, 12.04, 14.04, 16.04 and in all versions a postscript file will be converted to completely black.

following command (without any errors):
/usr/bin/convert -size 200x200 ./P0674210201PNS001FBKTSR0000.ps -rotate 90 -resize 200x200 tmp.jpg

file is available under: ftp://ftp.mpe.mpg.de/people/hmb/

If i use /usr/bin/gm instead of /usr/bin/convert it works correct.

Therefore after any update i have to: rm /usr/bin/convert and create a link /usr/bin/convert -> gm

Any suggestions will be nice.

Thanks, maximmaleika
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: convert causes black pictures

Post by snibgo »

Without even looking at the file, I suspect it has black characters on a transparent background. You save it as JPG which can't store transparency, and that is flattened to black.

If so, then "-background White -layers flatten" before saving the JPG.
snibgo's IM pages: im.snibgo.com
Post Reply