Commit 7fd62c76a for imagemagick.org
commit 7fd62c76aa427efe51bf61a6ecc7540bb7d7311c
Author: Cristy <urban-warrior@imagemagick.org>
Date: Fri Jul 17 20:36:56 2026 -0400
introduce image:frames define
diff --git a/MagickCore/image.c b/MagickCore/image.c
index 91d44dbdf..b660551b3 100644
--- a/MagickCore/image.c
+++ b/MagickCore/image.c
@@ -2888,6 +2888,12 @@ MagickExport MagickBooleanType SetImageInfo(ImageInfo *image_info,
image_info->filename);
*component='\0';
GetPathComponent(image_info->filename,SubimagePath,component);
+ if (*component == '\0')
+ {
+ const char *frames = GetImageOption(image_info,"image:frames");
+ if (frames != (const char *) NULL)
+ (void) CopyMagickString(component,frames,MagickPathExtent);
+ }
if (*component != '\0')
{
/*