We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a793f52 commit 45a3336Copy full SHA for 45a3336
.docs/README.md
@@ -127,6 +127,21 @@ $img_object = $imageStorage->fromIdentifier('images/ed/kitty.jpg');
127
$this->imageStorage->delete($img_object);
128
```
129
130
+If you only want to delete changed images, set the second parameter to TRUE:
131
+```php
132
+<?php declare(strict_types = 1);
133
+
134
+// from string
135
+$img = 'images/ed/kitty.jpg';
136
+$this->imageStorage->delete($img, true);
137
138
+// OR from object
139
+$img_object = $imageStorage->fromIdentifier('images/ed/kitty.jpg');
140
+$this->imageStorage->delete($img_object, true);
141
+```
142
+The original images remain saved.
143
144
145
## Friendly URL
146
147
The transformed image name does not look to much friendly (eg `/avatars/kitty.200x200.fit.jpg`).
0 commit comments