Page 1 of 2
Identify does not display any result for bmp
Posted: 2009-05-14T13:45:23-07:00
by sim123
I have installed IM 6.5.2-4 on MAC OS X 10.5.7 (Leopard) and on CentOS 5.0. I am trying to identify images generated by preview application, identify does not display any result in this case. Here is the link from Users forum:
viewtopic.php?f=1&t=13696
Earlier versions of IM could handle this case, is this a bug? Could some one please guide me if there is any problem with my configuration.
Thanks for the help and support.
Re: Identify does not display any result for bmp
Posted: 2009-05-14T14:23:27-07:00
by magick
We downloaded
- -rw-r--r-- 1 magick 45673 2009-05-14 17:25 PreviewImage.bmp
-rw-r--r-- 1 magick 22372 2009-05-14 17:25 r.bmp
and we could display, convert, and identify both these images. We need to reproduce a problem before we can fix it.
Re: Identify does not display any result for bmp
Posted: 2009-05-14T14:48:18-07:00
by anthony
If that is the case could you have two versions of IM installed, or the previous version was not cleaned up completely before the newer version installed?
Re: Identify does not display any result for bmp
Posted: 2009-05-14T16:38:40-07:00
by sim123
fmw42 gave me another suggestion so posting that result, I hope it could give a clue:
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
I did have different versions of IM installed, however nothing is in my path, I tried cleaning all directories, however default might still be there, I have created a soft link for convert and identify in /usr/bin and accessing these via soft links. to uninstall IM do I need to manually remove everything one by one?
Thanks for the help.
Re: Identify does not display any result for bmp
Posted: 2009-05-14T16:51:36-07:00
by anthony
It is not just the path,but also the library path (LD_LIBRARY_PATH) that must be looked at.
The right versions of librarys and coders must be used with the same version of the commands.
IN the source is a script "magick.sh" that is designed as a wrapper to allow you to use a specific command from the build directory without installing. It could be modified to automatically associated the right library with the command that is being run.
I have implements multiple versions of IM on a single machine (one system and one personal), but I ensure I do not have both in active use simultaneously, as that will produce weird and unexpected errors.
Re: Identify does not display any result for bmp
Posted: 2009-05-15T09:50:25-07:00
by sim123
I installed a new version of IM (6.5.2-4) on fresh CentOS VM image and still getting same result. Below is my path variable settings
Code: Select all
[root@localhost temp]# echo $MAGICK_HOME
/opt/ImageMagick-6.5.2-4
[root@localhost temp]# echo $DYLD_LIBRARY_PATH
/opt/ImageMagick-6.5.2-4/lib
[root@localhost temp]# echo $PATH
/opt/ImageMagick-6.5.2-4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/vmware/bin:/opt/vmware/bin:/root/bin
I took IM from
Code: Select all
wget ftp://ftp.imagemagick.net/pub/ImageMagick/ImageMagick-6.5.2-4.tar.gz
if it the correct version? if it is what else could I do to make it work? Thanks for your time and help.
Re: Identify does not display any result for bmp
Posted: 2009-05-18T09:53:46-07:00
by sim123
Can anyone please provide me binary for CentOS 5.2 32 bit, so I could try that out? because all my binaries does not seems to handle this case?
Thanks for the help.
Re: Identify does not display any result for bmp
Posted: 2009-05-20T15:49:43-07:00
by sim123
I again tired all versions of IM available on ImageMagick.net and identify does not work on preview generated bmp.
I am testing identify r.bmp ( a preview generated bmp), everything else like convert and identify for rose.bmp works. convert r.bmp info: works too (Please see my earlier posts).
I want to convince on that, there may be some problem with my environment or Leopard Preview but just one thing bothers me; why IM 6.4.6-8 is able to identify the same bmp image and displaying the result and later versions can not do that. In 6.4.9-10 till 6.5.2-0 convert is broken and gives an error message if you try to convert a preview generated bmp, that is fixed after 6.5.2-2 but identify is still not working (at least for me its not).
Please help me. I have no clue here.
Re: Identify does not display any result for bmp
Posted: 2009-05-20T16:12:57-07:00
by fmw42
you might also try again and post the results from :
identify -ping -respect-parenthesis -debug all r.bmp 2>&1
Re: Identify does not display any result for bmp
Posted: 2009-05-21T10:28:33-07:00
by sim123
Code: Select all
[root@25x101 temp]# identify -ping -respect-parenthesis -debug all PreviewImage.bmp 2>&1
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Configure identify[332]: utility.c/ExpandFilenames/865/Configure
Command line: identify {-ping} {-respect-parenthesis} {-debug} {all} {PreviewImage.bmp}
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Configure identify[332]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "/opt/ImageMagick-6.5.2-6/share/ImageMagick-6.5.2/config/coder.xml"
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Configure identify[332]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "/opt/ImageMagick-6.5.2-6/lib/ImageMagick-6.5.2/config/coder.xml"
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Configure identify[332]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "/opt/ImageMagick-6.5.2-6/share/doc/ImageMagick-6.5.2/coder.xml"
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Configure identify[332]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "/opt/ImageMagick-6.5.2-6/share/ImageMagick-6.5.2/coder.xml"
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Configure identify[332]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "/root/.magick/coder.xml"
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Configure identify[332]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "coder.xml"
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Configure identify[332]: coder.c/LoadCoderList/639/Configure
Loading coder configuration file "/opt/ImageMagick-6.5.2-6/share/ImageMagick-6.5.2/config/coder.xml" ...
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Module identify[332]: module.c/OpenModule/1154/Module
Searching for module "BMP" using filename "bmp.la"
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Module identify[332]: module.c/GetMagickModulePath/549/Module
Searching for coder module file "bmp.la" ...
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Module identify[332]: module.c/OpenModule/1163/Module
Opening module at path "/opt/ImageMagick-6.5.2-6/lib/ImageMagick-6.5.2/modules-Q16/coders/bmp.la"
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Module identify[332]: module.c/OpenModule/1190/Module
Method "RegisterBMPImage" in module "BMP" at address 0x3b1fc0
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Module identify[332]: module.c/OpenModule/1204/Module
Method "UnregisterBMPImage" in module "BMP" at address 0x3b1f70
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Policy identify[332]: policy.c/IsRightsAuthorized/520/Policy
Domain: Path; rights=Read; pattern="PreviewImage.bmp" ...
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Blob identify[332]: blob.c/OpenBlob/2416/Blob
read 3 magic header bytes
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Configure identify[332]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "/opt/ImageMagick-6.5.2-6/share/ImageMagick-6.5.2/config/magic.xml"
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Configure identify[332]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "/opt/ImageMagick-6.5.2-6/lib/ImageMagick-6.5.2/config/magic.xml"
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Configure identify[332]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "/opt/ImageMagick-6.5.2-6/share/doc/ImageMagick-6.5.2/magic.xml"
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Configure identify[332]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "/opt/ImageMagick-6.5.2-6/share/ImageMagick-6.5.2/magic.xml"
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Configure identify[332]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "/root/.magick/magic.xml"
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Configure identify[332]: configure.c/GetConfigureOptions/528/Configure
Searching for configure file: "magic.xml"
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Configure identify[332]: magic.c/LoadMagicList/682/Configure
Loading magic configure file "/opt/ImageMagick-6.5.2-6/share/ImageMagick-6.5.2/config/magic.xml" ...
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Policy identify[332]: policy.c/IsRightsAuthorized/520/Policy
Domain: Coder; rights=Read; pattern="BMP" ...
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Policy identify[332]: policy.c/IsRightsAuthorized/520/Policy
Domain: Path; rights=Read; pattern="PreviewImage.bmp" ...
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Blob identify[332]: blob.c/OpenBlob/2416/Blob
read 3 magic header bytes
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Policy identify[332]: policy.c/IsRightsAuthorized/520/Policy
Domain: Path; rights=Read; pattern="PreviewImage.bmp" ...
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Blob identify[332]: blob.c/OpenBlob/2416/Blob
read 3 magic header bytes
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Coder identify[332]: bmp.c/ReadBMPImage/588/Coder
Magick: BM
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Coder identify[332]: bmp.c/ReadBMPImage/598/Coder
BMP size: 40
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Coder identify[332]: bmp.c/ReadBMPImage/644/Coder
Format: MS Windows bitmap
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Coder identify[332]: bmp.c/ReadBMPImage/646/Coder
Geometry: 576x-432
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Coder identify[332]: bmp.c/ReadBMPImage/648/Coder
Bits per pixel: 24
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Coder identify[332]: bmp.c/ReadBMPImage/654/Coder
Compression: BI_RGB
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Coder identify[332]: bmp.c/ReadBMPImage/694/Coder
Number of colors: 0
2009-05-21T17:25:19+00:00 0:01 0.000u 6.5.2 Coder identify[332]: bmp.c/ReadBMPImage/898/Coder
Reading pixels (746496 bytes)
2009-05-21T17:25:19+00:00 0:02 0.010u 6.5.2 Resource identify[332]: resource.c/AcquireMagickResource/222/Resource
Area: 1.898mb/1.898mb/1.9747gb
2009-05-21T17:25:19+00:00 0:02 0.010u 6.5.2 Resource identify[332]: resource.c/AcquireMagickResource/222/Resource
Memory: 1.898mb/1.898mb/1.481gb
2009-05-21T17:25:19+00:00 0:02 0.010u 6.5.2 Cache identify[332]: cache.c/OpenPixelCache/3832/Cache
open PreviewImage.bmp[0] (heap memory, 576x432 1.898mb)
2009-05-21T17:25:19+00:00 0:02 0.010u 6.5.2 Resource identify[332]: resource.c/RelinquishMagickResource/865/Resource
Memory: 1.898mb/0b/1.481gb
2009-05-21T17:25:19+00:00 0:02 0.010u 6.5.2 Cache identify[332]: cache.c/DestroyPixelCacheInfo/1513/Cache
destroy PreviewImage.bmp[0]
2009-05-21T17:25:19+00:00 0:02 0.010u 6.5.2 Cache identify[332]: cache.c/DestroyPixelCacheInfo/1513/Cache
destroy
and
Code: Select all
[root@25x101 temp]# identify PreviewImage.bmp
[root@25x101 temp]#
// it does not display anything
I am trying IM 6.5.2-6. thanks for the help
Re: Identify does not display any result for bmp
Posted: 2009-06-05T14:42:02-07:00
by sim123
I tried IM 6.5.3.2 on MAC OS-X today and still having same issue, I am wondering why no one else is encountering same problem.
Please please someone help me. I really need it to be working.
Thanks.
Re: Identify does not display any result for bmp
Posted: 2009-06-05T14:55:14-07:00
by fmw42
Did you ever try renaming the IM identify to say imidentify to ensure you don't have a conflict with some other identify?
then
imidentify image.bmp
Also why is it so hard to switch your code to use
convert image.bmp info:
That gives the same results as identify
Re: Identify does not display any result for bmp
Posted: 2009-06-05T15:23:11-07:00
by sim123
Thanks for quick response.
I tried switching name and still getting same results.I even tried everything on new Linux VM image and its not working in that image either. As I said earlier that if I switch to ImageMagick-6.4.6-8 then it works. so its broken after that and everyone agreed that convert and identify is broken. Convert got fixed however identify is in the same condition.
I don't want to change my code just because IM is not displaying results for specific image, I would rather switch to older version.
Another reason is I am using identify in my java code and looking for format of the image only to find out if this format is supported or not.
identify -format %m- PreviewImage.bmp
to avoid any parsing overheads inside java.
I would really be grateful if this can be fixed else please let me know so that I could switch to older version of IM.
Thanks for the help.
Re: Identify does not display any result for bmp
Posted: 2009-06-05T16:24:43-07:00
by fmw42
I appreciate your problem. And if it is truly a bug as it seems, then it should be fixed. But for some reason you are the only one so far who has this difficulty. Unfortunately, I am on OSX Tiger and so cannot confirm with OSX Leopard. It seems to work fine on Tiger. Have you confirmed it on any other operating systems? Is it possible it has something to do with your Java with respect to bmp files rather than IM?
But if all else fails or anyway, this produces the exact same information
identify -format %m- PreviewImage.bmp
or
convert PreviewImage.bmp -format %m info:
Try
identify -format "%m\n" PreviewImage.bmp
In some versions of IM convert ... info: and identify differed by a new line.
Re: Identify does not display any result for bmp
Posted: 2009-06-09T13:36:07-07:00
by sim123
I tried latest version on Linux but getting same results. Thanks for the workaround though, convert with "-format %m" gives me same result as identify and one less command to maintain.
Just wondering convert PreviewImage.bmp -format %m info: is not doing any heavy weight processing and I am not introducing any performance overhead as compared to identify?
Thank you very much for the help fmw42, I really appreciate it.