@@ 153-157 (lines=5) @@ | ||
150 | ||
151 | list($disk, $folder, $filename) = explode('/', str_replace('://', '/', $path)); |
|
152 | ||
153 | if ($image->getAlterations() || $image->getQuality()) { |
|
154 | $filename = md5( |
|
155 | var_export([$path, $image->getAlterations()], true) . $image->getQuality() |
|
156 | ) . '.' . $image->getExtension(); |
|
157 | } |
|
158 | ||
159 | if ($rename = $image->getFilename()) { |
|
160 | ||
@@ 183-187 (lines=5) @@ | ||
180 | $directory = ltrim(dirname($path), '/\\') . '/'; |
|
181 | $application = $this->application->getReference(); |
|
182 | ||
183 | if ($image->getAlterations() || $image->getQuality()) { |
|
184 | $filename = md5( |
|
185 | var_export([$path, $image->getAlterations()], true) . $image->getQuality() |
|
186 | ) . '.' . $image->getExtension(); |
|
187 | } |
|
188 | ||
189 | if ($rename = $image->getFilename()) { |
|
190 | $directory = null; |