Commit b8731aa04 for imagemagick.org
commit b8731aa04fe8282077516306b9673f120b6f657f
Author: Dirk Lemstra <dirk@lemstra.org>
Date: Tue Aug 18 21:20:44 2026 +0200
Don't call SetImageExtent when pinging an Aseprite image.
diff --git a/coders/ase.c b/coders/ase.c
index d99680717..bbc3dd435 100644
--- a/coders/ase.c
+++ b/coders/ase.c
@@ -791,14 +791,6 @@ static Image *ReadASEImage(const ImageInfo *image_info,ExceptionInfo *exception)
frame_image->alpha_trait=BlendPixelTrait;
frame_image->ticks_per_second=1000;
frame_image->dispose=BackgroundDispose;
- status=SetImageExtent(frame_image,frame_image->columns,
- frame_image->rows,exception);
- if (status == MagickFalse)
- {
- DestroyASELayerList(&layers);
- DestroyASECelCache(&cel_cache);
- return(DestroyImageList(image));
- }
if (ase_header.color_depth == 8)
{
if (AcquireImageColormap(frame_image,256,exception) ==
@@ -835,6 +827,14 @@ static Image *ReadASEImage(const ImageInfo *image_info,ExceptionInfo *exception)
SEEK_CUR);
continue;
}
+ status=SetImageExtent(frame_image,frame_image->columns,
+ frame_image->rows,exception);
+ if (status == MagickFalse)
+ {
+ DestroyASELayerList(&layers);
+ DestroyASECelCache(&cel_cache);
+ return(DestroyImageList(image));
+ }
switch (ase_header.color_depth)
{
case 32: