Skip to content

Commit ed72b07

Browse files
authored
Add convert() to interface
1 parent e1acfb9 commit ed72b07

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

system/Images/ImageHandlerInterface.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,18 @@ public function crop(int $width = null, int $height = null, int $x = null, int $
7474

7575
//--------------------------------------------------------------------
7676

77+
/**
78+
* Changes the stored image type to indicate the new file format to use when saving.
79+
* Does not touch the actual resource.
80+
*
81+
* @param integer|null $imageType A PHP imagetype constant, e.g. https://www.php.net/manual/en/function.image-type-to-mime-type.php
82+
*
83+
* @return $this
84+
*/
85+
public function convert(int $imageType);
86+
87+
//--------------------------------------------------------------------
88+
7789
/**
7890
* Rotates the image on the current canvas.
7991
*

0 commit comments

Comments
 (0)