I am have been trying to deskew an image but recieve warnings. I was was wondering if i was doing something wrong
convert image1.tiff -deskew 40% image1_Deskewed reports
Code: Select all
convert.im6: "XPosition": Information lost writing value (-0.00333333) as (unsigned) RATIONAL. `/home/pi/PiScans/Scan-15395/bw_NoBo rder_Deskewedout2.tif' @ warning/tiff.c/TIFFWarnings/768.
convert.im6: "YPosition": Information lost writing value (-0.106667) as (unsigned) RATIONAL. `/home/pi/PiScans/Scan-15395/bw_NoBord er_Deskewedout2.tif' @ warning/tiff.c/TIFFWarnings/768.
convert image1.tiff -set option:deskew:auto-crop image1_Deskewed reports the same
Code: Select all
convert.im6: "XPosition": Information lost writing value (-0.00333333) as (unsigned) RATIONAL. `/home/pi/PiScans/Scan-15395/bw_NoBorder_Deskewedout2.tif' @ warning/tiff.c/TIFFWarnings/768.
convert.im6: "YPosition": Information lost writing value (-0.106667) as (unsigned) RATIONAL. `/home/pi/PiScans/Scan-15395/bw_NoBorder_Deskewedout2.tif' @ warning/tiff.c/TIFFWarnings/768
is there something else i need to try or can these warning be safely ignored?
additionally. the scripted that execute this command acutually runs a few command at the same time.
Code: Select all
convert $tmpdir/$page -colorspace gray -level 10%,90%,1 -blur 2 +dither -monochrome $tmpdir/bw_$page
convert $tmpdir/bw_$page -stroke black -fill black -draw "rectangle 0,0 50,3505" -draw "rectangle 0,0 2548,50" -draw "rectangle 0,3405 2548,3505" -draw "rectangle 2448,0 2548,3505" +matte $tmpdir/bw_Border_$page
convert $tmpdir/bw_Border_$page -fill white -draw "color 0,0 floodfill" +matte $tmpdir/bw_NoBorder_$page
#tifftopnm --quiet raw_page_bw_noborder.tiff | pamtilt -
#convert $tmpdir/bw_NoBorder_$page -deskew 40% $tmpdir/bw_NoBorder_Deskewed$page
convert $tmpdir/bw_NoBorder_$page -set option:deskew:auto-crop $tmpdir/bw_NoBorder_Deskewed$page
thank you.