convert is so slow!
Posted: 2011-09-04T11:01:34-07:00
Hello...
with commandline on WinXP I got very slow response.
The test.tif is rather big. it's 4437x6580 and action takes 25 second to finish.
The commandline....
convert test.tif -chop 3x4! -monitor -colorspace gray -white-threshold 1 -depth 1 out.tif
And what I wan't to do.
The tiff is realy output from scantailor. And it has black text and images in some place. The images can be grayscale or color.
With that commandline I want to do folowing.
crop size to be divisible with some numbers (ie to have integers at 600dpi and 100dpi from same image)
then I wan't to get just bacground and black color (text) in output tiff with 1bpp.
The result is what I want.
similar command takes 9 seconds
convert testcolor.tif -chop 3x4! -monitor -fill white -opaque black -depth 8 -resample 100 x03.ppm
and should do just oposite. It's make black transparent(white) and save with lowered resoluiton.
intention is to make good djvu. And need separate file for foreground and background.
thanks
with commandline on WinXP I got very slow response.
The test.tif is rather big. it's 4437x6580 and action takes 25 second to finish.
The commandline....
convert test.tif -chop 3x4! -monitor -colorspace gray -white-threshold 1 -depth 1 out.tif
And what I wan't to do.
The tiff is realy output from scantailor. And it has black text and images in some place. The images can be grayscale or color.
With that commandline I want to do folowing.
crop size to be divisible with some numbers (ie to have integers at 600dpi and 100dpi from same image)
then I wan't to get just bacground and black color (text) in output tiff with 1bpp.
The result is what I want.
similar command takes 9 seconds
convert testcolor.tif -chop 3x4! -monitor -fill white -opaque black -depth 8 -resample 100 x03.ppm
and should do just oposite. It's make black transparent(white) and save with lowered resoluiton.
intention is to make good djvu. And need separate file for foreground and background.
thanks