Page 1 of 1
How to speed up resample action!!
Posted: 2011-01-25T04:03:52-07:00
by diuming
Hello guys,
I have a tiff file (pixel: 21503x29003 17.1MB DPI:2400).
I try to resample to 300 DPI, But convert utility almost spend 2 mins.
Does anyone can teach me, how to speed up resample or any idea to improve.
convert -resample 300x300 input.tiff output.jpg
Thanks
Diuming
Re: How to speed up resample action!!
Posted: 2011-01-25T16:08:13-07:00
by anthony
You are reaching a memory limit and IM is disk caching.
More memory or perhaps use a Q8 version of IM.
A streaming method could also be used.
Really Massive Image Handling
http://www.imagemagick.org/Usage/files/#massive
Re: How to speed up resample action!!
Posted: 2011-01-25T19:39:59-07:00
by diuming
Thanks for reply..
Yes, My IM is Q8 and I try to use convert command with -limit option, But I got a same result of spend time.
Ram 4G
Disk : 5700 RPM
convert -limit memory 32 -limit map 32 -monitor -resample 300x300
input.TIF -scene 1 +adjoin
output.jpg
Diuming
Re: How to speed up resample action!!
Posted: 2011-01-25T19:56:59-07:00
by diuming
I used -monitor option to monitor IM processing, In load image stage as if never using RAM ( I watched system free RAM)
IM : 6.6.7-0
OS : Mac OS X 10.6.5
RAM : 4G
Disk : 5700 RPM
Does my configure IM is wrong?
./configure --disable-shared --without-perl --without-magick-plus-plus --without-x --disable-opencl --enable-delegate-build --without-bzlib --with-quantum-depth=8 --disable-dependency-tracking
thanks a lot.
Re: How to speed up resample action!!
Posted: 2011-01-31T10:57:37-07:00
by dimkalinux
In latest version of IM PNG seems to be slow - u can try early version.
Re: How to speed up resample action!!
Posted: 2011-01-31T11:10:18-07:00
by magick
The PNG slow-down was introduced in ImageMagick 6.6.7-0 but has been fixed in ImageMagick 6.6.7-4, the current release.