encryption failed!

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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

encryption failed!

Post by anthony »

Encrypted images failing in specific case

See
http://www.imagemagick.org/Usage/transform/#encipher

The first encrypt/decrypt is not working - it used to (encryt using a passphrase from file)
But every other encryption method seems to work!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: encryption failed!

Post by magick »

Add -type truecolor to your encryption command line:
  • convert message.gif -encipher pass_phrase.txt -depth 8 -type truecolor message_hidden.png
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: encryption failed!

Post by anthony »

I see png will now output png8 is image is type palette.

Understood. thank you for the clarification.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply