Reply to comment

Little change in script

I found problems running the script, so I modified it as showed. And... great! It done the job.
Problem solved in my linux box 2.6.32-16-generic Ubuntu Lucy.

#!/bin/sh
# Fix the latex2html black line and PNG transparency bugs
#
# After latex2html has generated the PNG images, run this script
# for each directory that holds the problematic PNG images.
#
# Changes:
# 11-Jan-07: Included a fix for PNG transparency and some small improvements
# 15-Sep-05: Created this script

# Get the directory path
if [ -z "$1" ]; then
cat <
EOF
exit
fi

# Fix each PNG image
for file in $1/*.png
do
echo Fixing $file...
pngtopnm $file | pnmcrop -black | pnmtopng -transparent "#B3B3B3" > img_fixed.png
mv -f img_fixed.png $file
done

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions. (Case-insensitive)