Use Full Path for Thumbnail Generation

This commit is contained in:
seiichiro 2022-02-11 13:20:52 +01:00
parent c3f1764c58
commit df4a36ecc5

View file

@ -39,7 +39,7 @@ class thumb {
public function get_thumb($iname) {
$src = $this->imagedir.$iname;
$ext = pathinfo($iname, PATHINFO_EXTENSION);
$dstname = hash('sha256', $iname);
$dstname = hash('sha256', $src);
$dstpath = $this->thumbdir.$dstname.'.'.$ext;