Error Message While Schaling BitMap Image
Re: Error Message While Schaling BitMap Image
I compiled IM for CentOS and trying identify over there? could something wrong with my configuration?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Error Message While Schaling BitMap Image
I did that and it worked fine. See my previous post.please try to convert image using Preview application on OS X not by ImageMagick and then identify that image
With regard to CENTOS, I am not Linux expert, so you may need to wait for Anthony or Magick to reply on that. Sorry.
Re: Error Message While Schaling BitMap Image
I tried installing new version of ImageMagick on MAC OS X from source
ftp://ftp.imagemagick.org/pub/ImageMagi ... 2-4.tar.gz
after compiling it identify test.bmp does not work. I don't know what could go wrong? Is the version correct?
Thanks for the help.
ftp://ftp.imagemagick.org/pub/ImageMagi ... 2-4.tar.gz
after compiling it identify test.bmp does not work. I don't know what could go wrong? Is the version correct?
Thanks for the help.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Error Message While Schaling BitMap Image
that seems to be the same IM file I used
what do you get from
convert rose: rose.bmp
identify rose.bmp
my configuration on Mac OSX Tiger was
./configure --enable-delegate-build --enable-shared --disable-static \
--with-modules --with-quantum-depth=16 --with-gslib --without-wmf \
--enable-libtool-verbose --disable-dependency-tracking \
--with-gs-font-dir=/usr/local/share/ghostscript/fonts/ --with-lqr
but you should remove --with-lqr as I have installed the liblqr for liquid-rescale
what do you get from
convert rose: rose.bmp
identify rose.bmp
my configuration on Mac OSX Tiger was
./configure --enable-delegate-build --enable-shared --disable-static \
--with-modules --with-quantum-depth=16 --with-gslib --without-wmf \
--enable-libtool-verbose --disable-dependency-tracking \
--with-gs-font-dir=/usr/local/share/ghostscript/fonts/ --with-lqr
but you should remove --with-lqr as I have installed the liblqr for liquid-rescale
Re: Error Message While Schaling BitMap Image
convert rose: rose.bmp
identify rose.bmp
rose.bmp BMP 70x46 70x46+0+0 8-bit DirectClass 9.58kb
so it works, convert works too, its the identify which does not display any result for Preview generated bmp.
I just configure using ./configure --prefix=/opt/ImageMagick-6.5.2-4
my convert -list configure says
DELEGATES bzlib freetype jpeg jng jp2 png tiff x11 xml zlib
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-gslib=no --with-fontpath=
LIBS -lMagickCore -ltiff -lfreetype -ljpeg -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lpthread -lltdl
I don't have ghostscript and fonts, can that be an issue?
Thanks
identify rose.bmp
rose.bmp BMP 70x46 70x46+0+0 8-bit DirectClass 9.58kb
so it works, convert works too, its the identify which does not display any result for Preview generated bmp.
I just configure using ./configure --prefix=/opt/ImageMagick-6.5.2-4
my convert -list configure says
DELEGATES bzlib freetype jpeg jng jp2 png tiff x11 xml zlib
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-gslib=no --with-fontpath=
LIBS -lMagickCore -ltiff -lfreetype -ljpeg -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lpthread -lltdl
I don't have ghostscript and fonts, can that be an issue?
Thanks
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Error Message While Schaling BitMap Image
I doubt GS or fonts is the issue with bmp. Seems like it is some bug in Preview. Try
convert rose: rose.bmp
Then open rose.bmp in Preview and save as rose2.bmp
then
identify rose.bmp
identify rose2.bmp
If the second does not work, then what do you get from:
convert rose2.bmp info:
If this works, just use convert image info: as it is pretty much the same as identify.
But you can also then do
convert rose2.bmp -verbose info:
and report back what it says.
Seems like Preview is possibly corrupting your bmp in some way.
convert rose: rose.bmp
Then open rose.bmp in Preview and save as rose2.bmp
then
identify rose.bmp
identify rose2.bmp
If the second does not work, then what do you get from:
convert rose2.bmp info:
If this works, just use convert image info: as it is pretty much the same as identify.
But you can also then do
convert rose2.bmp -verbose info:
and report back what it says.
Seems like Preview is possibly corrupting your bmp in some way.
Re: Error Message While Schaling BitMap Image
I tried it and identify does not work for rose2.bmp. below is the output for convert rose2.bmp -verbose info:
I don't know if preview is doing that because earlier version of ImageMagick (6.4.5) could identify bmp images created by preview.
I am using Preview 4.6 on MAC OS X 10.5.7 (Leopard).
Code: Select all
Image: rose2.bmp
Format: BMP (Microsoft Windows bitmap image)
Class: DirectClass
Geometry: 70x46+0+0
Resolution: 28.35x28.35
Print size: 2.46914x1.62257
Units: PixelsPerCentimeter
Type: TrueColor
Endianess: Undefined
Colorspace: RGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
red:
min: 35 (0.137255)
max: 255 (1)
mean: 145.712 (0.57142)
standard deviation: 69.2953 (0.271746)
kurtosis: -1.385
skewness: 0.14637
green:
min: 22 (0.0862745)
max: 255 (1)
mean: 89.2602 (0.35004)
standard deviation: 52.4698 (0.205764)
kurtosis: 2.63898
skewness: 1.81893
blue:
min: 24 (0.0941176)
max: 255 (1)
mean: 80.4683 (0.315562)
standard deviation: 55.1114 (0.216123)
kurtosis: 3.01818
skewness: 1.9795
Image statistics:
OverAll:
min: 0 (0)
max: 255 (1)
mean: 78.8602 (0.309256)
standard deviation: 73.1284 (0.286778)
kurtosis: 0.0669201
skewness: 0.96904
Rendering intent: Undefined
Interlace: None
Background color: white
Border color: rgb(223,223,223)
Matte color: grey74
Transparent color: black
Page geometry: 70x46+0+0
Dispose: Undefined
Iterations: 0
Compression: Undefined
Orientation: Undefined
Properties:
create-date: 2009-05-13T20:36:44-07:00
modify-date: 2009-05-13T20:36:44-07:00
signature: a698f2fe0c6c31f83d19554a6ec02bac79c961dd9a87e7ed217752e75eb615d7
Artifacts:
verbose: true
Tainted: False
Filesize: 9.58kb
Number pixels: 3.14kb
Version: ImageMagick 6.5.2-4 2009-05-13 Q16 http://www.imagemagick.org
I am using Preview 4.6 on MAC OS X 10.5.7 (Leopard).
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Error Message While Schaling BitMap Image
The verbose info looks reasonable to me. So at this point, I am lost as to why convert image.bmp info: works and identify image.bmp does not. Please confirm that
convert rose: rose.bmp
identify rose.bmp
works, but
converting rose.bmp to rose2.bmp from Preview, then
identify rose2.bmp
does not work.
If that is the case, then this is beyond me. You need help from one of the IM experts at that point.
It seems to work fine for me using IM 6.5.2-4 Q16 Mac OSX Tiger, but does not work for you using Leopard and the same IM version?
convert rose: rose.bmp
identify rose.bmp
works, but
converting rose.bmp to rose2.bmp from Preview, then
identify rose2.bmp
does not work.
If that is the case, then this is beyond me. You need help from one of the IM experts at that point.
It seems to work fine for me using IM 6.5.2-4 Q16 Mac OSX Tiger, but does not work for you using Leopard and the same IM version?
Re: Error Message While Schaling BitMap Image
Code: Select all
$ convert rose: rose.bmp
$ identify rose.bmp
rose.bmp BMP 70x46 70x46+0+0 8-bit DirectClass 9.58kb
// convert rose.bmp to rose2.bmp from preview
$ identify rose2.bmp
$ convert rose2.bmp info:
rose2.bmp BMP 70x46 70x46+0+0 8-bit DirectClass 9.58kb
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Error Message While Schaling BitMap Image
Q16 is the default install and represents that IM is using 16-bit storage. You can configure IM for 8,16,32 bits or even HDRI.
Type
convert -list configure
You will see what it is at:
CONFIGURE ./configure '--enable-delegate-build' '--enable-shared' '--disable-static' '--with-modules' '--with-quantum-depth=16' '--with-gslib' '--without-wmf' '--enable-libtool-verbose' '--disable-dependency-tracking' '--with-gs-font-dir=/usr/local/share/ghostscript/fonts/' '--with-lqr'
or simply from
QuantumDepth 16
I doubt that has anything to do with it. But you can check and see if you are using Q16 or the other common one is Q8.
Type
convert -list configure
You will see what it is at:
CONFIGURE ./configure '--enable-delegate-build' '--enable-shared' '--disable-static' '--with-modules' '--with-quantum-depth=16' '--with-gslib' '--without-wmf' '--enable-libtool-verbose' '--disable-dependency-tracking' '--with-gs-font-dir=/usr/local/share/ghostscript/fonts/' '--with-lqr'
or simply from
QuantumDepth 16
I doubt that has anything to do with it. But you can check and see if you are using Q16 or the other common one is Q8.
Re: Error Message While Schaling BitMap Image
Thanks for your help and time, I see it at
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-gslib=no --with-fontpath=
and my configure is
CONFIGURE ./configure '--prefix=/opt/ImageMagick-6.5.2-4'
so I am assuming its Q16. Now I don't know where to look for this problem. I need identify to work because my program looks for image types via identify and I can not change that part. Earlier versions of IM can handle this case than why can't newer versions? I don't even know if its IM or my configuration? Could some one please help.
Thanks
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-gslib=no --with-fontpath=
and my configure is
CONFIGURE ./configure '--prefix=/opt/ImageMagick-6.5.2-4'
so I am assuming its Q16. Now I don't know where to look for this problem. I need identify to work because my program looks for image types via identify and I can not change that part. Earlier versions of IM can handle this case than why can't newer versions? I don't even know if its IM or my configuration? Could some one please help.
Thanks
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Error Message While Schaling BitMap Image
Is it not possible for you to replace:
identify image
with
convert image info:
in your code?
If not or anyway, that is as far as I can try to help. It is beyond me. Try posting to bug forum and see what they say. Refer to this post so they see all the background.
identify image
with
convert image info:
in your code?
If not or anyway, that is as far as I can try to help. It is beyond me. Try posting to bug forum and see what they say. Refer to this post so they see all the background.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Error Message While Schaling BitMap Image
A few other thoughts. See what these give:
identify yourimage.bmp 2>&1
identify -ping yourimage.bmp
identify -respect-parenthesis yourimage.bmp
identify -debug all yourimage.bmp
The latter may be of help to the IM folks if it returns anything. So add a new post to your bug report
or a combination of them all
identify -ping -respect-parenthesis -debug all yourimage.bmp 2>&1
identify yourimage.bmp 2>&1
identify -ping yourimage.bmp
identify -respect-parenthesis yourimage.bmp
identify -debug all yourimage.bmp
The latter may be of help to the IM folks if it returns anything. So add a new post to your bug report
or a combination of them all
identify -ping -respect-parenthesis -debug all yourimage.bmp 2>&1
Re: Error Message While Schaling BitMap Image
Thanks for another clue, below is the result, will post it on the bug forum too:
these logs have an entry for /Users/admin/.magick/coder.xml , could we suspect on this?
Thanks
these logs have an entry for /Users/admin/.magick/coder.xml , could we suspect on this?
Code: Select all
admins-macbook-pro:Desktop admin$ identify -ping -respect-parenthesis -debug all rose2.bmp 2>&1
2009-05-14T16:32:23-07:00 0:01 0.000u 6.5.2 Configure identify[97071]: utility.c/ExpandFilenames/862/Configure
Command line: identify {-ping} {-respect-parenthesis} {-debug} {all} {rose2.bmp}
2009-05-14T16:32:23-07:00 0:01 0.000u 6.5.2 Configure identify[97071]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "/opt/ImageMagick-6.5.2-4/share/ImageMagick-6.5.2/config/coder.xml"
2009-05-14T16:32:23-07:00 0:01 0.000u 6.5.2 Configure identify[97071]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "/opt/ImageMagick-6.5.2-4/lib/ImageMagick-6.5.2/config/coder.xml"
2009-05-14T16:32:23-07:00 0:01 0.000u 6.5.2 Configure identify[97071]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "/opt/ImageMagick-6.5.2-4/share/doc/ImageMagick-6.5.2/coder.xml"
2009-05-14T16:32:23-07:00 0:01 0.000u 6.5.2 Configure identify[97071]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "/opt/ImageMagick-6.5.2-4/share/ImageMagick-6.5.2/coder.xml"
2009-05-14T16:32:23-07:00 0:01 0.000u 6.5.2 Configure identify[97071]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "/Users/admin/.magick/coder.xml"
2009-05-14T16:32:23-07:00 0:01 0.000u 6.5.2 Configure identify[97071]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "coder.xml"
2009-05-14T16:32:23-07:00 0:01 0.000u 6.5.2 Configure identify[97071]: coder.c/LoadCoderList/639/Configure
Loading coder configuration file "/opt/ImageMagick-6.5.2-4/share/ImageMagick-6.5.2/config/coder.xml" ...
2009-05-14T16:32:23-07:00 0:01 0.000u 6.5.2 Module identify[97071]: module.c/OpenModule/1143/Module
Searching for module "BMP" using filename "bmp.la"
2009-05-14T16:32:23-07:00 0:01 0.000u 6.5.2 Module identify[97071]: module.c/GetMagickModulePath/548/Module
Searching for coder module file "bmp.la" ...
2009-05-14T16:32:23-07:00 0:01 0.000u 6.5.2 Module identify[97071]: module.c/OpenModule/1152/Module
Opening module at path "/opt/ImageMagick-6.5.2-4/lib/ImageMagick-6.5.2/modules-Q16/coders/bmp.la"
2009-05-14T16:32:23-07:00 0:01 0.000u 6.5.2 Module identify[97071]: module.c/OpenModule/1179/Module
Method "RegisterBMPImage" in module "BMP" at address 0x79e3f0
2009-05-14T16:32:23-07:00 0:01 0.000u 6.5.2 Module identify[97071]: module.c/OpenModule/1193/Module
Method "UnregisterBMPImage" in module "BMP" at address 0x79e510
2009-05-14T16:32:23-07:00 0:01 0.000u 6.5.2 Blob identify[97071]: blob.c/OpenBlob/2403/Blob
read 3 magic header bytes
2009-05-14T16:32:23-07:00 0:01 0.000u 6.5.2 Configure identify[97071]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "/opt/ImageMagick-6.5.2-4/share/ImageMagick-6.5.2/config/magic.xml"
2009-05-14T16:32:23-07:00 0:01 0.000u 6.5.2 Configure identify[97071]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "/opt/ImageMagick-6.5.2-4/lib/ImageMagick-6.5.2/config/magic.xml"
2009-05-14T16:32:23-07:00 0:01 0.000u 6.5.2 Configure identify[97071]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "/opt/ImageMagick-6.5.2-4/share/doc/ImageMagick-6.5.2/magic.xml"
2009-05-14T16:32:23-07:00 0:01 0.000u 6.5.2 Configure identify[97071]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "/opt/ImageMagick-6.5.2-4/share/ImageMagick-6.5.2/magic.xml"
2009-05-14T16:32:23-07:00 0:01 0.000u 6.5.2 Configure identify[97071]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "/Users/admin/.magick/magic.xml"
2009-05-14T16:32:23-07:00 0:01 0.000u 6.5.2 Configure identify[97071]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "magic.xml"
2009-05-14T16:32:23-07:00 0:01 0.000u 6.5.2 Configure identify[97071]: magic.c/LoadMagicList/682/Configure
Loading magic configure file "/opt/ImageMagick-6.5.2-4/share/ImageMagick-6.5.2/config/magic.xml" ...
2009-05-14T16:32:23-07:00 0:01 0.010u 6.5.2 Blob identify[97071]: blob.c/OpenBlob/2403/Blob
read 3 magic header bytes
2009-05-14T16:32:23-07:00 0:01 0.010u 6.5.2 Blob identify[97071]: blob.c/OpenBlob/2403/Blob
read 3 magic header bytes
2009-05-14T16:32:23-07:00 0:01 0.010u 6.5.2 Coder identify[97071]: bmp.c/ReadBMPImage/588/Coder
Magick: BM
2009-05-14T16:32:23-07:00 0:01 0.010u 6.5.2 Coder identify[97071]: bmp.c/ReadBMPImage/598/Coder
BMP size: 40
2009-05-14T16:32:23-07:00 0:01 0.010u 6.5.2 Coder identify[97071]: bmp.c/ReadBMPImage/644/Coder
Format: MS Windows bitmap
2009-05-14T16:32:23-07:00 0:01 0.010u 6.5.2 Coder identify[97071]: bmp.c/ReadBMPImage/646/Coder
Geometry: 70x-46
2009-05-14T16:32:23-07:00 0:01 0.010u 6.5.2 Coder identify[97071]: bmp.c/ReadBMPImage/648/Coder
Bits per pixel: 24
2009-05-14T16:32:23-07:00 0:01 0.010u 6.5.2 Coder identify[97071]: bmp.c/ReadBMPImage/654/Coder
Compression: BI_RGB
2009-05-14T16:32:23-07:00 0:01 0.010u 6.5.2 Coder identify[97071]: bmp.c/ReadBMPImage/694/Coder
Number of colors: 0
2009-05-14T16:32:23-07:00 0:01 0.010u 6.5.2 Coder identify[97071]: bmp.c/ReadBMPImage/898/Coder
Reading pixels (9752 bytes)
2009-05-14T16:32:23-07:00 0:01 0.020u 6.5.2 Resource identify[97071]: resource.c/AcquireMagickResource/222/Resource
Area: 25.2kb/25.2kb/4gb
2009-05-14T16:32:23-07:00 0:01 0.020u 6.5.2 Resource identify[97071]: resource.c/AcquireMagickResource/222/Resource
Memory: 25.2kb/25.2kb/3gb
2009-05-14T16:32:23-07:00 0:01 0.020u 6.5.2 Cache identify[97071]: cache.c/OpenPixelCache/3832/Cache
open rose2.bmp[0] (heap memory, 70x46 25.2kb)
2009-05-14T16:32:23-07:00 0:01 0.020u 6.5.2 Resource identify[97071]: resource.c/RelinquishMagickResource/857/Resource
Memory: 25.2kb/0b/3gb
2009-05-14T16:32:23-07:00 0:01 0.020u 6.5.2 Cache identify[97071]: cache.c/DestroyPixelCacheInfo/1513/Cache
destroy rose2.bmp[0]
2009-05-14T16:32:23-07:00 0:01 0.020u 6.5.2 Cache identify[97071]: cache.c/DestroyPixelCacheInfo/1513/Cache
destroy
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Error Message While Schaling BitMap Image
I will have to leave this to the IM experts to interpret.