2

I’d like to use Freds unroate script to unrotate a bunch of Canon *.cr2 RAW files and keep them in the RAW Format. I’m able to use the script as a batch file for a folder of jpgs:

for pic in *.jpg; do echo "... bearbeite "$pic; unrotate -f 10 $pic ${pic%.*}"_cuted".jpg; done

The simple command would be

unrotate image.jpg unroteted_image.jpg

If I try to unrotate only one cr2 image, I get the following error Message:

convert: no encode delegate for this image format `CR2' @ warning/constitute.c/WriteImage/1175.

identify -version
Version: ImageMagick 6.9.7-0 Q16 x86_64 2016-12-18
http://www.imagemagick.org
Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png tiff xml zlib

identify -list format

CR2  DNG       r--   Canon Digital Camera Raw Image Format

Am I missing something? A delegate to write CR2 files?

Thanks for your help!

  • How did you install ImageMagick? What OS are you using? – scottbb Dec 20 '16 at 14:59
  • Seems like an installation problem – wander95 Dec 20 '16 at 15:04
  • I’m using macOS 10.11 and installed via homebrew (brew install imagemagick) – karkraeg Dec 20 '16 at 16:56
  • 2
    I'm voting to close this question as off-topic because it isn't about photography. It is about getting an application to work within a specific operating system. – Michael C Dec 20 '16 at 17:13
  • 2
    This feels like an XY problem. What is the problem you actually want to solve, because i'm relatively sure that rotated raw files aren't it. Also, unrotate is for straightening images which were rotated by an arbitrary angle, within a unicoloured box. – ths Dec 20 '16 at 19:23
2

The answer is in the output of identify -list format that you posted:

   Format  Module    Mode  Description
----------------------------------------------------------------
      CR2  DNG       r--   Canon Digital Camera Raw Image Format

ImageMagick can only read CR2 format (the "Mode" is r--, meaning it can only read).

The error output also indicates the issue: "no encoder delegate" for the CR2 image format. It cannot encode, or write new information to, CR2 files.

  • That’s what I figured, I thought maybe I’m missing a delegate 😉 – karkraeg Dec 21 '16 at 8:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.