@@ -147,6 +147,9 @@ discard block |
||
| 147 | 147 | return in_array($image->getType(), [Format::GIF, Format::PNG]); |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | + /** |
|
| 151 | + * @return resource |
|
| 152 | + */ |
|
| 150 | 153 | protected function getImageResource(Image $image) |
| 151 | 154 | { |
| 152 | 155 | return Manipulator::create($image->getOutputFormat(), $image->getOriginalFullPath()); |
@@ -167,6 +170,9 @@ discard block |
||
| 167 | 170 | return [$cutEdgeWidth, $cutEdgeHeight]; |
| 168 | 171 | } |
| 169 | 172 | |
| 173 | + /** |
|
| 174 | + * @param resource $layout |
|
| 175 | + */ |
|
| 170 | 176 | protected function saveImage(Image $image, $layout, $width, $height): string |
| 171 | 177 | { |
| 172 | 178 | $this->createCacheDirectoryIfNotExists($image, $width, $height); |