I am able go with the convert command for the conversion of a single image from PNG to XPM, but unable to get (my previous) script to be in functioning. I need the same to convert a directory of PNGs to XPM. Any suggestion would be appreciated. Thank you very much !
echo "Script Starting.."
cd /home/user/Pictures/icons
echo "start For loop"
for pic in 'ls *.png'
do
echo "converting $pic"
convert $pic $pic.xpm
done
echo "finished"
Bookmarks