Page 1 of 1

Precision of variables in fx

Posted: 2017-12-31T17:28:19-07:00
by snibgo
Using a variable within an fx expression kills precision. For example:

Code: Select all

f:\prose\PICTURES>%IM%identify -precision 16 -format "%[fx:1/49]" xc:
0.02040816326530612

f:\prose\PICTURES>%IM%identify -precision 16 -format "%[fx:V=1/49;V]" xc:
0.0204082
Tested with v6.9.5-3 Q16 on Windows 8.1.

Re: Precision of variables in fx

Posted: 2017-12-31T18:59:07-07:00
by magick
Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ https://www.imagemagick.org/download/beta/ by sometime tomorrow.

Re: Precision of variables in fx

Posted: 2017-12-31T19:00:57-07:00
by GeeMack
snibgo wrote: 2017-12-31T17:28:19-07:00Tested with v6.9.5-3 Q16 on Windows 8.1.
I get the same results with IM 7.0.7-18 Q16 HDRI, running the commands on Windows 10 64, with "magick identify ...".