mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-28 14:04:45 -04:00
Removes old code.
This commit is contained in:
parent
1458623998
commit
bf2cf3c048
1 changed files with 0 additions and 4 deletions
|
@ -48,7 +48,6 @@ class Thumb {
|
||||||
}
|
}
|
||||||
|
|
||||||
$name = "thumb-" . sha1("$sourceAbsPath-$width-$height-$mode") . ".jpg";
|
$name = "thumb-" . sha1("$sourceAbsPath-$width-$height-$mode") . ".jpg";
|
||||||
// $name = "thumb-" . sha1("$sourceAbsPath-$width-$height-$mode") . ".png";
|
|
||||||
$thumbAbsPath = $this->h5ai->getCacheAbsPath() . "/" . $name;
|
$thumbAbsPath = $this->h5ai->getCacheAbsPath() . "/" . $name;
|
||||||
$thumbAbsHref = $this->h5ai->getCacheAbsHref() . $name;
|
$thumbAbsHref = $this->h5ai->getCacheAbsHref() . $name;
|
||||||
|
|
||||||
|
@ -57,9 +56,6 @@ class Thumb {
|
||||||
$image->setSource($sourceAbsPath);
|
$image->setSource($sourceAbsPath);
|
||||||
$image->thumb($mode, $width, $height);
|
$image->thumb($mode, $width, $height);
|
||||||
$image->saveDestJpeg($thumbAbsPath, 80);
|
$image->saveDestJpeg($thumbAbsPath, 80);
|
||||||
|
|
||||||
// $image->saveDestPng($thumbAbsPath, 9);
|
|
||||||
// Magic::thumb($mode, $sourceAbsPath, $thumbAbsPath, $width, $height);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return file_exists($thumbAbsPath) ? $thumbAbsHref : null;
|
return file_exists($thumbAbsPath) ? $thumbAbsHref : null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue