Page 1 of 4

Error Message While Schaling BitMap Image

Posted: 2009-05-05T15:10:53-07:00
by sim123
I installed ImageMagick-6.5.2-0 from source on centOS with all dependencies (delegates) and its failing on one specific case. I have a JPEG image and I save it using preview on MAC OS 10 as windows bitmap image. When I try to scale it using IM I get following error

Code: Select all

convert r.bmp -resize '200x200>' r-t.bmp
convert: magick/blob.c:2576: ReadBlob: Assertion `image->blob->type != UndefinedStream' failed.
Aborted
identify r.bmp gives no result. Please note that I could scale it when created a .bmp using microsoft paint. The image is a valid .bmp file I could open it in preview and earlier and binary version of IM scales this image without any issue.

I could clearly see there is something wrong with my installation, however I am not sure what it is and where to look for it.

Here is result of my convert -list configure

Code: Select all

Path: /opt/ImageMagick-6.5.2-0/lib/ImageMagick-6.5.2/config/configure.xml

Name          Value
-------------------------------------------------------------------------------
CC            gcc -std=gnu99
CFLAGS        -fopenmp -g -O2 -Wall -W -pthread
CONFIGURE     ./configure  '--prefix=/opt/ImageMagick-6.5.2-0' 'LDFLAGS=-L/usr/local/lib' 'CPPFLAGS=-I/usr/local/lib' '-with-gs-font-dir=/usr/share/fonts/default/ghostscript' '-with-windows-font-dir=/usr/share/fonts/default/Type1'
COPYRIGHT     Copyright (C) 1999-2009 ImageMagick Studio LLC
CPPFLAGS      -I/opt/ImageMagick-6.5.2-0/include/ImageMagick
CXX           g++
CXXFLAGS      -g -O2 -Wall -W -pthread
DEFS          -DHAVE_CONFIG_H
DELEGATES     bzlib fontconfig freetype jpeg jng jp2 lcms png tiff x11 xml wmf zlib
DISTCHECK_CONFIG_FLAGS 'CPPFLAGS=-I/usr/local/lib' 'LDFLAGS=-L/usr/local/lib' --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-gslib=no --with-fontpath= --with-gs-font-dir=/usr/share/fonts/default/ghostscript --with-windows-font-dir=/usr/share/fonts/default/Type1
EXEC-PREFIX   /opt/ImageMagick-6.5.2-0
HOST          i686-pc-linux-gnu
LDFLAGS       -L/opt/ImageMagick-6.5.2-0/lib -L/usr/local/lib -lfreetype
LIB_VERSION   0x652
LIB_VERSION_NUMBER 6,5,2,0
LIBS          -lMagickCore -llcms -ltiff -lfreetype -ljpeg -lfontconfig -lXext -lX11 -lbz2 -lz -lm -lgomp -lpthread 
NAME          ImageMagick
PCFLAGS       -fopenmp
PREFIX        /opt/ImageMagick-6.5.2-0
QuantumDepth  16
RELEASE_DATE  2009-05-05
VERSION       6.5.2
WEBSITE       http://www.imagemagick.org
Thanks for all the help and support.

Re: Error Message While Schaling BitMap Image

Posted: 2009-05-05T16:23:42-07:00
by sim123
One more update, identify in latest binary for MAC (6.5.0) does not display anything, but somehow convert works where as old binary (6.4.5) does identify the image and displays result

identify PreviewImage.bmp
PreviewImage.bmp BMP 576x432 576x432+0+0 8-bit DirectClass 729kb

On CentOS the rpm (6.2.8 ) identify this image and convert it successfully. Please help!!!

Thanks for the help and support.

Re: Error Message While Schaling BitMap Image

Posted: 2009-05-05T18:36:02-07:00
by magick
Can you post a URL to your BMP image? We tried your commands with a number of BMP images we have and cannot reproduce the problem.

Re: Error Message While Schaling BitMap Image

Posted: 2009-05-06T08:20:58-07:00
by sim123
Thanks for your response, here is the link for images :

http://picasaweb.google.com/sim3159/Tes ... directlink

and I apologize for not posting it earlier. Thanks again, I really appreciate your help.

Re: Error Message While Schaling BitMap Image

Posted: 2009-05-06T08:56:50-07:00
by magick
We can reproduce the problem and will have a patch in ImageMagick 6.5.2-2 Beta by sometime tomorrow. Thanks.

Re: Error Message While Schaling BitMap Image

Posted: 2009-05-06T09:43:18-07:00
by sim123
Thanks for quick response and patch, I will test it and let you know if it works.

Re: Error Message While Schaling BitMap Image

Posted: 2009-05-13T14:25:31-07:00
by sim123
I downloaded IM 6.5.2-4, after compilation convert works. However identify does not display anything, I need identify to identify whether its the valid image file or not. I think its still broken, could someone please help me with this? Should I go with beta version?

Thanks for all the help and support, I really appreciate it.

Re: Error Message While Schaling BitMap Image

Posted: 2009-05-13T14:30:07-07:00
by fmw42
try both these:

identify rose:

convert rose: info:


Do either work?

If the latter does work, then try

convert yourimage.bmp info:

Does that work?

Re: Error Message While Schaling BitMap Image

Posted: 2009-05-13T14:33:53-07:00
by sim123
Thanks for quick reply, all of them work.

convert test.bmp info:
test.bmp BMP 427x539 427x539+0+0 8-bit DirectClass 676kb

however identify test.bmp does not display anything.

Re: Error Message While Schaling BitMap Image

Posted: 2009-05-13T14:40:33-07:00
by fmw42
might you have another "identify" command in your system that is overriding the IM identify?

Re: Error Message While Schaling BitMap Image

Posted: 2009-05-13T14:43:59-07:00
by fmw42
The images I see at http://picasaweb.google.com/sim3159/Tes ... directlink are jpg not bmp, so I cannot test this. But on my Mac OSX Tiger, identify works fine in IM 6.5.2-4 Q16

convert rose: rose.bmp
identify rose.bmp
rose.bmp BMP 70x46 70x46+0+0 8-bit DirectClass 9.58kb

Re: Error Message While Schaling BitMap Image

Posted: 2009-05-13T14:48:46-07:00
by sim123
if you try to convert the jpg images into BMP via preview (SAve them as Microsoft preview) on OS X and then do identify, it won't display anything. convert is working in 2-4 (was broken in 2-0), so after conversion identify will work for converted image.

Re: Error Message While Schaling BitMap Image

Posted: 2009-05-13T14:50:16-07:00
by sim123
Here is my identify

identify -list configure

Path: /opt/ImageMagick-6.5.2-4/lib/ImageMagick-6.5.2/config/configure.xml

Name Value
-------------------------------------------------------------------------------
CC gcc -std=gnu99
CFLAGS -fopenmp -g -O2 -Wall -W -pthread
CONFIGURE ./configure '--prefix=/opt/ImageMagick-6.5.2-4'
COPYRIGHT Copyright (C) 1999-2009 ImageMagick Studio LLC
CPPFLAGS -I/opt/ImageMagick-6.5.2-4/include/ImageMagick
CXX g++
CXXFLAGS -g -O2 -Wall -W -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib fpx fontconfig freetype jpeg jng jp2 lcms png tiff x11 xml wmf zlib
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-gslib=no --with-fontpath=
EXEC-PREFIX /opt/ImageMagick-6.5.2-4
HOST i686-pc-linux-gnu
LDFLAGS -L/opt/ImageMagick-6.5.2-4/lib -lfreetype
LIB_VERSION 0x652
LIB_VERSION_NUMBER 6,5,2,4
LIBS -lMagickCore -llcms -ltiff -lfreetype -ljpeg -lfontconfig -lXext -lX11 -lbz2 -lz -lm -lgomp -lpthread
NAME ImageMagick
PCFLAGS -fopenmp
PREFIX /opt/ImageMagick-6.5.2-4
QuantumDepth 16
RELEASE_DATE 2009-05-13
VERSION 6.5.2
WEBSITE http://www.imagemagick.org

thats the only one I have and it works for other images like jpeg but not for preview generated bmps.

Re: Error Message While Schaling BitMap Image

Posted: 2009-05-13T14:56:32-07:00
by fmw42
On my Mac OSX Tiger, IM 6.5.2-4 Q16

convert r.jpg r.bmp
identify r.bmp
r.bmp BMP 356x400 356x400+0+0 8-bit DirectClass 417kb

Using preview, I converted your r.jpg to r2.bmp

identify r2.bmp
r2.bmp BMP 356x400 356x400+0+0 8-bit DirectClass 417kb

and

convert r2.bmp info:
r2.bmp BMP 356x400 356x400+0+0 8-bit DirectClass 417kb


identify -list configure

is for getting configuration information about your IM version, not for getting image information.

Re: Error Message While Schaling BitMap Image

Posted: 2009-05-13T15:02:00-07:00
by sim123
Yes, I am not trying identify -list configure for image operation, posted it just incase I am missing something, sorry for the confusion.
Please try to convert image using Preview application on OS X not by ImageMagick and then identify that image, Picasa is converting the bmp image into jpeg so I can not upload it.

Thanks for helping.