Skip to content

Instantly share code, notes, and snippets.

@asquelt
Created March 18, 2014 17:21
Show Gist options
  • Save asquelt/9624792 to your computer and use it in GitHub Desktop.
Save asquelt/9624792 to your computer and use it in GitHub Desktop.
--- galleria-fs.php~ 2014-03-18 18:15:46.364798315 +0100
+++ galleria-fs.php 2014-03-18 18:15:51.035185714 +0100
@@ -445,7 +445,7 @@
if (!empty($exif['FNumber'])) {
$f = $this->exifv($exif['FNumber']);
$f = $f[0] / $f[1];
- $f = ' and f/'.$f;
+ $f = ' and f/'.round($f);
}
if (!empty($exif['ExposureTime'])) {
$s = $this->exifv($exif['ExposureTime']);
@@ -453,7 +453,7 @@
$s = $s[0] / $s[1];
} else {
$s = $s[1] / $s[0];
- $s = '1/'.$s;
+ $s = '1/'.round($s);
}
$s = ', '.$s.'sec';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment