About "convert: no pixels defined in cache " 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.
Locked
haizei1024
Posts: 3
Joined: 2020-01-19T18:20:50-07:00
Authentication code: 1152

About "convert: no pixels defined in cache " error

Post by haizei1024 »

Hi! I use convert command show such error.

Code: Select all

$ convert -version
Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
Doesn't Show the error in version 6.7.7-4 , But in new version with Same picture same command it shows.
"convert: no pixels defined in cache `run.gif[2]' @ error/cache.c/SetPixelCacheNexusPixels/5161"

Code: Select all

# convert -version
Version: ImageMagick 6.9.10-97 Q16 x86_64 2020-02-29 https://imagemagick.org
Copyright: © 1999-2020 ImageMagick Studio LLC
It's Also shows error when I used 6.9.11-5.

Why new version shows error but not in old version?

Help please.

snibgo
Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: About "convert: no pixels defined in cache " error

Post by snibgo »

Please show the command you used and the input file(s).
snibgo's IM pages: im.snibgo.com

haizei1024
Posts: 3
Joined: 2020-01-19T18:20:50-07:00
Authentication code: 1152

Re: About "convert: no pixels defined in cache " error

Post by haizei1024 »

Code: Select all

$ convert -rotate 180 \( -size 234x2501 canvas:#FFFFFF \) null: \( run.gif[0-57] -scale 16%  -scale 658x494 null: timg.jpeg -gravity south -geometry +22+62 -layers composite  -resize 234 -coalesce \) -gravity center -layers composite -layers optimize a.gif
I use this command.

snibgo
Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: About "convert: no pixels defined in cache " error

Post by snibgo »

Your command starts with "-rotate 180". But you haven't read any images yet. You should read at least one image, then rotate it.

You may need "-layers coalesce" immediately after reading the gif, not many steps later.
snibgo's IM pages: im.snibgo.com

Locked