Regarding the discussion on using netpbm vs ImageMagick:
The attached file (unzipped) produces no output .ppm file.
I've tried with gs7.03 compiled with gcc3.03 and gs5.50 compiled with
gcc2.95.2
The maintainer of netpbm says it is a ghostscript problem, and that
appears to be the case.
--------------
pstopnm -verbose ecg.sol
pstopnm: Input file is ecg.sol
pstopnm: Using %%BoundingBox statement from input.
pstopnm: Extracting the box ((0,0),(254,227))
pstopnm: With borders, extracted box is ((-25,-23),(279,250))
pstopnm: Writing ppmraw file
pstopnm: Shell command: gs -sDEVICE='ppmraw'
-sOutputFile='ecg.sol%03d.ppm' -g'610x679' -r'161x161' -q -dNOPAUSE -
pstopnm: Postscript prefix command: '90 rotate -25 neg 250 neg
translate'
-------------
but no .ppm file generated :(
ImageMagick does work.
pstopnm works on some files, but generates large output files.
---------------------------------
bash$ pstopnm -verbose sim1.ps
pstopnm: Input file is sim1.ps
pstopnm: Warning: no %%BoundingBox statement in the input or command
line.
Will use defaults
pstopnm: Extracting the box ((72,72),(540,720))
pstopnm: With borders, extracted box is ((25,7),(587,785))
pstopnm: Writing ppmraw file
pstopnm: Shell command: gs -sDEVICE='ppmraw' -sOutputFile='sim1%03d.ppm'
-g'569x788' -r'73x73' -q -dNOPAUSE -
pstopnm: Postscript prefix command: '25 neg 7 neg translate'
bash$ ls sim1.ps -l
-rw-r--r--    1 garst    users       93030 Jan  5 13:15 sim1.ps
bash$ ls sim1*ppm -l
-rw-r--r--    1 garst    users     1345184 Feb 24 12:19 sim1001.ppm
bash$ 

Garst

Attachment: ecg.sol.gz
Description: GNU Zip compressed data

Reply via email to