Subject: | Gif canvas/screen size is wrong |
When writing gifs, the screen height is used as the screen width, if the
gif_screen_height tag exists.
Patch attached.
Subject: | Imager-fix-gif-canvas.diff |
diff -ru Imager-0.64.orig/gif.c Imager-0.64.new/gif.c
--- Imager-0.64.orig/gif.c 2007-11-03 16:24:22.000000000 -0700
+++ Imager-0.64.new/gif.c 2008-05-01 09:21:14.000000000 -0700
@@ -1733,8 +1733,8 @@
if (!i_tags_get_int(&imgs[0]->tags, "gif_screen_width", 0, &scrw))
scrw = 0;
- if (!i_tags_get_int(&imgs[0]->tags, "gif_screen_height", 0, &scrw))
- scrw = 0;
+ if (!i_tags_get_int(&imgs[0]->tags, "gif_screen_height", 0, &scrh))
+ scrh = 0;
anylocal = 0;
localmaps = i_mempool_alloc(&mp, sizeof(int) * count);