Skip to content

Commit

Permalink
Set the pixel format to ARGB when reading an animated PNG file.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Jul 3, 2021
1 parent b56a2f6 commit 95add9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions coders/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ static Image *ReadVIDEOImage(const ImageInfo *image_info,
DestroyString(sanitized_option);
(void) ConcatenateMagickString(options,command,MagickPathExtent);
}
if (LocaleNCompare(image_info->magick,"APNG",MagickPathExtent) == 0)
(void) ConcatenateMagickString(options," -pix_fmt rgba",
MagickPathExtent);
AcquireUniqueFilename(read_info->unique);
(void) FormatLocaleString(command,MagickPathExtent,
GetDelegateCommands(delegate_info),read_info->filename,options,
Expand Down

0 comments on commit 95add9f

Please sign in to comment.