<div dir="ltr">Hi,<div>Thank you so much guys,</div><div>For your help & support!</div><div><br></div><div>Actually I'm using nodejs's gm module to adjust images for faxing. My fault was that I didn't compress the result image. By adding compression (Fax by ImageMagick / Group4 by GraphicsMagick) I could fix the error!</div>
<div><br></div><div>Appreciate</div><div>Afshin</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 24, 2014 at 3:14 PM, Steve Underwood <span dir="ltr"><<a href="mailto:steveu@coppice.org" target="_blank">steveu@coppice.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
As Dušan said, the configurations at<br>
<a href="http://soft-switch.org/spandsp_faq/ar01s14.html" target="_blank">http://soft-switch.org/spandsp_faq/ar01s14.html</a> give reliable FAX<br>
images. The resolutions on that page are based on using imperial units,<br>
but specifying a resolution of 200x200 is also OK. You get a metric<br>
page. The *key* thing is to specify -dPDFFitPage. Without this,<br>
converting some things to TIFF works OK, while others result in strange<br>
image widths. With this parameter the output TIFF should always be<br>
adjusted to the specified number of pixels.<br>
<br>
Regards,<br>
Steve<br>
<div class="HOEnZb"><div class="h5"><br>
On 08/24/2014 05:41 PM, Dušan Dragić wrote:<br>
> Try to convert the PDF using ghostscript directly (i think imagemagick<br>
> uses gs for pdf/ps) with commands from Steve's spandsp FAQ<br>
> <a href="http://soft-switch.org/spandsp_faq/ar01s14.html" target="_blank">http://soft-switch.org/spandsp_faq/ar01s14.html</a> (note the resolution).<br>
> If it works (it should) you'll have a know working TIFF file and can<br>
> change your ImageMagick settings to create something compatible.<br>
><br>
> On 24 August 2014 09:14, afshin afzali <<a href="mailto:a.afzali2003@gmail.com">a.afzali2003@gmail.com</a>> wrote:<br>
>> Hi,<br>
>><br>
>> OK, The TIFF file is created from a PDF<br>
>> by ImageMagick library. I set it's resolution to 200*200 and it's width to<br>
>> 1728 pixel (I don't set it's height), and noProfile !<br>
>> Freeswitch gets the TIFF file by http_get API. I checked it. It is owned by<br>
>> freeswitch user and it's permission is 0600.<br>
>> Maybe there is something wrong in the conversion although I do it (exactly<br>
>> same) on TIFF files too and there is no problem.<br>
>><br>
>><br>
>> BEST,<br>
>> Afshin<br>
>><br>
>><br>
>> On Sun, Aug 24, 2014 at 5:01 AM, Steve Underwood <<a href="mailto:steveu@coppice.org">steveu@coppice.org</a>> wrote:<br>
>>> The FAX software doesn't care about the size of the file. There is<br>
>>> another reason why it cannot be opened. File permissions are the usual<br>
>>> cause. The contents of the file not being a suitable TIFF type is another.<br>
>>><br>
>>> Regards,<br>
>>> Steve<br>
>>><br>
>>> On 08/23/2014 07:01 PM, afshin afzali wrote:<br>
>>>> Hi,<br>
>>>> I don't know if there is a limit on TIFF file size when being faxed!<br>
>>>> My file is about 16M in size. My error is "*41 TIFF/F file cannot be<br>
>>>> opened*". Also I checked the permission issue and think it is OK. I do<br>
>>>> not have any problem on small file size.<br>
>>>><br>
>>>> BEST,<br>
>>>> Afshin<br>
>>>><br>
>>><br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></div></div></blockquote></div><br></div>