FILENAME=`echo $FILE | $SED -e 's/\.tif//' -e 's/recvq\///'`
convert -geometry 50%x50% $FILE recvq/$FILENAME.png
convert -append recvq/$FILENAME.png* recvq/$FILENAME.miff
convert recvq/$FILENAME.miff recvq/$FILENAME.jpg
rm -f recvq/$FILENAME.png*
rm -f recvq/$FILENAME.miff
elif [ "$FILETYPE" = "pdf" ]; then
echo "Content-Type: image/pjpeg; name=\"$FILENAME.jpg\""
echo "Content-Description: FAX document"
echo "Content-Transfer-Encoding: $ENCODING"
echo "Content-Disposition: attachment; filename=\"$FILENAME.jpg\""
$TIFF2PDF -o $FILE.pdf $FILE
encode $FILE.pdf
$RM -f $FILE.pdf 2>$ERRORSTO
#$TIFF2PDF -o $FILE.pdf $FILE
encode recvq/$FILENAME.jpg
$RM -f recvq/$FILENAME.jpg 2>$ERRORSTO
歡迎光臨 PALMisLIFE 討論區 (http://f.pil.tw/) | Powered by Discuz! X2.5 |