ZenphotoCMS Forum
How to round aperture value - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: How to round aperture value (/thread-10305.html)



How to round aperture value - binoyte - 2012-08-16

Hi !
I'm using the printImageMetadata() function to display exif.

This works fine but sometimes the aperture value is display with an useless accuracy, for instance f/1,3999999761581 instead of f/1.4

How can I round these values ?




How to round aperture value - acrylian - 2012-08-16

Make a custom function.




How to round aperture value - binoyte - 2012-08-16

Al-right I will do that but this could be an improvement for next release.

FxIF, a firefox extension that allows you to view exif informations, displays properly the aperture value for the same image.




How to round aperture value - acrylian - 2012-08-16

WEll, Zenphoto displays the value as it is recorded. WHich is what most people expect. Anyway, feel free to open a ticket about so we might look into this some time.




How to round aperture value - sbillard - 2012-08-16

line 414 of exif.php is where this value is generated. You can add a round() function call to the code.