How to improve processing time ??

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
Antoine4851
Posts: 6
Joined: 2015-07-21T02:45:54-07:00
Authentication code: 1151

How to improve processing time ??

Post by Antoine4851 »

Hi,

I'm extracting pages from a big TIF and creating new files with. But it's taking a long time !!!

For example, for creating a files with the first 50 pages from a TIF of 1500 pages, it's taking around 15 minutes with the command below:
convert in.tif[0-49] out.tif


Thanks

Antoine
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How to improve processing time ??

Post by snibgo »

How many pixels in each page? What is the computer bottleneck: CPU, memory or disk? Maybe you are running out of memory.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to improve processing time ??

Post by fmw42 »

Do you have multiple cores and is OpenMP enabled? Be sure the have lots of tmp space, also.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: How to improve processing time ??

Post by magick »

Its likely ImageMagick is running out of memory so it caching the TIFF images to disk-- which is a performance killer. It works but is slow. Your choices are to accept the slow turn-around, get substantially more memory, or use some other utility.
Post Reply