Package: hylafax-server
Version: 2:4.3.1-6
Severity: normal

hi,

here it is:

$ grep PNG util/typerules
0       string  \x89PNG      ps pngtopnm < %i| ppmtopgm | pnmtops -dpi 204 >%o
0       string  \x89PNG      error PNG support not configured

$ grep JPEG util/typerules
>6      string  JFIF         error JPEG support not configured
>6      string  JFIF         error JPEG support not configured

my current typerules for PNG:
0       string          \x89PNG         ps      pngtopnm < %i| ppmtopgm | \
                                                pnmscale -xysize 1728 2385|\
                                                pnmtops -dpi 204 >%o

pnmscale | pnmtops seems to do a better job than pnmtops alone. 
Anyway pnmtops scales to fit, so it's not necessary.

for PNM:
#0      string          P1      tiff    pbmtog3 < %i > %o
0       string          Px      ps      ppmtopgm < %i |\
                                        pnmscale -xysize 1728 2385 < %i |\
                                        pnmtops -dpi 204 > %o

see patch @bottom for FIG and JFIF as well.
(diff against debian-patched files)


-- paolo


--- util/typerules      Tue Jan  2 02:22:21 2007
+++ util/typerules      Tue Jan  2 02:16:33 2007
@@ -107,7 +107,9 @@
 0      string          GIF             tiff
 >3     string          87a             tiff    gif2tiff -%f -v %V %i %o
 >3     string          89a             ps      gif2ps <%i >%o
-0      string          \x89PNG         ps      pngtopnm < %i| ppmtopgm | 
pnmtops -dpi 204 >%o
+0      string          \x89PNG         ps      pngtopnm < %i| ppmtopgm | \
+                                               pnmscale -xysize 1728 2385|\
+                                               pnmtops -dpi 204 >%o
 0      long            0x59a66a95      tiff    ras2tiff -%f -v %V %i %o
 #
 # HylaFAX now has server-side PDF conversion, so no need for pdf2ps.
@@ -125,12 +127,25 @@
 #
 0      string          begin           error   uuencoded file support not 
configured
 0      string          xbtoa           error   btoa'd file support not 
configured
-0      string          P1              error   PBM file support not configured
-0      string          P2              error   PGM file support not configured
-0      string          P3              error   PPM file support not configured
-0      string          P4              error   PBM "rawbits" file support not 
configured
-0      string          P5              error   PGM "rawbits" file support not 
configured
-0      string          P6              error   PPM "rawbits" file support not 
configured
+#0     string          P1              tiff    pbmtog3 < %i > %o
+0      string          P1              ps      ppmtopgm < %i |\
+                                               pnmscale -xysize 1728 2385 < %i 
|\
+                                               pnmtops -dpi 204 > %o
+0      string          P2              ps      ppmtopgm < %i |\
+                                               pnmscale -xysize 1728 2385 < %i 
|\
+                                               pnmtops -dpi 204 > %o
+0      string          P3              ps      ppmtopgm < %i |\
+                                               pnmscale -xysize 1728 2385 < %i 
|\
+                                               pnmtops -dpi 204 > %o
+0      string          P4              ps      ppmtopgm < %i |\
+                                               pnmscale -xysize 1728 2385 < %i 
|\
+                                               pnmtops -dpi 204 > %o
+0      string          P5              ps      ppmtopgm < %i |\
+                                               pnmscale -xysize 1728 2385 < %i 
|\
+                                               pnmtops -dpi 204 > %o
+0      string          P6              ps      ppmtopgm < %i |\
+                                               pnmscale -xysize 1728 2385 < %i 
|\
+                                               pnmtops -dpi 204 > %o
 #
 0      string          WNGZWZSS        error   Wingz spreadsheet support not 
configured
 0       string          #Inventor V    error   IRIS Inventor file support not 
configured
@@ -138,12 +153,13 @@
 >15     string          ascii          ps      textfmt -B -f Courier-Bold\
                                                -Ml=0.4in -p 11 -s %s >%o <%i
 #
-0      string          \x89PNG         error   PNG support not configured
 0      short           0xffd8          error   filetype conversion support not 
configured
->6     string          JFIF            error   JPEG support not configured
+#                                              djpeg -pnm < %i
+>6     string          JFIF            ps      jpegtopnm < %i| ppmtopgm | \
+                                               pnmscale -xysize 1728 2385|\
+                                               pnmtops -dpi 204 > %o
 0      short           0xd8ff          error   filetype conversion support not 
configured
->6     string          JFIF            error   JPEG support not configured
-0      string          #FIG            error   FIG support not configured
+0      string          #FIG            ps      fig2dev -L ps -p x -M -N -z A4 
< %i > %o
 
 
 #


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

Reply via email to