Skip to content

Commit 812703a

Browse files
committed
add clearMetadata to the interface
1 parent afe903f commit 812703a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

system/Images/ImageHandlerInterface.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,11 @@ public function text(string $text, array $options = []);
149149
* @return bool
150150
*/
151151
public function save(?string $target = null, int $quality = 90);
152+
153+
/**
154+
* Clear metadata before saving image as a new file.
155+
*
156+
* @return $this
157+
*/
158+
public function clearMetadata(): static;
152159
}

user_guide_src/source/changelogs/v4.7.0.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Behavior Changes
2626
Interface Changes
2727
=================
2828

29+
- **Images:** The ``ImageHandlerInterface`` now includes a new method: ``clearMetadata()``. If you've implemented your own handler from scratch, you will need to provide an implementation for this method to ensure compatibility.
30+
2931
Method Signature Changes
3032
========================
3133

0 commit comments

Comments
 (0)