Page 1 of 2

can't convert: cr2 , crw, and dng

Posted: 2012-09-10T07:03:17-07:00
by fordfasterr
Hi all, I finally have the most recent version of IM installed and I'm having trouble getting the system to convert these formats:

cr2 , crw, and dng

Here is my error:

Code: Select all

identify 302126_D003_00075.CR2
ufraw-batch: unrecognized option `--silent'
identify: delegate failed `"ufraw-batch" --silent --create-id=also --out-type=png --out-depth=16 "--output=%u.png" "%i"' @ error/delegate.c/InvokeDelegate/1065.
identify: unable to open image `/tmp/magick-X6YGmDFz.ppm': No such file or directory @ error/blob.c/OpenBlob/2641.
Also,: The system will identify CRW, DNG, and CRW images:

Code: Select all

dcraw -i 302126_D012_00092.CRW
302126_D012_00092.CRW is a Canon EOS 10D image.

dcraw -i 302126_D003_00075.DNG
302126_D003_00075.DNG is a Canon EOS-1D Mark II DNG image.

dcraw -i 302126_D003_00075.CR2
302126_D003_00075.CR2 is a Canon EOS-1D Mark II image.
I have installed both cdraw, and ufraw.

dcraw.i386 0.0.20060521-1.1 installed
dcraw.x86_64 0.0.20060521-1.1 installed

and

ufraw.i386 0.9.1-1.fc5 installed
ufraw.x86_64 0.9.1-1.fc5 installed

(IM version:
ImageMagick.i386 6.7.9-3 installed
ImageMagick.x86_64 6.7.9-3 installed )

ufraw-batch:

Code: Select all

ufraw-batch --version
ufraw-batch 0.9.1
EXIF disabled.
EXIV2 disabled.
JPEG enabled.
TIFF enabled.
ZIP enabled.
my conifigure output:

Code: Select all

convert -list configure

Path: /usr/local/lib/ImageMagick-6.7.9/config/configure.xml

Name          Value
-------------------------------------------------------------------------------
CC            gcc -std=gnu99 -std=gnu99
CFLAGS        -fopenmp -g -O2 -Wall -pthread
CODER_PATH    /usr/local/lib/ImageMagick-6.7.9/modules-Q16/coders
CONFIGURE     ./configure  '--prefix=/usr/local' '--with-bzlib=yes' '--with-fontconfig=yes' '--with-freetype=yes' '--with-gslib=yes' '--with-gvc=yes' '--with-jpeg=yes' '--with-jp2=yes' '--with-png=yes' '--with-tiff=yes'
CONFIGURE_PATH /usr/local/etc/ImageMagick/
COPYRIGHT     Copyright (C) 1999-2012 ImageMagick Studio LLC
CPPFLAGS      -I/usr/local/include/ImageMagick
CXX           g++
CXXFLAGS      -g -O2 -pthread
DEFS          -DHAVE_CONFIG_H
DELEGATES     bzlib fontconfig freetype gs jpeg jng jp2 png tiff x11 xml zlib
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-fontpath= --with-rsvg=no --with-wmf=no --with-perl=no
DOCUMENTATION_PATH /usr/local/share/doc/ImageMagick-6.7.9
EXEC-PREFIX   /usr/local
EXECUTABLE_PATH /usr/local/bin
FEATURES      OpenMP
FILTER_PATH   /usr/local/lib/ImageMagick-6.7.9/modules-Q16/filters
HOST          x86_64-unknown-linux-gnu
INCLUDE_PATH  /usr/local/include/ImageMagick
LDFLAGS       -L/usr/local/lib -L/usr/lib -L/usr/local/lib
LIB_VERSION   0x679
LIB_VERSION_NUMBER 6,7,9,3
LIBRARY_PATH  /usr/local/lib/ImageMagick-6.7.9
LIBS          -lMagickCore -ltiff -lfreetype -ljasper -ljpeg -lgs -lpng12 -lfontconfig -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm -lgomp -lpthread
NAME          ImageMagick
PCFLAGS       -fopenmp
PREFIX        /usr/local
QuantumDepth  16
RELEASE_DATE  2012-09-04
SHARE_PATH    /usr/local/share/ImageMagick-6.7.9
SVN_REVISION  9201
TARGET_CPU    x86_64
TARGET_OS     linux-gnu
TARGET_VENDOR unknown
VERSION       6.7.9
WEBSITE       http://www.imagemagick.org

Path: [built-in]

Name          Value
-------------------------------------------------------------------------------
NAME          ImageMagick
and .. formats:

Code: Select all

 identify -list format
   Format  Module    Mode  Description
-------------------------------------------------------------------------------
      3FR  DNG       r--   Hasselblad CFV/H3D39II
        A* RAW       rw+   Raw alpha samples
      AAI* AAI       rw+   AAI Dune image
       AI  PDF       rw-   Adobe Illustrator CS2
      ART* ART       rw-   PFS: 1st Publisher Clip Art
      ARW  DNG       r--   Sony Alpha Raw Image Format
      AVI  MPEG      r--   Microsoft Audio/Visual Interleaved
      AVS* AVS       rw+   AVS X image
        B* RAW       rw+   Raw blue samples
      BMP* BMP       rw-   Microsoft Windows bitmap image
     BMP2* BMP       -w-   Microsoft Windows bitmap image (V2)
     BMP3* BMP       -w-   Microsoft Windows bitmap image (V3)
        C* RAW       rw+   Raw cyan samples
      CAL* CALS      rw-   Continuous Acquisition and Life-cycle Support Type 1
           Specified in MIL-R-28002 and MIL-PRF-28002
     CALS* CALS      rw-   Continuous Acquisition and Life-cycle Support Type 1
           Specified in MIL-R-28002 and MIL-PRF-28002
   CANVAS* XC        r--   Constant image uniform color
  CAPTION* CAPTION   r--   Caption
      CIN* CIN       rw-   Cineon Image File
      CIP* CIP       -w-   Cisco IP phone image format
     CLIP* CLIP      -w+   Image Clip Mask
     CMYK* CMYK      rw+   Raw cyan, magenta, yellow, and black samples
    CMYKA* CMYK      rw+   Raw cyan, magenta, yellow, black, and alpha samples
      CR2  DNG       r--   Canon Digital Camera Raw Image Format
      CRW  DNG       r--   Canon Digital Camera Raw Image Format
      CUR* CUR       rw-   Microsoft icon
      CUT* CUT       r--   DR Halo
      DCM* DCM       r--   Digital Imaging and Communications in Medicine image
           DICOM is used by the medical community for images like X-rays.  The
           specification, "Digital Imaging and Communications in Medicine
           (DICOM)", is available at http://medical.nema.org/.  In particular,
           see part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),
           and supplement 61 which adds JPEG-2000 encoding.
      DCR  DNG       r--   Kodak Digital Camera Raw Image File
      DCX* PCX       rw+   ZSoft IBM PC multi-page Paintbrush
      DDS* DDS       r--   Microsoft DirectDraw Surface
    DFONT* TTF       r--   Multi-face font package (Freetype 2.2.1)
      DNG  DNG       r--   Digital Negative
      DPX* DPX       rw-   SMPTE 268M-2003 (DPX 2.0)
           Digital Moving Picture Exchange Bitmap, Version 2.0.
           See SMPTE 268M-2003 specification at http://www.smtpe.org

     EPDF  PDF       rw-   Encapsulated Portable Document Format
      EPI  PS        rw-   Encapsulated PostScript Interchange format
      EPS  PS        rw-   Encapsulated PostScript
     EPS2* PS2       -w-   Level II Encapsulated PostScript
     EPS3* PS3       -w+   Level III Encapsulated PostScript
     EPSF  PS        rw-   Encapsulated PostScript
     EPSI  PS        rw-   Encapsulated PostScript Interchange format
      EPT  EPT       rw-   Encapsulated PostScript with TIFF preview
     EPT2  EPT       rw-   Encapsulated PostScript Level II with TIFF preview
     EPT3  EPT       rw+   Encapsulated PostScript Level III with TIFF preview
      ERF  DNG       r--   Epson RAW Format
      FAX* FAX       rw+   Group 3 FAX
           FAX machines use non-square pixels which are 1.5 times wider than
           they are tall but computer displays use square pixels, therefore
           FAX images may appear to be narrow unless they are explicitly
           resized using a geometry of "150x100%".

     FITS* FITS      rw-   Flexible Image Transport System
  FRACTAL* PLASMA    r--   Plasma fractal image
      FTS* FTS       rw-   Flexible Image Transport System
        G* RAW       rw+   Raw green samples
       G3* FAX       rw-   Group 3 FAX
      GIF* GIF       rw+   CompuServe graphics interchange format
    GIF87* GIF       rw-   CompuServe graphics interchange format (version 87a)
 GRADIENT* GRADIENT  r--   Gradual linear passing from one shade to another
     GRAY* GRAY      rw+   Raw gray samples
   GROUP4* TIFF      rw-   Raw CCITT Group4
     HALD*           r--   Identity Hald color lookup table image
      HDR* HDR       rw+   Radiance RGBE image format
HISTOGRAM* HISTOGRAM -w-   Histogram of the image
      HRZ* HRZ       rw-   Slow Scan TeleVision
      HTM* HTML      -w-   Hypertext Markup Language and a client-side image map
     HTML* HTML      -w-   Hypertext Markup Language and a client-side image map
      ICB* TGA       rw-   Truevision Targa image
      ICO* ICON      rw+   Microsoft icon
     ICON* ICON      rw-   Microsoft icon
     INFO  INFO      -w+   The image format and characteristics
   INLINE* INLINE    r--   Base64-encoded inline images
      IPL* IPL       rw+   IPL Image Sequence
      J2C* JP2       rw-   JPEG-2000 Code Stream Syntax
      J2K* JP2       rw-   JPEG-2000 Code Stream Syntax
      JNG* PNG       rw-   JPEG Network Graphics
           See http://www.libpng.org/pub/mng/ for details about the JNG
           format.
      JP2* JP2       rw-   JPEG-2000 File Format Syntax
      JPC* JP2       rw-   JPEG-2000 Code Stream Syntax
     JPEG* JPEG      rw-   Joint Photographic Experts Group JFIF format (62)
      JPG* JPEG      rw-   Joint Photographic Experts Group JFIF format (62)
      JPX* JP2       rw-   JPEG-2000 File Format Syntax
        K* RAW       rw+   Raw black samples
      K25  DNG       r--   Kodak Digital Camera Raw Image Format
      KDC  DNG       r--   Kodak Digital Camera Raw Image Format
    LABEL* LABEL     r--   Image label
        M* RAW       rw+   Raw magenta samples
      M2V  MPEG      rw+   MPEG Video Stream
      M4V  MPEG      rw+   Raw MPEG-4 Video
      MAC* MAC       r--   MAC Paint
      MAP* MAP       rw-   Colormap intensities and indices
      MAT  MAT       rw+   MATLAB level 5 image format
    MATTE* MATTE     -w+   MATTE format
      MEF  DNG       r--   Mamiya Raw Image File
     MIFF* MIFF      rw+   Magick Image File Format
      MNG* PNG       rw+   Multiple-image Network Graphics (libpng 1.2.10)
           See http://www.libpng.org/pub/mng/ for details about the MNG
           format.
     MONO* MONO      rw-   Raw bi-level bitmap
      MOV  MPEG      rw+   MPEG Video Stream
      MP4  MPEG      rw+   MPEG-4 Video Stream
      MPC* MPC       rw+   Magick Persistent Cache image format
     MPEG  MPEG      rw+   MPEG Video Stream
      MPG  MPEG      rw+   MPEG Video Stream
      MRW  DNG       r--   Sony (Minolta) Raw Image File
      MSL* MSL       rw+   Magick Scripting Language
     MSVG  SVG       rw+   ImageMagick's own SVG internal renderer
      MTV* MTV       rw+   MTV Raytracing image format
      MVG* MVG       rw-   Magick Vector Graphics
      NEF  DNG       r--   Nikon Digital SLR Camera Raw Image File
      NRW  DNG       r--   Nikon Digital SLR Camera Raw Image File
     NULL* NULL      rw-   Constant image of uniform color
        O* RAW       rw+   Raw opacity samples
      ORF  DNG       r--   Olympus Digital Camera Raw Image File
      OTB* OTB       rw-   On-the-air bitmap
      OTF* TTF       r--   Open Type font (Freetype 2.2.1)
      PAL* UYVY      rw-   16bit/pixel interleaved YUV
     PALM* PALM      rw+   Palm pixmap
      PAM* PNM       rw+   Common 2-dimensional bitmap format
    PANGO* PANGO     ---   Pango Markup Language
  PATTERN* PATTERN   r--   Predefined pattern
      PBM* PNM       rw+   Portable bitmap format (black and white)
      PCD* PCD       rw-   Photo CD
     PCDS* PCD       rw-   Photo CD
      PCL  PCL       rw+   Printer Control Language
      PCT* PICT      rw-   Apple Macintosh QuickDraw/PICT
      PCX* PCX       rw-   ZSoft IBM PC Paintbrush
      PDB* PDB       rw+   Palm Database ImageViewer Format
      PDF  PDF       rw+   Portable Document Format
     PDFA  PDF       rw+   Portable Document Archive Format
      PEF  DNG       r--   Pentax Electronic File
      PES* PES       r--   Embrid Embroidery Format
      PFA* TTF       r--   Postscript Type 1 font (ASCII) (Freetype 2.2.1)
      PFB* TTF       r--   Postscript Type 1 font (binary) (Freetype 2.2.1)
      PFM* PFM       rw+   Portable float format
      PGM* PNM       rw+   Portable graymap format (gray scale)
      PGX* JP2       r--   JPEG-2000 VM Format
    PICON* XPM       rw-   Personal Icon
     PICT* PICT      rw-   Apple Macintosh QuickDraw/PICT
      PIX* PIX       r--   Alias/Wavefront RLE image format
    PJPEG* JPEG      rw-   Joint Photographic Experts Group JFIF format (62)
   PLASMA* PLASMA    r--   Plasma fractal image
      PNG* PNG       rw-   Portable Network Graphics (libpng 1.2.10)
           See http://www.libpng.org/ for details about the PNG format.
    PNG24* PNG       rw-   opaque 24-bit RGB (zlib 1.2.3)
    PNG32* PNG       rw-   opaque or transparent 32-bit RGBA
     PNG8* PNG       rw-   8-bit indexed with optional binary transparency
      PNM* PNM       rw+   Portable anymap
      PPM* PNM       rw+   Portable pixmap format (color)
  PREVIEW* PREVIEW   -w-   Show a preview an image enhancement, effect, or f/x
       PS  PS        rw+   PostScript
      PS2* PS2       -w+   Level II PostScript
      PS3* PS3       -w+   Level III PostScript
      PSB* PSD       rw+   Adobe Large Document Format
      PSD* PSD       rw+   Adobe Photoshop bitmap
     PTIF* TIFF      rw+   Pyramid encoded TIFF
      PWP* PWP       r--   Seattle Film Works
        R* RAW       rw+   Raw red samples
RADIAL-GRADIENT* GRADIENT  r--   Gradual radial passing from one shade to another
      RAF  DNG       r--   Fuji CCD-RAW Graphic File
      RAS* SUN       rw+   SUN Rasterfile
      RGB* RGB       rw+   Raw red, green, and blue samples
     RGBA* RGB       rw+   Raw red, green, blue, and alpha samples
     RGBO* RGB       rw+   Raw red, green, blue, and opacity samples
      RLA* RLA       r--   Alias/Wavefront image
      RLE* RLE       r--   Utah Run length encoded image
      SCR* SCR       r--   ZX-Spectrum SCREEN$
      SCT* SCT       r--   Scitex HandShake
      SFW* SFW       r--   Seattle Film Works
      SGI* SGI       rw+   Irix RGB image
    SHTML* HTML      -w-   Hypertext Markup Language and a client-side image map
      SR2  DNG       r--   Sony Raw Format 2
      SRF  DNG       r--   Sony Raw Format
  STEGANO* STEGANO   r--   Steganographic image
      SUN* SUN       rw+   SUN Rasterfile
      SVG  SVG       rw+   Scalable Vector Graphics (XML 2.8.0)
     SVGZ  SVG       rw+   Compressed Scalable Vector Graphics (XML 2.8.0)
     TEXT* TXT       rw+   Text
      TGA* TGA       rw-   Truevision Targa image
THUMBNAIL* THUMBNAIL -w+   EXIF Profile Thumbnail
     TIFF* TIFF      rw+   Tagged Image File Format (LIBTIFF, Version 3.8.2)
   TIFF64* TIFF      ---   Tagged Image File Format (64-bit) (LIBTIFF, Version 3.8.2)
     TILE* TILE      r--   Tile image with a texture
      TIM* TIM       r--   PSX TIM
      TTC* TTF       r--   TrueType font collection (Freetype 2.2.1)
      TTF* TTF       r--   TrueType font (Freetype 2.2.1)
      TXT* TXT       rw+   Text
      UIL* UIL       -w-   X-Motif UIL table
     UYVY* UYVY      rw-   16bit/pixel interleaved YUV
      VDA* TGA       rw-   Truevision Targa image
    VICAR* VICAR     rw-   VICAR rasterfile format
      VID* VID       rw+   Visual Image Directory
     VIFF* VIFF      rw+   Khoros Visualization image
      VST* TGA       rw-   Truevision Targa image
     WBMP* WBMP      rw-   Wireless Bitmap (level 0) image
      WMV  MPEG      rw+   Windows Media Video
      WPG* WPG       r--   Word Perfect Graphics
        X* X         rw+   X Image
      X3F  DNG       r--   Sigma Camera RAW Picture File
      XBM* XBM       rw-   X Windows system bitmap (black and white)
       XC* XC        r--   Constant image uniform color
      XCF* XCF       r--   GIMP image
      XPM* XPM       rw-   X Windows system pixmap (color)
      XPS  XPS       r--   Microsoft XML Paper Specification
       XV* VIFF      rw+   Khoros Visualization image
      XWD* XWD       rw-   X Windows system window dump (color)
        Y* RAW       rw+   Raw yellow samples
    YCbCr* YCbCr     rw+   Raw Y, Cb, and Cr samples
   YCbCrA* YCbCr     rw+   Raw Y, Cb, Cr, and alpha samples
      YUV* YUV       rw-   CCIR 601 4:1:1 or 4:2:2

* native blob support
r read support
w write support
+ support for multiple images

Re: can't convert: cr2 , crw, and dng

Posted: 2012-09-10T10:26:56-07:00
by fmw42
DELEGATES bzlib fontconfig freetype gs jpeg jng jp2 png tiff x11 xml zlib
Your delegates do not seem to show any indication that it is installed. But I am not a windows user. Perhaps they are not linked correctly so that IM can find them.

A windows user or one of the IM developers will likely need to respond.

Re: can't convert: cr2 , crw, and dng

Posted: 2012-09-10T10:55:23-07:00
by fordfasterr
fmw42 wrote:
DELEGATES bzlib fontconfig freetype gs jpeg jng jp2 png tiff x11 xml zlib
Your delegates do not seem to show any indication that it is installed. But I am not a windows user. Perhaps they are not linked correctly so that IM can find them.

A windows user or one of the IM developers will likely need to respond.

Thanks, this is on Red Hat EL 5.1

Re: can't convert: cr2 , crw, and dng

Posted: 2012-09-10T11:43:28-07:00
by fmw42
As I do not have ufraw installed on my Mac at this time, I cannot say whether it should show in the list of delegates. This would be a question for on of the linux users who do a lot of RAW image processing. But my guess is that IM cannot find where you installed it or it is not installed fully.

As I do not have ufraw installed, when I try to process a dng file, I get the following error message.

convert Doors.dng Doors.png
convert: delegate failed `"ufraw-batch" --silent --create-id=also --out-type=png --out-depth=16 "--output=%u.png" "%i"' @ error/delegate.c/InvokeDelegate/1065.
convert: unable to open image `/tmp/magick-KLB56bj0.ppm': No such file or directory @ error/blob.c/OpenBlob/2638.
convert: no images defined `Doors.png' @ error/convert.c/ConvertImageCommand/3044.


So I would have to say that IM does not know where your ufraw is installed or it is not installed fully. Did you re-install IM after installing ufraw?

Re: can't convert: cr2 , crw, and dng

Posted: 2012-09-10T12:09:17-07:00
by fordfasterr
Yes, I re-installed afterwards, same problem. However I was re-installing from the RPM, not rebuilding it from source...


To that end, I went ahead and d/l the most recent source and ran a blank ./configure to see what happens...

here is the output (at the end..)

Code: Select all

ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.

Host system type: x86_64-unknown-linux-gnu
Build system type: x86_64-unknown-linux-gnu

                  Option                        Value
-------------------------------------------------------------------------------
Shared libraries  --enable-shared=yes           yes
Static libraries  --enable-static=yes           yes
Module support    --with-modules=no             no
GNU ld            --with-gnu-ld=yes             yes
Quantum depth     --with-quantum-depth=16       16
High Dynamic Range Imagery
                  --enable-hdri=no              no

Delegate Configuration:
BZLIB             --with-bzlib=yes              yes
Autotrace         --with-autotrace=no           no
Dejavu fonts      --with-dejavu-font-dir=default        none
DJVU              --with-djvu=yes               no
DPS               --with-dps=yes                no
FFTW              --with-fftw=yes               no
FlashPIX          --with-fpx=yes                no
FontConfig        --with-fontconfig=yes         yes
FreeType          --with-freetype=yes           yes
GhostPCL          None                          pcl6 (unknown)
GhostXPS          None                          gxps (unknown)
Ghostscript       None                          gs (8.15.2)
Ghostscript fonts --with-gs-font-dir=default    /usr/share/fonts/default/Type1/
Ghostscript lib   --with-gslib=no               no
Graphviz          --with-gvc=no
JBIG              --with-jbig=yes               no
JPEG v1           --with-jpeg=yes               yes
JPEG-2000         --with-jp2=yes                yes
LCMS v1           --with-lcms=yes               yes
LCMS v2           --with-lcms2=yes              no
LQR               --with-lqr=yes                no
LZMA              --with-lzma=yes               no
Magick++          --with-magick-plus-plus=yes   yes
OpenEXR           --with-openexr=yes            no
PERL              --with-perl=no                no
PANGO             --with-pango=yes              no
PNG               --with-png=yes                yes
RSVG              --with-rsvg=no                no
TIFF              --with-tiff=yes               yes
WEBP              --with-webp=yes               no
Windows fonts     --with-windows-font-dir=      none
WMF               --with-wmf=no         no
X11               --with-x=                     yes
XML               --with-xml=yes                yes
ZLIB              --with-zlib=yes               yes

X11 Configuration:
      X_CFLAGS        =
      X_PRE_LIBS      = -lSM -lICE
      X_LIBS          =
      X_EXTRA_LIBS    =

Options used to compile and link:
  PREFIX          = /usr/local
  EXEC-PREFIX     = /usr/local
  VERSION         = 6.7.9
  CC              = gcc -std=gnu99 -std=gnu99
  CFLAGS          = -fopenmp -g -O2 -Wall -pthread
  CPPFLAGS        = -I/usr/local/include/ImageMagick
  PCFLAGS         = -fopenmp
  DEFS            = -DHAVE_CONFIG_H
  LDFLAGS         = -L/usr/lib -L/usr/local/lib
  MAGICK_LDFLAGS  = -L/usr/local/lib -L/usr/lib -L/usr/local/lib
  LIBS            = -lMagickCore -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng12 -lfontconfig -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm -lgo
  CXX             = g++
  CXXFLAGS        = -g -O2 -pthread
  FEATURES        = OpenMP
Doesn't seem to have anything related to the cannon format...

Re: can't convert: cr2 , crw, and dng

Posted: 2012-09-10T13:14:13-07:00
by fmw42
Sorry, the only way I know to actually check if a delegate is installed is via

convert -list configure


You might look at http://www.imagemagick.org/script/advan ... lation.php and see if there is any help there.

Re: can't convert: cr2 , crw, and dng

Posted: 2012-09-10T13:19:49-07:00
by fordfasterr
after some testing, I have identified that ufraw-batch is being sent incompatible options from delegates.xml

if I try ufraw-batch manually from the prompt it does seem to work (however with some strange errors.. it does convert the image files in question to jpeg ..)

It looks like either IM doesn't really work properly with ufraw-batch, or I may have an incompatible version of ufraw-batch installed.

Re: can't convert: cr2 , crw, and dng

Posted: 2012-09-10T13:51:09-07:00
by fmw42
fordfasterr wrote:after some testing, I have identified that ufraw-batch is being sent incompatible options from delegates.xml

if I try ufraw-batch manually from the prompt it does seem to work (however with some strange errors.. it does convert the image files in question to jpeg ..)

It looks like either IM doesn't really work properly with ufraw-batch, or I may have an incompatible version of ufraw-batch installed.

Perhaps your dcraw and ufraw are in conflict. Try removing dcraw, unless it is required by ufraw.

Re: can't convert: cr2 , crw, and dng

Posted: 2012-09-10T13:55:06-07:00
by fordfasterr
I'm trying to find examples of configure.xml entries for dcraw (or ufraw) and I have found some but none of them are working for me at this point.

Can someone please post up a (linux compatible) <delegates decode:xxxx/> entry so I can test them out?

These are the formats that I need to work with:

CR2
CRW
DNG

You can share either ufraw-batch or dcraw (I have both installed and functional ..)

- Thanks.

Re: can't convert: cr2 , crw, and dng

Posted: 2012-09-11T10:56:05-07:00
by fordfasterr
here is a useful update, narrowing down my issue with dcraw...

Code: Select all

convert dcraw8:302126_D003_00075.DNG test.tiff
Loading Canon EOS-1D Mark II DNG image from /tmp/magick-MQzRTGf8...
Scaling with black=128, pre_mul[] = 1.931639 1.000000 1.344726 1.000000
AHD interpolation...
Converting to sRGB colorspace...
Writing data to /tmp/magick-MQzRTGf8.ppm ...
convert: unable to open image `/tmp/magick-07tODZVl': No such file or directory @ error/blob.c/OpenBlob/2641.
convert: unable to open file `/tmp/magick-07tODZVl': No such file or directory @ error/constitute.c/ReadImage/583.
convert: no images defined `test.tiff' @ error/convert.c/ConvertImageCommand/3044.
As you can see above, dcraw converts the input file to its default output format of .ppm.

Afterwards, IM tries to open a file named differently than the original output xxx.ppm file that was created in the /tmp folder.

The /tmp folder contains the xxx.ppm file so I can verify that it is in fact there:

Code: Select all

identify /tmp/magick-MQzRTGf8.ppm
/tmp/magick-MQzRTGf8.ppm PPM 3522x2348 3522x2348+0+0 8-bit sRGB 24.81MB 0.060u 0:00.079
So my question is: how can I manipulate the delegates.xml file so that IM knows how to handle the output file?

Re: can't convert: cr2 , crw, and dng

Posted: 2012-09-11T11:38:41-07:00
by fmw42
does your tmp directory have the correct permissions or the file that is in there?

Re: can't convert: cr2 , crw, and dng

Posted: 2012-09-11T12:25:21-07:00
by Bonzo
Afterwards, IM tries to open a file named differently than the original output xxx.ppm file that was created in the /tmp folder.
From memory we have been here before but I can not remember the outcome.

Re: can't convert: cr2 , crw, and dng

Posted: 2012-09-11T12:51:58-07:00
by fordfasterr
the permissions are correct, as the original file is properly saved into the /tmp folder.

I have experimented with other variations, for instance using ufraw-batch and I have successfully converted a file, however I get a program crash with this code:

Code: Select all

convert -verbose 302126_D003_00075.DNG test.jpg
"ufraw-batch" --create-id=also --out-type=tiff16 --output=/tmp/magick-EmLnZfdv.png "/tmp/magick-WPUDGIsj"
ufraw-batch: loaded /tmp/magick-WPUDGIsj
ufraw-batch: saved /tmp/magick-EmLnZfdv.png
*** glibc detected *** ufraw-batch: double free or corruption (out): 0x00002aaaab7ba010 ***
======= Backtrace: =========
/lib64/libc.so.6[0x3ba986f444]
/lib64/libc.so.6(cfree+0x8c)[0x3ba9872a6c]
ufraw-batch[0x40da27]
ufraw-batch[0x405660]
ufraw-batch(__gxx_personality_v0+0x2c0)[0x403a88]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x3ba981d8a4]
ufraw-batch(__gxx_personality_v0+0x71)[0x403839]
======= Memory map: ========
00400000-00452000 r-xp 00000000 fd:04 198050                             /usr/bin/ufraw-batch
00552000-00554000 rw-p 00052000 fd:04 198050                             /usr/bin/ufraw-batch
00554000-005d6000 rw-p 00554000 00:00 0
00653000-00655000 rw-p 00053000 fd:04 198050                             /usr/bin/ufraw-batch
0b84b000-0b8c6000 rw-p 0b84b000 00:00 0
35ba600000-35ba607000 r-xp 00000000 fd:00 98309                          /lib64/librt-2.5.so
35ba607000-35ba807000 ---p 00007000 fd:00 98309                          /lib64/librt-2.5.so
35ba807000-35ba808000 r--p 00007000 fd:00 98309                          /lib64/librt-2.5.so
35ba808000-35ba809000 rw-p 00008000 fd:00 98309                          /lib64/librt-2.5.so
3ba9400000-3ba941a000 r-xp 00000000 fd:00 98581                          /lib64/ld-2.5.so
3ba9619000-3ba961a000 r--p 00019000 fd:00 98581                          /lib64/ld-2.5.so
3ba961a000-3ba961b000 rw-p 0001a000 fd:00 98581                          /lib64/ld-2.5.so
3ba9800000-3ba9946000 r-xp 00000000 fd:00 98582                          /lib64/libc-2.5.so
3ba9946000-3ba9b46000 ---p 00146000 fd:00 98582                          /lib64/libc-2.5.so
3ba9b46000-3ba9b4a000 r--p 00146000 fd:00 98582                          /lib64/libc-2.5.so
3ba9b4a000-3ba9b4b000 rw-p 0014a000 fd:00 98582                          /lib64/libc-2.5.so
3ba9b4b000-3ba9b50000 rw-p 3ba9b4b000 00:00 0
3ba9c00000-3ba9c02000 r-xp 00000000 fd:00 98583                          /lib64/libdl-2.5.so
3ba9c02000-3ba9e02000 ---p 00002000 fd:00 98583                          /lib64/libdl-2.5.so
3ba9e02000-3ba9e03000 r--p 00002000 fd:00 98583                          /lib64/libdl-2.5.so
3ba9e03000-3ba9e04000 rw-p 00003000 fd:00 98583                          /lib64/libdl-2.5.so
3baa000000-3baa082000 r-xp 00000000 fd:00 98589                          /lib64/libm-2.5.so
3baa082000-3baa281000 ---p 00082000 fd:00 98589                          /lib64/libm-2.5.so
3baa281000-3baa282000 r--p 00081000 fd:00 98589                          /lib64/libm-2.5.so
3baa282000-3baa283000 rw-p 00082000 fd:00 98589                          /lib64/libm-2.5.so
3baa400000-3baa415000 r-xp 00000000 fd:00 98587                          /lib64/libpthread-2.5.so
3baa415000-3baa614000 ---p 00015000 fd:00 98587                          /lib64/libpthread-2.5.so
3baa614000-3baa615000 r--p 00014000 fd:00 98587                          /lib64/libpthread-2.5.so
3baa615000-3baa616000 rw-p 00015000 fd:00 98587                          /lib64/libpthread-2.5.so
3baa616000-3baa61a000 rw-p 3baa616000 00:00 0
3baa800000-3baa814000 r-xp 00000000 fd:04 426757                         /usr/lib64/libz.so.1.2.3
3baa814000-3baaa13000 ---p 00014000 fd:04 426757                         /usr/lib64/libz.so.1.2.3
3baaa13000-3baaa14000 rw-p 00013000 fd:04 426757                         /usr/lib64/libz.so.1.2.3
3baac00000-3baac30000 r-xp 00000000 fd:04 427114                         /usr/lib64/liblcms.so.1.0.15
3baac30000-3baae30000 ---p 00030000 fd:04 427114                         /usr/lib64/liblcms.so.1.0.15
3baae30000-3baae32000 rw-p 00030000 fd:04 427114                         /usr/lib64/liblcms.so.1.0.15
3baae32000-3baae34000 rw-p 3baae32000 00:00 0
3bac400000-3bac415000 r-xp 00000000 fd:00 98590                          /lib64/libnsl-2.5.so
3bac415000-3bac614000 ---p 00015000 fd:00 98590                          /lib64/libnsl-2.5.so
3bac614000-3bac615000 r--p 00014000 fd:00 98590                          /lib64/libnsl-2.5.so
3bac615000-3bac616000 rw-p 00015000 fd:00 98590                          /lib64/libnsl-2.5.so
3bac616000-3bac618000 rw-p 3bac616000 00:00 0
3bae400000-3bae411000 r-xp 00000000 fd:00 98597                          /lib64/libresolv-2.5.so
3bae411000-3bae611000 ---p 00011000 fd:00 98597                          /lib64/libresolv-2.5.so
3bae611000-3bae612000 r--p 00011000 fd:00 98597                          /lib64/libresolv-2.5.so
3bae612000-3bae613000 rw-p 00012000 fd:00 98597                          /lib64/libresolv-2.5.so
3bae613000-3bae615000 rw-p 3bae613000 00:00 0
3bb6e00000-3bb6e21000 r-xp 00000000 fd:04 426993                         /usr/lib64/libjpeg.so.62.0.0
3bb6e21000-3bb7021000 ---p 00021000 fd:04 426993                         /usr/lib64/libjpeg.so.62.0.0
3bb7021000-3bb7022000 rw-p 00021000 fd:04 426993                         /usr/lib64/libjpeg.so.62.0.0
3bb7a00000-3bb7a0d000 r-xp 00000000 fd:00 98594                          /lib64/libgcc_s-4.1.2-20070626.so.1
3bb7a0d000-3bb7c0d000 ---p 0000d000 fd:00 98594                          /lib64/libgcc_s-4.1.2-20070626.so.1
3bb7c0d000-3bb7c0e000 rw-p 0000d000 fd:00 98594                          /lib64/libgcc_s-4.1.2-20070626.so.1
3bb9200000-3bb92e6000 r-xp 00000000 fd:04 426743                         /usr/lib64/libstdc++.so.6.0.8
3bb92e6000-3bb94e5000 ---p 000e6000 fd:04 426743                         /usr/lib64/libstdc++.so.6.0.8
3bb94e5000-3bb94eb000 r--p 000e5000 fd:04 426743                         /usr/lib64/libstdc++.so.6.0.8
3bb94eb000-3bb94ee000 rw-p 000eb000 fd:04 426743                         /usr/lib64/libstdc++.so.6.0.8
3bb94ee000-3bb9500000 rw-p 3bb94ee000 00:00 0
3dd6e00000-3dd6e57000 r-xp 00000000 fd:04 427668                         /usr/lib64/libtiff.so.3.8.2
3dd6e57000-3dd7056000 ---p 00057000 fd:04 427668                         /usr/lib64/libtiff.so.3.8.2
3dd7056000-3dd7059000 rw-p 00056000 fd:04 427668                         /usr/lib64/libtiff.so.3.8.2
3f0dc00000-3f0dc9d000 r-xp 00000000 fd:00 98316                          /lib64/libglib-2.0.so.0.1200.3
3f0dc9d000-3f0de9c000 ---p 0009d000 fd:00 98316                          /lib64/libglib-2.0.so.0.1200.3
3f0de9c000-3f0de9e000 rw-p 0009c000 fd:00 98316                          /lib64/libglib-2.0.so.0.1200.3
2aaaaaaab000-2aaaaaaac000 rw-p 2aaaaaaab000 00:00 0
2aaaaaabd000-2aaaaaac3000 rw-p 2aaaaaabd000 00:00 0
2aaaaaac3000-2aaaaaacd000 r-xp 00000000 fd:00 98332                      /lib64/libnss_files-2.5.so
2aaaaaacd000-2aaaaaccc000 ---p 0000a000 fd:00 98332                      /lib64/libnss_files-2.5.so
2aaaaaccc000-2aaaaaccd000 r--p 00009000 fd:00 98332                      /lib64/libnss_files-2.5.so
2aaaaaccd000-2aaaaacce000 rw-p 0000a000 fd:00 98332                      /lib64/libnss_files-2.5.so
2aaaaacce000-2aaaaacd3000 r-xp 00000000 fd:00 98326                      /lib64/libnss_lsass.so.2.0.0
2aaaaacd3000-2aaaaadd2000 ---p 00005000 fd:00 98326                      /lib64/libnss_lsass.so.2.0.0
2aaaaadd2000-2aaaaadd3000 rw-p 00004000 fd:00 98326                      /lib64/libnss_lsass.so.2.0.0
2aaaaadd3000-2aaaaadde000 r-xp 00000000 fd:01 622852                     /opt/likewise/lib64/liblsaclient.so.0.0.0
2aaaaadde000-2aaaaaede000 ---p 0000b000 fd:01 622852                     /opt/likewise/lib64/liblsaclient.so.0.0.0
2aaaaaede000-2aaaaaedf000 rw-p 0000b000 fd:01 622852                     /opt/likewise/lib64/liblsaclient.so.0.0.0
2aaaaaedf000-2aaaaaee7000 r-xp 00000000 fd:01 622855                     /opt/likewise/lib64/liblsaipc.so.0.0.0
2aaaaaee7000-2aaaaafe7000 ---p 00008000 fd:01 622855                     /opt/likewise/lib64/liblsaipc.so.0.0.0
2aaaaafe7000-2aaaaafee000 rw-p 00008000 fd:01 622855                     /opt/likewise/lib64/liblsaipc.so.0.0.0
2aaaaafee000-2aaaab011000 r-xp 00000000 fd:01 622872                     /opt/likewise/lib64/liblsautils.so.0.0.0
2aaaab011000-2aaaab110000 ---p 00023000 fd:01 622872                     /opt/likewise/lib64/liblsautils.so.0.0.0
2aaaab110000-2aaaab112000 rw-p 00022000 fd:01 622872                     /opt/likewise/lib64/liblsautils.so.0.0.0
2aaaab112000-2aaaab129000 r-xp 00000000 fd:01 622711                     /opt/likewise/lib64/liblwbase_nothr.so.0.0.0
2aaaab129000-2aaaab228000 ---p 00017000 fd:01 622711                     /opt/likewise/lib64/liblwbase_nothr.so.0.0.0
2aaaab228000-2aaaab22f000 rw-p 00016000 fd:01 622711                     /opt/likewise/lib64/liblwbase_nothr.so.0.0.0
2aaaab22f000-2aaaab235000 r-xp 00000000 fd:01 622726                     /opt/likewise/lib64/libunistr.so.0.0.0
2aaaab235000-2aaaab334000 ---p 00006000 fd:01 622726                     /opt/likewise/lib64/libunistr.so.0.0.0
2aaaab334000-2aaaab335000 rw-p 00005000 fd:01 622726                     /opt/likewise/lib64/libunistr.so.0.0.0
2aaaab335000-2aaaab338000 r-xp 00000000 fd:01 622729                     /opt/likewise/lib64/libuuid.so.1.2.1
2aaaab338000-2aaaab437000 ---p 00003000 fd:01 622729                     /opt/likewise/lib64/libuuid.so.1.2.1
2aaaab437000-2aaaab438000 rw-p 00002000 fd:01 622729                     /opt/likewise/lib64/libuuid.so.1.2.1
2aaaab438000-2aaaab449000 r-xp 00000000 fd:01 622720                     /opt/likewise/lib64/liblwmsg_nothr.so.0.0.0
2aaaab449000-2aaaab549000 ---p 00011000 fd:01 622720                     /opt/likewise/lib64/liblwmsg_nothr.so.0.0.0
2aaaab549000-2aaaab54a000 rw-p 00011000 fd:01 622720                     /opt/likewise/lib64/liblwmsg_nothr.so.0.0.0
2aaaab54a000-2aaaab628000 r-xp 00000000 fd:01 622702                     /opt/likewise/lib64/libiconv.so.2.4.0
2aaaab628000-2aaaab727000 ---p 000de000 fd:01 622702                     /opt/likewise/lib64/libiconv.so.2.4.0
2aaaab727000-2aaaab729000 rw-p 000dd000 fd:01 622702                     /opt/likewise/lib64/libiconv.so.2.4.0
2aaaab729000-2aaaab758000 rw-p 2aaaab729000 00:00 0
2aaaab759000-2aaab0698000 rw-p 2aaaab759000 00:00 0
2aaab0698000-2aaab069f000 r--s 00000000 fd:04 459269                     /usr/lib64/gconv/gconv-modules.cache
2aaab4000000-2aaab4021000 rw-p 2aaab4000000 00:00 0
2aaab4021000-2aaab8000000 ---p 2aaab4021000 00:00 0
7fff5ebc0000-7fff5ebee000 rw-p 7fff5ebc0000 00:00 0                      [stack]
ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0                  [vdso]
/tmp/magick-EmLnZfdv.png TIFF 3522x2348 3522x2348-9223372036854775808-9223372036854775808 16-bit TrueColor sRGB 49.64MB 0.200u 0:00.210
302126_D003_00075.DNG=>/tmp/magick-EmLnZfdv.png DNG 3522x2348 3522x2348-9223372036854775808-9223372036854775808 16-bit TrueColor sRGB 49.64MB 0.020u 0:00.019
302126_D003_00075.DNG=>test.jpg DNG 3522x2348 3522x2348-9223372036854775808-9223372036854775808 16-bit TrueColor sRGB 1.389MB 0.550u 0:00.579
convert: `%s' (%d) "ufraw-batch" --create-id=also --out-type=tiff16 --output=/tmp/magick-EmLnZfdv.png "/tmp/magick-WPUDGIsj" @ error/utility.c/SystemCommand/1890.
convert: delegate failed `"ufraw-batch" --create-id=also --out-type=tiff16 --output=%u.png "%i"' @ error/delegate.c/InvokeDelegate/1065.

Re: can't convert: cr2 , crw, and dng

Posted: 2012-09-11T13:39:13-07:00
by fmw42
I am not sure I can help much as I don't have ufraw delegate compiled. But my delegates.xml file says:


<delegate decode="dng:decode" command=""ufraw-batch" --silent --create-id=also --out-type=png --out-depth=16 "--output=%u.png" "%i""/>

Re: can't convert: cr2 , crw, and dng

Posted: 2012-09-11T13:51:18-07:00
by fordfasterr
fmw42 wrote:I am not sure I can help much as I don't have ufraw delegate compiled. But my delegates.xml file says:


<delegate decode="dng:decode" command=""ufraw-batch" --silent --create-id=also --out-type=png --out-depth=16 "--output=%u.png" "%i""/>

I had to make many changes to the default delegate code for it to fully execute and work.

As stated earlier, it works now (with the exception of the crash which I think I have narrowed down to a bug in the version of ufraw-batch that I'm using..)