PNG to PCL two different versions?

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
mduleone
Posts: 3
Joined: 2013-05-30T12:50:21-07:00
Authentication code: 6789

PNG to PCL two different versions?

Post by mduleone »

Hello everyone!
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. Does anyone have any suggestions as to resolving this? I'd prefer to not have to downgrade the version on the Linux machine that's not working, if possible.
Post Reply