new trouble with "convert ... histogram: ..."

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
firewood

new trouble with "convert ... histogram: ..."

Post by firewood »

I have frequently and successfully used the command:
convert image_file.gif histogram:text_file.txt

Recently, however, using ImageMagick 6.3.0, I've been getting a useless list of almost all black and white pixels. The image I am using has a lot of color. It is definitely not the correct histogram.

Has anyone reported problems with the histogram option on that version?

This is all being done on my webhost's servers. I recently changed servers (same webhost), and the version of IM was not the same on the new server, so I am a bit in the dark about whether this is an IM problem or if my webhost has IM configured wrong.

Any suggestions will be greatly appreciated.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

There was I believe a bug, which was fixed. get the next version of IM
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
firewood

Post by firewood »

Anthony,
Thanks for the info. That is what I suspected.
By the way, thanks for your terrific tutorials on IM. I have found them to be extremely informative and helpful.
Tim
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

Why else would you be using histogram output. :-)
Few peopel used it until I added it to IM Examples.

This is what IM examples is all about, if you come across something interesting please let me know about it so others can benifit.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
firewood

Post by firewood »

Well, I took your advice, Anthony, and requested my webhost to upgrade IM to the next version. They refused!!

They use a software set from Red Hat that has to be tested for security and potential conflicts with other software. When they "upgraded" to the most recent version of Red Hat, it included the histogram bug, and now they won't correct it, until RH sends them a new upgrade. That could take months.

So I have to install IM myself on my local account. I did so (configure, make, make install) and tried to run the same command as before with the following results:

./IM/bin/convert img_file.gif histogram:histogram.txt
convert: NoDecodeDelegateForThisImageFormat `img_file.gif'.
convert: MissingAnImageFilename `histogram:histogram.txt'.

Why would a standard install not be able to read a gif format? I gather I have a dependency problem here, but gif is so common, that I can't believe that the standard set of IM files wouldn't include the appropriate delegate.

I looked at the config.log, and it was Greek to me. Any advice?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

RH never does updates, unless it is a security problem!

However there has been a disscussion on the forums about installing your own version of ImageMagick ;-) just watch the LD_LIBRARY_PATH, to make sure it gets the right ones.

No guranttees.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply