Page 1 of 1

PNG to PCL not working?

Posted: 2013-05-31T13:01:51-07:00
by mduleone
I'm trying to take a QR code that I'm using http://fukuchi.org/works/qrencode/index.html.en to create. The encoder creates a black and white PNG, with no alpha layers.

I'm running IM on two different Linux machines, and on one of the boxes (IM version 6.2.8.0),

Code: Select all

convert image.png image.pcl
converts the images correctly and works great. On the other Linux machine (IM version 6.5.4.7) however,

Code: Select all

convert image.png image.pcl
converts the image to a black square.

I've tried adding the following options, to no avail.

Code: Select all

convert image.png -monochrome image.pcl

Code: Select all

convert image.png -background #FFFFFF image.pcl

Code: Select all

convert image.png -background #FFFFFF00 image.pcl

Code: Select all

convert image.png -opaque #FFFFFF image.pcl

Code: Select all

convert image.png -opaque #FFFFFF00 image.pcl

Code: Select all

convert image.png -fill #FFFFFF image.pcl

Code: Select all

convert image.png -fill #FFFFFF00 image.pcl
They either white out the image or do nothing (leaves it as a black square). Is this a versioning issue?

Re: PNG to PCL not working?

Posted: 2013-05-31T13:19:30-07:00
by fmw42
You probably should post an example input and output image so others can test. But both your versions of IM are rather old 6.2.8 is over 570 versions old and 6.5.4.7 is over 300 versions old

Re: PNG to PCL not working?

Posted: 2013-06-03T09:07:28-07:00
by mduleone
Thanks for the help! We upgraded the version of ImageMagick on the system that wasn't working, and it's working fine now! I guess it was a bug in the version that was on that system.