Skip to content

Commit

Permalink
withFile on an Image resource should actually make the system use a n…
Browse files Browse the repository at this point in the history
…ew image. Fixes #689
  • Loading branch information
lonnieezell committed Aug 28, 2017
1 parent 4236278 commit 5c1b8dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions system/Images/Handlers/BaseHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ public function __construct($config = null)
*/
public function withFile(string $path)
{
// Clear out the old resource so that
// it doesn't try to use a previous image
$this->resource = null;

$this->image = new Image($path, true);

$this->image->getProperties();
Expand Down

0 comments on commit 5c1b8dc

Please sign in to comment.