"UnrecognizedLayerType Flatten" Error

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
confused

"UnrecognizedLayerType Flatten" Error

Post by confused »

Hey, I'm really confused about this issue but this is what I can gather:

I've been using a script I wrote for months, and suddenly everything stopped working on the 25th. My "convert -version" reports 6.2.8 from August 25th. The error I'm getting is "UnrecognizedLayerType Flatten". My code is basically this:

Code: Select all

convert -page +0+0 jknkjfng/1.png -page +19+0 nefken/1_1.png -page +19+0 jgkbrkjg/1_6.png -background transparent -layers flatten +repage whatever.png

I didn't upgrade ImageMagick manually so I don't know what's going on, but it seems like a strange coincidence that this version's from the same day it all stopped working.
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: "UnrecognizedLayerType Flatten" Error

Post by el_supremo »

The IM ChangeLog indicates that flatten was added in version 6.3.2 so you need to upgrade.

Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
confused

Re: "UnrecognizedLayerType Flatten" Error

Post by confused »

Whoa, okay, I'm sorry if I sound stupid here but this is weird. How could the version have been downgraded? Also, the date given with the "convert -version" command doesn't have anything to do with when the version was released then? Because like I said, it says August 25th, 2010, but it's version 6.2.8.

I'll try upgrading now and let you know.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: "UnrecognizedLayerType Flatten" Error

Post by anthony »

-flatten exists in that version (it even exists in IM version 3!!!!)

The change was that -flatten was rolled into a compound operator to become -layers flatten

However -flatten still exists as a backward compatible alias to -layers flatten.

Still you are better off upgrading. Hugh numbers of new features and bug fixes have happened since that old version number.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply