HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
Re: [hylafax-users] Other graphic formats for received faxes
Midshire Veterinary said:
> Can Hylafax produce something other than a TIFF, PS or PDF file to send as
> an email attachment? Maybe a JPG or BMP file, perhaps, would be useful. I
> couldn't see anything in the notes about this - they specifically refer to
> these three types.
>
> Background: I am emailing the incoming fax to another system, and for
> maximum control (users not printing long faxes to expensive
> inkjet printers,
> for example) I'd like to have my software print the fax. Only
> problem is I am
> printing from a THEOS server to a Windows PC, and the Windows PC (an
> unattended PC with no monitor) will pop up a confirmation window
> when I try
> to print the file. If I could print JPG or BMP these are handled
> a different
> way by the printing software and would not give this problem.
>
> Thanks in advance.
> Mike
>
The idea of using a Linux box as your headless print server sounds good, but
if you can't do that then you will probably have to do some hacking of the
faxrvcd script. HylaFax uses Ghostscript for its image conversions, and I am
not sure if it can do a jpg, I don't think so. However, a search for ps2jpeg
on google turned up this :
#!/bin/sh
##source: http://geoscope.ipgp.jussieu.fr/~gaboret/ps2jpeg
# Convert a PostScript file to TIFF (24-bit RGB) using Ghostscript.
# Then it is converted to TIFF (8-bit BW with LZW compression) with
# the "tiff2bw" program. Resolution is 600 dpi.
#
case $# in
1) BASE=`basename $1 .ps`
echo "Converting $BASE.ps to $BASE.jpg"
gs -q -DNOPAUSE -r300x300 -sDEVICE=jpeg -sOutputFile=- $BASE.ps
quit.ps \
> $BASE.jpg
;;
*) echo "Usage: `basename $0` file[.ps]" 1>&2 ;;
esac
HTH,
Josh
____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null
*To learn about commercial HylaFAX(tm) support, mail sales@hylafax.org.*