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)
107107 public function serializeImage (ImageRepresentation $ imageRepresentation ): array
108108 {
109109 $ signature = Signatures::sign ($ this ->secret , $ imageRepresentation ->serialize ());
110- return Strings::splitAtIndex ($ signature , 6 );
110+ return Strings::splitAtIndex ($ signature , 20 );
111111 }
112112
113113 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
4949 }
5050
5151 $ 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 );
5353 $ cacheFilePath = "{$ baseCachePath }/ {$ folder }/ {$ name }. {$ imageRepresentation ->extension }" ;
5454
5555 Directories::makeRecursive (dirname ($ cacheFilePath ));
You can’t perform that action at this time.
0 commit comments