Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' into lsolesen-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
weberhofer authored Jan 4, 2017
2 parents 55171fe + 8750c5c commit f40b1ff
Show file tree
Hide file tree
Showing 3 changed files with 341 additions and 586 deletions.
2 changes: 1 addition & 1 deletion src/PelEntryRational.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public function getText($brief = false)
$minutes = $this->value[1][0] / $this->value[1][1];
$seconds = $this->value[2][0] / $this->value[2][1];

return sprintf('%s %s\' %s" (%.2f)', $degrees, $minutes, $seconds, $degrees + $minutes / 60 + $seconds / 3600);
return sprintf('%s° %s\' %s" (%.2f°)', $degrees, $minutes, $seconds, $degrees + $minutes / 60 + $seconds / 3600);

default:
return parent::getText($brief);
Expand Down
5 changes: 4 additions & 1 deletion src/PelJpeg.php
Original file line number Diff line number Diff line change
Expand Up @@ -591,10 +591,13 @@ public function getBytes()
* @param
* string the filename to save in. An existing file with the
* same name will be overwritten!
*
* @return integer|FALSE The number of bytes that were written to the
* file, or FALSE on failure.
*/
public function saveFile($filename)
{
file_put_contents($filename, $this->getBytes());
return file_put_contents($filename, $this->getBytes());
}

/**
Expand Down
Loading

0 comments on commit f40b1ff

Please sign in to comment.