octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #60664] [MXE Octave] cannot work with RAW imag


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #60664] [MXE Octave] cannot work with RAW images - dcraw command fails
Date: Tue, 25 May 2021 06:58:38 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36 Edg/90.0.818.66

Follow-up Comment #5, bug #60664 (project octave):

I tried with one of the files from http://rawsamples.ch:

>> imfinfo('C:\Users\Markus\Downloads\RAW_CANON_1DM2.CR2')
Will not write an image to the terminal!
Magick: "dcraw" -c -w -6 -T "C:\Users\Markus\Downloads\RAW_CANON_1DM2.CR2" >
"C:\Users\Markus\AppData\Local\Temp\gmrrjsL7".
error: Magick++ exception: Magick: Delegate failed ("dcraw" -c -w -6 -T "%i" >
"%o") reported by magick/delegate.c:907 (InvokeDelegate)
error: called from
    __imfinfo__ at line 39 column 8
    imageIO at line 125 column 28
    imfinfo at line 166 column 8


However, it works if I execute the same command directly:

>> system(['"dcraw" -c -w -6 -T "C:\Users\Markus\Downloads\RAW_CANON_1DM2.CR2"
> "C:\Users\Markus\AppData\Local\Temp\gmrrjsL7"'])
ans = 0


I can open the resulting TIFF, e.g. with MS Paint.

I'm not sure what is causing this or how they solved it upstream. The upstream
bug report doesn't link any changes in particular.

To check if this will work in principle, I installed GraphicsMagick, copied
their "dcraw.exe" over to the Octave "bin" directory and replaced the
"mingw64\lib\GraphicsMagick-1.3.36\config\delegates.mgk" with the one attached
here.
After those changes, the "imfinfo" command worked with the .raw image file.

I'm also attaching their "dcraw.exe" for now. But we should maybe try to fix
this in MXE Octave.


(file #51472, file #51473)
    _______________________________________________________

Additional Item Attachment:

File name: delegates.mgk                  Size:7 KB
    <https://file.savannah.gnu.org/file/delegates.mgk?file_id=51472>

File name: dcraw.zip                      Size:152 KB
    <https://file.savannah.gnu.org/file/dcraw.zip?file_id=51473>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60664>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]