How to speed up resample action!!

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
diuming
Posts: 22
Joined: 2011-01-16T22:07:22-07:00
Authentication code: 8675308

How to speed up resample action!!

Post 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

User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How to speed up resample action!!

Post 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
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/

diuming
Posts: 22
Joined: 2011-01-16T22:07:22-07:00
Authentication code: 8675308

Re: How to speed up resample action!!

Post by diuming »

Thanks for reply.. :D

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

diuming
Posts: 22
Joined: 2011-01-16T22:07:22-07:00
Authentication code: 8675308

Re: How to speed up resample action!!

Post 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.

dimkalinux
Posts: 23
Joined: 2011-01-25T11:47:11-07:00
Authentication code: 8675308

Re: How to speed up resample action!!

Post by dimkalinux »

In latest version of IM PNG seems to be slow - u can try early version.

User avatar
magick
Site Admin
Posts: 11162
Joined: 2003-05-31T11:32:55-07:00

Re: How to speed up resample action!!

Post 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.

Post Reply