[l2h] Image conversion

Bob van der Poel bvdp at uniserve.com
Sat Oct 29 04:13:55 CEST 2005


Thanks for the pointers, Ross. I finally got it somewhat figured out :)

The program pnmtopng from netpbn.10.29 was dumping core. I have no idea 
why, but I grabbed 10.30, compiled and installed and all is now well.

Ross Moore wrote:
> Hi Bob,
> 
> On 28/10/2005, at 10:07 AM, Bob van der Poel wrote:
> 
>>
>> I think I had and solved this one before ... but I'm no Perl expert 
>> ... but, after "upgrading" my linux installation I'm getting a bunch 
>> of errors.
>>
>> When converting images I get:
>>
>> pstoimg: Error: "/usr/bin/ppmquant -floyd 256 < 
>> /var/tmp/l2h31773/p31811.pnm | /usr/bin/pnmtopng -interlace -trans 
>> 'gray85'  > img1.png" failed: Bad file descriptor
> 
> Run a job with  -debug .
> This will leave all the temporary files in the location where
> image processing takes place.
>  (e.g., in  /var/tmp/l2h31773  on the run you show here.)
> 
> Next,  cd  to that tmp/ subdirectory.
> 
> Break up the pipe into single commands:
> 
> e.g.
>   /usr/bin/ppmquant -floyd 256 < /p31811.pnm  > test.pnm
>   /usr/bin/pnmtopng -interlace -trans 'gray85'  < test.pnm  > test.png
> 
> Which one fails ?
> 
> 
>> Error while converting image
>>
>> over and over ...
>>
>> I have checked to make sure I have the prerequisites ... I did not 
>> have perldoc (A Mandriva Powerpack 2006 install), but that is there now.
>>
>> bob$ which perldoc ppmquant pnmtopng
>> /usr/bin/perldoc
>> /usr/bin/ppmquant
>> /usr/bin/pnmtopng
>>
>>
>> Also, I've tried to run as root and get the same errors, so I'm pretty 
>> sure it's not a permission error.
> 
> I recently debugged a problem with  ppmquant  for Sun Solaris.
> (Actually it was  pnmremap  which is called by  ppmquant .)
> 
> The problem was solved by recompiling  pnmremap  without optimization.
> 
> Perhaps you are having a similar problem under Linux.
> Please report back what you find.
> 
> 
>> I think there is a problem with pstoimg or some other part of the 
>> image conversion chain. Is there a command test I can do to trace it 
>> down?
> 
> See above.
> 
> 
>>
>> Thanks.
> 
> 
> Hope this helps,
> 
>     Ross
> 
>>
>> --Bob van der Poel ** Wynndel, British Columbia, CANADA **
>> EMAIL: bvdp at uniserve.com
>> WWW:   http://mypage.uniserve.com/~bvdp
>>
>>
>> _______________________________________________
>> latex2html mailing list
>> latex2html at tug.org
>> http://tug.org/mailman/listinfo/latex2html
>>
> 
> ------------------------------------------------------------------------
> Ross Moore                                         ross at maths.mq.edu.au
> Mathematics Department                             office: E7A-419
> Macquarie University                               tel: +61 +2 9850 8955
> Sydney, Australia  2109                            fax: +61 +2 9850 8114
> ------------------------------------------------------------------------
> 
> 
> 

-- 
Bob van der Poel ** Wynndel, British Columbia, CANADA **
EMAIL: bvdp at uniserve.com
WWW:   http://mypage.uniserve.com/~bvdp




More information about the latex2html mailing list