From 161ef254f8482d49b9a3b75a3cf2b203010bf71b Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Wed, 26 Jul 2017 18:22:23 -0400 Subject: [PATCH] coders/png.c: set image->orientation when orNT chunk is read --- coders/png.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coders/png.c b/coders/png.c index eb96ae55e..cacc3030a 100644 --- a/coders/png.c +++ b/coders/png.c @@ -1981,7 +1981,8 @@ static int read_user_chunk_callback(png_struct *ping, png_unknown_chunkp chunk) image=(Image *) png_get_user_chunk_ptr(ping); - Magick_Orientation_from_Exif_Orientation((int) chunk->data[0]); + image->orientation= + Magick_Orientation_from_Exif_Orientation((int) chunk->data[0]); return(1); } -- 2.40.0