convert from pcx to pcx turns every pixel to black
Posted: 2014-03-27T12:28:04-07:00
Running `convert in.pcx out.pcx` causes a valid out.pcx file with the same dimensions to be generated, but every pixel has been changed to black. This only happens on certain pcx files, though I'm not certain what might be unique about them.
Version: ImageMagick 6.7.5-6 2012-08-11 Q16
Here's a base64 encoding of in.pcx.bz2 which exhibits this bug:
To recreate the original pcx file on disk, run the following command `base64 -d | bzip2 -d > in.pcx` then paste the base64 text blob, then hit CTRL-D twice. (By the way, don't use the "SELECT ALL" link that this bulletin board webpage put on my post. That link causes bogus space characters to be inserted that will screw up the decoding. Just copy/paste it manually.)
Version: ImageMagick 6.7.5-6 2012-08-11 Q16
Here's a base64 encoding of in.pcx.bz2 which exhibits this bug:
Code: Select all
QlpoOTFBWSZTWVzJrD4AADfr//6QgACFAMIAAACAg8AAgACAEMAI///IgeqI6v/gB58AAAAAAAAA
fBzTEwEaYEYRgAAACYRgc0xMBGmBGEYAAAAmEYHNMTARpgRhGAAAAJhGBzTEwEaYEYRgAAACYRgN
pSgmBPSYAQYRgmAmAIMIFSIgIhNT0yRpMm0mnqNA0bU0GCejapVrnZUepXwPOPoKPYPgaaFNaU46
49NHxvk9fr6nvNTzK8aGCjJRX+iyz2GD0H1Gmkd5RsYPV3T4tJdVUPJosbFA5PEsfUZLFFA6llFk
n5FBJipUpFyiqkTehOePKripgRP2FCB7SUFFG5Qk+UoJEf7KEkMCjxFCFFAfoUIMlBH5lCEUUSIs
VCO41FHrlFZNjQYNzJnzlSvQYORyfw3lStjQn4GDoeB1Jg0J2FllFmxg7CjJg7CyYOoo4O2e0rB2
ijJKOTqUWbxmVKsdDpJoVgUdDoTBwUbFG5KPQaixsblhsblmxkeeA1KDQo1ksqjYjJNjg1GCjvLE
sKCaztP+F5GpQaEnUs/mUYE7CLKPM/I8TgaH/jx6CiYFSG4ljBRZQ9B+pkYJKKJ3llkfvMFmhqLE
8jsPM+Bk+o2O8wSZPhJ8flKl3HuOyPsPRLkStzkUUKEafbKle48hqSPE6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