problem converting jpeg to tiff
Posted: 2009-07-14T23:59:36-07:00
Hello,
i am using ImageMagick++ to do that kind of work.
it sounds like it has been configured well, despite this, i got a black image from that conversion work :
Magick::Blob JPEGblob ( [iJPEGdata bytes], [iJPEGdata length] );
// Magick::Image ImageJPEG2TIFF ( JPEGblob );
Magick::Image ImageJPEG2TIFF;
ImageJPEG2TIFF.magick("JPEG");
ImageJPEG2TIFF.read( JPEGblob );
//
ImageJPEG2TIFF.write( WriteFileNameJPEG );
//
ImageJPEG2TIFF.magick("TIFF");
//
Magick::Blob TIFFblob;
ImageJPEG2TIFF.write( &TIFFblob );
Thanks in advance for any help you can provide me.
(including telling me that this is impossible, to avoid me wasting my time)
PS: here is what is answered by configure:
ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.
Host system type: arm-apple-darwin9
Build system type: i386-apple-darwin9
Option Value
-------------------------------------------------------------------------------
Shared libraries --enable-shared=no no
Static libraries --enable-static=yes yes
Module support --with-modules=no no
GNU ld --with-gnu-ld=no no
Quantum depth --with-quantum-depth=8 8
High Dynamic Range Imagery
--enable-hdri=no no
Delegate Configuration:
BZLIB --with-bzlib=yes yes
Autotrace --with-autotrace=no no
DJVU --with-djvu=yes no
DPS --with-dps=yes no
FlashPIX --with-fpx=yes no
FontConfig --with-fontconfig=no no
FreeType --with-freetype=no no
GhostPCL None pcl6 (unknown)
GhostXPS None gxps (unknown)
Ghostscript None gs (unknown)
Ghostscript fonts --with-gs-font-dir=default none
Ghostscript lib --with-gslib=no no
Graphviz --with-gvc=yes no
JBIG --with-jbig=yes no
JPEG v1 --with-jpeg=yes yes
JPEG-2000 --with-jp2=yes no
LCMS --with-lcms=yes no
LQR --with-lqr=yes no
Magick++ --with-magick-plus-plus=yes yes
OpenEXR --with-openexr=yes no
PERL --with-perl=no no
PNG --with-png=yes yes
RSVG --with-rsvg=no no
TIFF --with-tiff=yes yes
Windows fonts --with-windows-font-dir= none
WMF --with-wmf=no no
X11 --with-x=no no
XML --with-xml=no no
ZLIB --with-zlib=yes yes
i am using ImageMagick++ to do that kind of work.
it sounds like it has been configured well, despite this, i got a black image from that conversion work :
Magick::Blob JPEGblob ( [iJPEGdata bytes], [iJPEGdata length] );
// Magick::Image ImageJPEG2TIFF ( JPEGblob );
Magick::Image ImageJPEG2TIFF;
ImageJPEG2TIFF.magick("JPEG");
ImageJPEG2TIFF.read( JPEGblob );
//
ImageJPEG2TIFF.write( WriteFileNameJPEG );
//
ImageJPEG2TIFF.magick("TIFF");
//
Magick::Blob TIFFblob;
ImageJPEG2TIFF.write( &TIFFblob );
Thanks in advance for any help you can provide me.
(including telling me that this is impossible, to avoid me wasting my time)
PS: here is what is answered by configure:
ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.
Host system type: arm-apple-darwin9
Build system type: i386-apple-darwin9
Option Value
-------------------------------------------------------------------------------
Shared libraries --enable-shared=no no
Static libraries --enable-static=yes yes
Module support --with-modules=no no
GNU ld --with-gnu-ld=no no
Quantum depth --with-quantum-depth=8 8
High Dynamic Range Imagery
--enable-hdri=no no
Delegate Configuration:
BZLIB --with-bzlib=yes yes
Autotrace --with-autotrace=no no
DJVU --with-djvu=yes no
DPS --with-dps=yes no
FlashPIX --with-fpx=yes no
FontConfig --with-fontconfig=no no
FreeType --with-freetype=no no
GhostPCL None pcl6 (unknown)
GhostXPS None gxps (unknown)
Ghostscript None gs (unknown)
Ghostscript fonts --with-gs-font-dir=default none
Ghostscript lib --with-gslib=no no
Graphviz --with-gvc=yes no
JBIG --with-jbig=yes no
JPEG v1 --with-jpeg=yes yes
JPEG-2000 --with-jp2=yes no
LCMS --with-lcms=yes no
LQR --with-lqr=yes no
Magick++ --with-magick-plus-plus=yes yes
OpenEXR --with-openexr=yes no
PERL --with-perl=no no
PNG --with-png=yes yes
RSVG --with-rsvg=no no
TIFF --with-tiff=yes yes
Windows fonts --with-windows-font-dir= none
WMF --with-wmf=no no
X11 --with-x=no no
XML --with-xml=no no
ZLIB --with-zlib=yes yes