Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/1833
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Jan 15, 2020
1 parent 291a682 commit 265d1f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion coders/png.c
Original file line number Diff line number Diff line change
Expand Up @@ -3789,7 +3789,8 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
key[MaxTextExtent];

(void) FormatLocaleString(key,MaxTextExtent,"%s",text[i].key);
if (LocaleCompare(key,"version") == 0)
if ((LocaleCompare(key,"version") == 0) ||
(LocaleCompare(key,"width") == 0))
(void) FormatLocaleString(key,MagickPathExtent,"png:%s",
text[i].key);
(void) SetImageProperty(image,key,value);
Expand Down

0 comments on commit 265d1f3

Please sign in to comment.