CR2 RAW file conversion

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: CR2 RAW file conversion

Post by magick »

The ufraw-batch delegate program reports:
  • -> ufraw-batch --out-type=ppm --out-depth=16 --output=test.pnm test.cr2
    ufraw-batch: Cannot decode file test.cr2
The problem is with the image or ufraw-batch.
testing

Re: CR2 RAW file conversion

Post by testing »

the image
- This can be tested by sending me an good CR2 file?

ufraw-batch
- How do I test this?
testing

Re: CR2 RAW file conversion

Post by testing »

Code: Select all

ufraw-batch /home/user/domains/domain.nl/public_html/test/image/test.cr2
Results
ufraw-batch: /usr/local/lib/libpng12.so.0: no version information available (required by ufraw-batch)
ufraw-batch: Cannot decode file /home/user/domains/domain.nl/public_html/test/image/test.cr2
testing

Re: CR2 RAW file conversion

Post by testing »

No solution for my problem?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: CR2 RAW file conversion

Post by magick »

The solution is to report this as a bug to the ufraw-batch maintainers.
ayaka
Posts: 2
Joined: 2015-12-23T13:09:23-07:00
Authentication code: 1151

Re: CR2 RAW file conversion

Post by ayaka »

Hi I meet the same problem in Mac OS but not Linux(in Fedora, it works well).
I install php55-imagick/3.3.0 and ufraw/0.22 from homebrew, I have tried both CR2 and NEF format images.
It works at php shell but when I use it in php script, I meet an error like below:

Code: Select all

[Thu Dec 24 05:27:47.318902 2015] [:error] [pid 22517] [client 1xx.87.3x.4x:50264] exception 'ImagickException' with message 'unable to open image `/var/tmp/magick-22517fDB6MUmmdJck.ppm': No such file or directory @ error/blob.c/OpenBlob/2702' in /Library/WebServer/
The code is:

Code: Select all

 
    try {
        $img = new Imagick($sTempRAWFileName);
        $img->setFormat('JPG');
        $img->setImageCompressionQuality(80);
        if(!($img->writeImage($sTempFileName)))
            return false;
        } catch (Exception $e) {
            error_log($e);
            return false;
        }
        break;
Post Reply