Ok Steve,
strange since I use exactly
sudo /usr/bin/convert -page Letter -density 204x196 -resize
1728x1184 -units pixelsperinch -monochrome -compress Fax <pathToFile>
<pathToNewFile>
but the spandsp log shows 881px as width :(
thanks
----- Original Message -----
Sent: Thursday, April 14, 2011 11:59 AM
Subject: Re: [Freeswitch-users] fax and jpg to
tiff
> Hi Madovsky,
>
> The standard width for a normal sized fax, whether it is standard, fine
> or super-fine resolution length-wise, is 1728 pixels. Wider faxes (e.g.
> A3) are possible, but it is rare to find a machine which supports
them.
>
> Steve
>
>
> On 04/14/2011 11:20 PM,
Madovsky wrote:
>> Hi Steve,
>>
>> if you talk about
this line
>>> Image width (200 pixels) not an acceptable FAX image
width
>> I tried many different size but it says always the
same.
>> what image width is acceptable usually
?
>>
>> Thanks
>>
>> ----- Original Message
-----
>> From: "Steve Underwood"<steveu@coppice.org>
>> To: "FreeSWITCH Users Help"<freeswitch-users@lists.freeswitch.org>
>> Sent: Thursday, April 14, 2011 9:25 AM
>>
Subject: Re: [Freeswitch-users] fax and jpg to
tiff
>>
>>
>>> Hi
Madovsky,
>>>
>>> Your log says very clearly what is
wrong with the file you are trying to
>>> send. What further
information are you looking for?
>>>
>>>
Steve
>>>
>>>
>>> On 04/14/2011 12:05 PM,
Madovsky wrote:
>>>> is there the spandsp log
>>>>
2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296 FLOW
T.30
>>>> .... ...0= Store and forward Internet fax (T.37): Not
set
>>>> 2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296
FLOW T.30
>>>> .... .0..= Real-time Internet fax (T.38): Not
set
>>>> 2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296
FLOW T.30
>>>> .... 0...= 3G mobile network: Not
set
>>>> 2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296
FLOW T.30
>>>> ..0. ....= V.8 capabilities: Not
set
>>>> 2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296
FLOW T.30
>>>> .0.. ....= Preferred octets: 256
octets
>>>> 2011-04-14 00:03:30.484254 [DEBUG]
mod_spandsp_fax.c:296 FLOW T.30
>>>> .... ...0= Ready to transmit
a fax document (polling): Not set
>>>> 2011-04-14 00:03:30.484254
[DEBUG] mod_spandsp_fax.c:296 FLOW T.30
>>>> .... ..1.= Can
receive fax: Set
>>>> 2011-04-14 00:03:30.484254 [DEBUG]
mod_spandsp_fax.c:296 FLOW T.30
>>>> ..10 11..= Supported data
signalling rates: V.27 ter, V.29, and V.17
>>>> 2011-04-14
00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296 FLOW T.30
>>>> .1..
....= R8x7.7lines/mm and/or 200x200pels/25.4mm: Set
>>>>
2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296 FLOW
T.30
>>>> 1... ....= 2-D coding: Set
>>>>
2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296 FLOW
T.30
>>>> .... ..00= Recording width: 215mm +-
1%
>>>> 2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296
FLOW T.30
>>>> .... 10..= Recording length:
Unlimited
>>>> 2011-04-14 00:03:30.484254 [DEBUG]
mod_spandsp_fax.c:296 FLOW T.30
>>>> .111 ....= Receiver's
minimum scan line time: 0ms at 3.85 l/mm; T7.7 =
>>>>
T3.85
>>>> 2011-04-14 00:03:30.484254 [DEBUG]
mod_spandsp_fax.c:296 FLOW T.30
>>>> 1... ....= Extension
indicator: Set
>>>> 2011-04-14 00:03:30.484254 [DEBUG]
mod_spandsp_fax.c:296 FLOW T.30
>>>> .... ..0.=
Compressed/uncompressed mode: Compressed
>>>> 2011-04-14
00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296 FLOW T.30
>>>> ....
.0..= Error correction mode (ECM): Non-ECM
>>>> 2011-04-14
00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296 FLOW T.30
>>>> .0..
....= T.6 coding: Not set
>>>> 2011-04-14 00:03:30.484254 [DEBUG]
mod_spandsp_fax.c:296 FLOW T.30
>>>> 1... ....= Extension
indicator: Set
>>>> 2011-04-14 00:03:30.484254 [DEBUG]
mod_spandsp_fax.c:296 FLOW T.30
>>>> .... ...0= "Field not valid"
supported: Not set
>>>> 2011-04-14 00:03:30.484254 [DEBUG]
mod_spandsp_fax.c:296 FLOW T.30
>>>> .... ..0.= Multiple
selective polling: Not set
>>>> 2011-04-14 00:03:30.484254
[DEBUG] mod_spandsp_fax.c:296 FLOW T.30
>>>> .... .0..= Polled
sub-address: Not set
>>>> 2011-04-14 00:03:30.484254 [DEBUG]
mod_spandsp_fax.c:296 FLOW T.30
>>>> .... 0...= T.43 coding: Not
set
>>>> 2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296
FLOW T.30
>>>> ...0 ....= Plane interleave: Not
set
>>>> 2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296
FLOW T.30
>>>> ..0. ....= Voice coding with 32kbit/s ADPCM (Rec.
G.726): Not set
>>>> 2011-04-14 00:03:30.484254 [DEBUG]
mod_spandsp_fax.c:296 FLOW T.30
>>>> .0.. ....= Reserved for the
use of extended voice coding set: Not set
>>>> 2011-04-14
00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296 FLOW T.30
>>>> 1...
....= Extension indicator: Set
>>>> 2011-04-14 00:03:30.484254
[DEBUG] mod_spandsp_fax.c:296 FLOW T.30
>>>> .... ...1=
R8x15.4lines/mm: Set
>>>> 2011-04-14 00:03:30.484254 [DEBUG]
mod_spandsp_fax.c:296 FLOW T.30
>>>> .... ..0.=
300x300pels/25.4mm: Not set
>>>> 2011-04-14 00:03:30.484254
[DEBUG] mod_spandsp_fax.c:296 FLOW T.30
>>>> .... .0..=
R16x15.4lines/mm and/or 400x400pels/25.4mm: Not set
>>>>
2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296 FLOW
T.30
>>>> .... 0...= Inch-based resolution preferred: Not
set
>>>> 2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296
FLOW T.30
>>>> ...1 ....= Metric-based resolution preferred:
Set
>>>> 2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296
FLOW T.30
>>>> ..0. ....= Minimum scan line time for higher
resolutions: T15.4 = T7.7
>>>> 2011-04-14 00:03:30.484254 [DEBUG]
mod_spandsp_fax.c:296 FLOW T.30
>>>> .0.. ....= Selective
polling: Not set
>>>> 2011-04-14 00:03:30.484254 [DEBUG]
mod_spandsp_fax.c:296 FLOW T.30
>>>> 1... ....= Extension
indicator: Set
>>>> 2011-04-14 00:03:30.484254 [DEBUG]
mod_spandsp_fax.c:296 FLOW T.30
>>>> .... ...1= Sub-addressing:
Set
>>>> 2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296
FLOW T.30
>>>> .... ..0.= Password: Not set
>>>>
2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296 FLOW
T.30
>>>> .... .0..= Ready to transmit a data file (polling): Not
set
>>>> 2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296
FLOW T.30
>>>> ...0 ....= Binary file transfer (BFT): Not
set
>>>> 2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296
FLOW T.30
>>>> ..0. ....= Document transfer mode (DTM): Not
set
>>>> 2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296
FLOW T.30
>>>> .0.. ....= Electronic data interchange (EDI): Not
set
>>>> 2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296
FLOW T.30
>>>> 0... ....= Extension indicator: Not
set
>>>> 2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296
FLOW T.30
>>>> Selected compression T.4 2-D
(2)
>>>> 2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296
FLOW T.30
>>>> Trying to send file
'/1302753792.tiff'
>>>> 2011-04-14 00:03:30.484254 [DEBUG]
mod_spandsp_fax.c:296 FLOW T.30
>>>> Start sending
document
>>>> 2011-04-14 00:03:30.484254 [DEBUG]
mod_spandsp_fax.c:296 FLOW T.30
>>>> Minimum bits per row will be
0
>>>> 2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296
FLOW T.30
>>>> Starting page 1 of transfer
>>>>
2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296 FLOW
T.30
>>>> Image width (200 pixels) not an acceptable FAX image
width
>>>> 2011-04-14 00:03:30.484254 [DEBUG]
mod_spandsp_fax.c:296 FLOW T.30 The
>>>> far end is
incompatible
>>>> 2011-04-14 00:03:30.484254 [DEBUG]
mod_spandsp_fax.c:296 FLOW T.30
>>>> Changing from state 18 to
3
>>>> 2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296
FLOW T.30
>>>> Tx: DCN with final frame
tag
>>>> 2011-04-14 00:03:30.484254 [DEBUG] mod_spandsp_fax.c:296
FLOW T.30
>>>> Tx: ff 13 fb
>>>> 2011-04-14
00:03:30.564178 [DEBUG] mod_spandsp_fax.c:296 FLOW T.30
>>>> HDLC
signal status is Carrier down (-1) in state 3
>>>> 2011-04-14
00:03:30.564178 [DEBUG] mod_spandsp_fax.c:296 FLOW T.30
>>>>
Changing from phase T30_PHASE_B_RX to T30_PHASE_D_TX
>>>>
2011-04-14 00:03:30.564178 [DEBUG] mod_spandsp_fax.c:296 FLOW FAX
Set
>>>> rx type 0
>>>> 2011-04-14 00:03:30.564178
[DEBUG] mod_spandsp_fax.c:296 FLOW FAX Set
>>>> tx type
4
>>>> 2011-04-14 00:03:31.624981 [DEBUG] mod_spandsp_fax.c:296
FLOW T.30
>>>> Send complete in phase T30_PHASE_D_TX, state
3
>>>> 2011-04-14 00:03:31.705007 [DEBUG] mod_spandsp_fax.c:296
FLOW T.30
>>>> Send complete in phase T30_PHASE_D_TX, state
3
>>>> 2011-04-14 00:03:31.705007 [DEBUG] mod_spandsp_fax.c:296
FLOW T.30
>>>> Disconnecting
>>>> 2011-04-14
00:03:31.705007 [DEBUG] mod_spandsp_fax.c:296 FLOW T.30
>>>>
Changing from phase T30_PHASE_D_TX to T30_PHASE_E
>>>> 2011-04-14
00:03:31.705007 [DEBUG] mod_spandsp_fax.c:296 FLOW FAX Set
>>>>
rx type 0
>>>> 2011-04-14 00:03:31.705007 [DEBUG]
mod_spandsp_fax.c:296 FLOW FAX Set
>>>> tx type
1
>>>> 2011-04-14 00:03:31.705007 [DEBUG] mod_spandsp_fax.c:296
FLOW T.30
>>>> Changing from state 3 to 2
>>>>
2011-04-14 00:03:32.704744 [DEBUG] mod_spandsp_fax.c:296 FLOW
T.30
>>>> Send complete in phase T30_PHASE_E, state
2
>>>>
>>>> -----
Original Message -----
>>>> *From:*
Madovsky<mailto:infos@madovsky.org>
>>>> *To:* freeswitch-users@lists.freeswitch.org
>>>> <mailto:freeswitch-users@lists.freeswitch.org>
>>>> *Sent:* Wednesday,
April 13, 2011 11:33 PM
>>>>
*Subject:* fax and jpg to
tiff
>>>>
>>>> sorry
I don't have the personal email
of
>>>> Steve Underwood (I saw a
thread of him related of this
subject),
>>>> it's about a
problem
>>>> of spandsp txfax and
jpeg files.
>>>> I didn't succeed
to find the right conversion to make the far
end
>>>> accept the
fax.
>>>> I get always "far end
cannot receive at the size of the
image".
>>>> this problems occurs
only from jpeg to tiff
conversion.
>>>> I use imagemagick
for that :
>>>> sudo
/usr/bin/convert -page Letter -density 204x196
-resize
>>>> 1728x1184 -units
pixelsperinch -monochrome -compress
Fax
>>>>
<fileToConvert>
<fileToSave>
>>>> I tried
numrous options but no luck.
>>>>
Thanks
>>>>
>>>>
>>>
>>>
_______________________________________________
>>> FreeSWITCH-users
mailing list
>>> FreeSWITCH-users@lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>
http://www.freeswitch.org
>>
_______________________________________________
>> FreeSWITCH-users
mailing list
>> FreeSWITCH-users@lists.freeswitch.org
>>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>
http://www.freeswitch.org
>>
>
>
> _______________________________________________
>
FreeSWITCH-users mailing list
> FreeSWITCH-users@lists.freeswitch.org
>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>
http://www.freeswitch.org