Page 2 of 2

Re: CR2 RAW file conversion

Posted: 2009-06-09T16:17:22-07:00
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.

Re: CR2 RAW file conversion

Posted: 2009-06-09T23:27:16-07:00
by testing
the image
- This can be tested by sending me an good CR2 file?

ufraw-batch
- How do I test this?

Re: CR2 RAW file conversion

Posted: 2009-06-10T10:27:19-07:00
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

Re: CR2 RAW file conversion

Posted: 2009-06-16T14:49:36-07:00
by testing
No solution for my problem?

Re: CR2 RAW file conversion

Posted: 2009-06-16T16:10:27-07:00
by magick
The solution is to report this as a bug to the ufraw-batch maintainers.

Re: CR2 RAW file conversion

Posted: 2015-12-23T13:33:28-07:00
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;