Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-nurrohman committed Jun 8, 2021
1 parent 643df81 commit 5a8a3b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions image/engine/r/hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function crop($image, array $lot = []) {
$h = \ceil($lot[1] ?? $w);
$q = $lot[2] ?? null;
$x = \Path::X($image) ?? 'jpg';
$path = \To::path(\URL::long($image));
$path = \To::path(\URL::long($image, false));
$cache = \LOT . \DS . 'asset' . \DS . '.cache' . \DS . \trim(\chunk_split(\md5($w . '.' . $h . '.' . $q . '.' . $image), 2, \DS), \DS) . '.' . $x;
if (\is_file($cache)) {
$image = \To::URL($cache); // Return the image cache
Expand All @@ -40,7 +40,7 @@ function crop($image, array $lot = []) {
function image($image) {
// Skip if `image` data has been set!
if ($image) {
return \URL::long($image);
return \URL::long($image, false);
}
// Get URL from `content` data
if ($content = $this->content) {
Expand All @@ -62,7 +62,7 @@ function images($images) {
// Skip if `images` data has been set!
if ($images) {
foreach ($images as &$image) {
$image = \URL::long($image);
$image = \URL::long($image, false);
}
return $images;
}
Expand Down

0 comments on commit 5a8a3b2

Please sign in to comment.