Skip to content

Commit

Permalink
Allow dynamic url based image manipulation
Browse files Browse the repository at this point in the history
  • Loading branch information
cord authored May 6, 2022
1 parent 270d1e7 commit a0c9e31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Intervention/Image/ImageCacheController.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ public function getImage($template, $filename)
$manager = new ImageManager(Config::get('image'));
$content = $manager->cache(function ($image) use ($template, $path) {

// add querystring as cache parameter
$image->setProperty('urlparameters', request()->getQueryString());

if ($template instanceof Closure) {
// build from closure callback template
$template($image->make($path));
Expand Down

0 comments on commit a0c9e31

Please sign in to comment.