File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ private function getTmpPath(string $extension)
107
107
public function serializeImage (ImageRepresentation $ imageRepresentation ): array
108
108
{
109
109
$ signature = Signatures::sign ($ this ->secret , $ imageRepresentation ->serialize ());
110
- return Strings::splitAtIndex ($ signature , 6 );
110
+ return Strings::splitAtIndex ($ signature , 20 );
111
111
}
112
112
113
113
public function getImageSignedString (string $ signedString ): ImageRepresentation
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public static function realPath(ImageRepresentation $imageRepresentation): strin
49
49
}
50
50
51
51
$ baseCachePath = config ('image-engine.original_cache_dir ' );
52
- [$ folder , $ name ] = Strings::splitAtIndex (md5 ($ imageRepresentation ->filePath ), 6 );
52
+ [$ folder , $ name ] = Strings::splitAtIndex (md5 ($ imageRepresentation ->filePath ), 20 );
53
53
$ cacheFilePath = "{$ baseCachePath }/ {$ folder }/ {$ name }. {$ imageRepresentation ->extension }" ;
54
54
55
55
Directories::makeRecursive (dirname ($ cacheFilePath ));
You can’t perform that action at this time.
0 commit comments