has -contrast-stretch been changed in IM 6.4.4-9?

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

has -contrast-stretch been changed in IM 6.4.4-9?

Post by fmw42 »

With regard to all the discussion at viewtopic.php?f=3&t=12272:

I have been working on a script that uses -contrast-stretch. Yesterday under IM 6.4.4-8, it was working fine using:

-contrast-stretch 1%x99% in order to clip 1% off each end of the histogram

Today I installed IM 6.4.4.-9 only to find that the same command made no change in the image. So on a hunch I tried

-contrast-stretch 1%x1% in order to clip 1% off each end of the histogram

and found that I now got the same result as yesterday using 1%x99%

So I assume that the change discussed in viewtopic.php?f=3&t=12272: has been implemented but I don't see any reply to this post or note in the changelog or in the options documentation.

Can someone confirm, please, so that I may continue with my script and put traps in for the IM version change.

If this has been changed, let me know if you want me to try to edit the options page about it.

Thanks.

P.S. As I have not heard back, I have edited the options page for -contrast-stretch to reflect this change. Let me know if the change was not intentional.

I have also uploaded a new script, clip, to my web site http://www.fmwconcepts.com/imagemagick/index.html that does a stretch using either -levels or -contrast-stretch according to the clip amounts specified (as either count or percent count).
Post Reply