Page 1 of 1

convert causes black pictures

Posted: 2017-01-05T10:53:11-07:00
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

Re: convert causes black pictures

Posted: 2017-01-05T11:34:45-07:00
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.