Package: transfig
Version: 1:3.2.5-alpha5-2

When exporting to PS/EPS/PDF a figure that contains an embedded bitmap image
wider or taller than 4096 pixels (in my case a full A3-sized picture scanned at
600 dpi), the following error message is printed:

    Incorrect image size: 10136 x 7024

and the embedded bitmap image is removed from the PS/EPS/PDF output.
All other figure components are still exported.

Apparently there's an (arbitrary?) limitation on the dimensions of embedded
bitmap images. At first sight I couldn't see whether there's a real reason for
this limitation. Applying the patch below seemed to solve the problem for me.
Perhaps the limitation can even be removed completely?

--- transfig-3.2.5-alpha5/fig2dev/dev/psencode.c.orig   2003-04-08 
23:59:52.000000000 +0200
+++ transfig-3.2.5-alpha5/fig2dev/dev/psencode.c        2005-04-16 
20:47:07.006296983 +0200
@@ -18,7 +18,7 @@
 
 #include "fig2dev.h"
 
-#define MAXWIDTH       4096
+#define MAXWIDTH       65536
 
 #define put_string nc=strlen(s); for(i=0;i<nc;i++) (putc((s[i]),tfp)); Nbyte 
+= nc
 
Gr{oetje,eeting}s,

                                                Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [EMAIL PROTECTED]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                                            -- Linus Torvalds


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to