How to round aperture value

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 ?

Comments

  • acrylian Administrator, Developer
    Make a custom function.
  • 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.
  • acrylian Administrator, Developer
    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.
  • line 414 of exif.php is where this value is generated. You can add a `round()` function call to the code.
Sign In or Register to comment.