Replies: 2 comments
-
Upon further testing I removed the // $image1->SetOption('fuzz','10%'); and ImageMagick 6.7.7-10 : In this test case, the change of values occurs between 6.9.7-4 and 6.9.10-23, which is different from the previous (above) examples (where Has the Should it be considered that the previous, old values are incorrect or less accurate and the newly reported values are correct or more accurate? |
Beta Was this translation helpful? Give feedback.
-
Behavior change may be related to commit d444288 ("prefer ffmpeg over avconv") and 4f9aff6 ? (committed by @urban-warrior) TestCompiled source from https://imagemagick.org/archive/releases/
Changelog
|
Beta Was this translation helpful? Give feedback.
-
Summary
I have an older PHP code base I have been updating, which uses the
compareImages
function along withfuzz
(viaSetOption
) and noticed the values it returns have changed based upon the OS and library versions I use. I have browsed the changelogs but nothing has been readily apparent as to what is influencing the change in output, i.e., a different integer value.I'm not clear if this is a bug, an (un)intended side effect from the improvement of the code (either PHP or the underlying ImageMagick libraries or API wrappers), or a change in how the
compareImages
function andfuzz
settings work, e.g., am I missing new, additional parameters, in order to make the function behave consistently (across versions)?Note: The below example uses
fuzz
of10%
but the difference in behavior, i.e., returned integer values, varies (between library/OS/PHP versions), for any%
value supplied.Versions
All version values for ImageMagick below come from running:
convert -v
63069
71621
(Different from the63069
above)While the above shows a difference between 6.9.10-23 and 6.9.11-60, where the PHP version changes from 7.x to 8.x, I have another test case on CentOS, which is using PHP 7.x, i.e.,
71621
(Different from the63069
above)If the "change" occurs between versions, independent of OS and PHP versions, then the above initially indicates it's between: ImageMagick 6.9.10-23 and 6.9.10-68
I can keep digging, e.g., through source code, but if anyone has a suggestion on what to hone in on, it would be appreciated.
Reference
Images
Original (Transmit):
EA3EWO_TX.jpg
Received (degraded):
EA3EWO_RX.jpg
Beta Was this translation helpful? Give feedback.
All reactions