Re: Question about HylaFAX - pdf to fax conversion
Ido Diamant <[email protected]>
| Newsgroups | gmane.comp.telephony.fax.hylafax.user |
|---|---|
| Message-ID | <CAJ=dzYUpfhRu06RBm=h1Hn3UGpvAZvxiyjXj+w8_eYUo9rUeYw@mail.gmail.com> |
I feel doomed :( I tried doing what the HylaFAX+ does (by the sourcecode you sent, and also checked the source code myself to figure the correct parameter values), and the output sucks :( Any other suggestions? Thanks, Ido On Sun, Jan 3, 2016 at 7:58 PM, Lee Howard <[email protected]> wrote: > My recommendation would be to upgrade the installation to HylaFAX+. But, > from the source code hylafax-5.5.7/util/common-functions.sh.in: > > if [ "$DITHERING" = "gs-stocht" ]; then > $CAT $files | $PS -q \ > -sDEVICE=$device \ > -dNOPAUSE \ > -dSAFER=true \ > -sPAPERSIZE=$paper \ > -dBATCH \ > -r$hres\x$vres \ > "-sOutputFile=$out" \ > $STRIPSIZE \ > $FIXEDWIDTH \ > $AUTOROTATE \ > stocht.ps -c "<< /HalftoneMode 1 >> setuserparams" - > return > fi > > Thanks, > > Lee. > > > On 01/03/2016 01:31 AM, Ido Diamant wrote: > >> Hi, >> >> I think I am using HylaFAX, and not the + version (it's part of the >> Elastix solution). >> I tried placing the DITHERING in the FaxModify, but no change in the >> output fax. >> >> Any other suggestion? >> Do you know what's the parameter for ghostscript to use the stochastic >> mode instead of regular? (I can edit the pdf2fax file and change its >> parameters to make it better, if I know the right parameters). >> >> thanks, >> Ido >> >> On Thu, Dec 31, 2015 at 7:33 PM, Lee Howard <[email protected] >> <mailto:[email protected]>> wrote: >> >> Many people do not appreciate the default dithering that >> Ghostscript does on color images when producing faxable TIFF images. >> >> If you're using HylaFAX+ then you can put: >> >> DITHERING=libtiff-fs >> >> ... or... >> >> DITHERING=gs-stocht >> >> into /var/spool/hylafax/etc/FaxModify, and you'll get a prettier >> result. >> >> Thanks, >> >> Lee. >> >> >> >> On 12/31/2015 05:49 AM, Ido Diamant wrote: >> >> Hi, >> >> I am having a problem with HylaFax through Elastix. >> >> Faxes are being received correctly, and sent fine. I have a >> problem with the quality of the fax sent from PDF. >> e.g. if I send a PDF through the sendfax commandline, or >> through the Elastix UI, the PDF is being converted to a TIFF >> for the fax sending using this command: >> >> /usr/bin/gs -q -sDEVICE=tiffg4 -dNOPAUSE -dSAFER=true >> -sPAPERSIZE=a4 -dFIXEDMEDIA -dMaxStripSize=0 -dBATCH >> -r209.10x196 -sOutputFile=docq/doc604.pdf;c1 docq/doc604.pdf.604 >> >> (this is the command that is being ran by the pdf2fax script). >> >> the output file's quality is very poor, what causes the fax >> sent to be in poor quality, and sometimes not readable. >> >> I tried playing with the conversion, and noticed that when >> using -sDEVICE=tiffgray the file is better, but not able to >> send it through the sendfax, because its not compressed with >> Group 3 or Group 4 compression. >> >> What's the best method to convert pdf2fax so it'll make it >> black/white but in good quality and sharp, and not bad quality? >> >> Thanks, >> Ido >> >> >> >> >