Skip to content

Commit

Permalink
Merge pull request #45 from judereid/master
Browse files Browse the repository at this point in the history
Pass path to image so Glide can access EXIF data
  • Loading branch information
freekmurze committed Dec 18, 2015
2 parents 2fb700c + f6fcc40 commit 2171717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Spatie/Glide/GlideImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function save($outputFile)
{
$glideApi = GlideApiFactory::create();

$outputImageData = $glideApi->run(Request::create(null, null, $this->modificationParameters), file_get_contents($this->getPathToImage()));
$outputImageData = $glideApi->run(Request::create(null, null, $this->modificationParameters), $this->getPathToImage());

file_put_contents($outputFile, $outputImageData);

Expand Down

0 comments on commit 2171717

Please sign in to comment.