Conversion of CR2 files is VERY slow

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
waldalla
Posts: 10
Joined: 2011-10-02T11:12:42-07:00
Authentication code: 8675308

Conversion of CR2 files is VERY slow

Post by waldalla »

Hi there

I use ImageMagick to compare the image content of some CR2 (Canon RAW) files. This is VERY slow. E.g. on a MacBook (2.5 GHz Core 2 Duo with SSD) it takes around 2 minutes! Some fiddeling revealed:
  • The conversion is the slow part. For example

    Code: Select all

    convert CR2:IMG_1234.CR2 IMG_1234.tiff 
    takes a minute to convert a 16MegaPixel file.
  • This conversion employs the ufraw tool.
My questions now are:
  • Is there a way to speed things up in ufraw? E.g. can I give more memory to ufraw or so?
  • Can I employ another RAW converter in ImageMagick? Does anybody have experience using in ImageMagick the normal Mac Os X converter (I think it's part of Quartz)? This should be much faster.
My ImagickMagick is version 6.7.2 installed via MacPorts

Many thanks for any pointer, Walter
---
Walter Dallaway
* Landscape and Architecture Photography
* Creativ Exposure with Tripod and HD
R
---
Walter Dallaway
* Landscape and Architecture Photography
* Creativ Exposure with Tripod and HDR
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Conversion of CR2 files is VERY slow

Post by fmw42 »

If

convert -version

shows OpenMP, the recompile IM without OpenMP and see if that helps. Some multi-processor systems have trouble with OpenMP and actually run slower.
waldalla
Posts: 10
Joined: 2011-10-02T11:12:42-07:00
Authentication code: 8675308

Re: Conversion of CR2 files is VERY slow

Post by waldalla »

Thanks for your suggestion, Fred

Code: Select all

convert -version
does indeed list the feature OpenMP. (This is actually the only listed feature.)

Not sure how to compile IM through MacPorts though. Don't you think

Code: Select all

ufraw-batch
is the culprit?

Thanks, Walter
---
Walter Dallaway
* Landscape and Architecture Photography
* Creativ Exposure with Tripod and HDR
Post Reply