public save ( grafika\ImageInterface $image, string $file, null | string $type = null, null | string $quality = null, boolean $interlace = false, integer $permission = 493 ) : grafika\EditorInterface |
$image |
grafika\ImageInterface |
Instance of Image. Saving the image to a different format will have NO effect on the Image instance. |
$file |
string |
File path where to save the image. |
$type |
null | string |
The image format to use. Can be null, "gif", "png", or "jpeg". If null, an appropriate format will be chosen based on the output file name in $file. |
$quality |
null | string |
Quality of image. Applies to JPEG only. Accepts number 0 - 100 where 0 is lowest and 100 is the highest quality. Or null for default. Default quality if null is 75. |
$interlace |
boolean |
Set to true for progressive JPEG. Applies to JPEG only. Default false. |
$permission |
integer |
Default permission when creating non-existing target directory. Default is 0755. Note: Its using PHP's octal notation so you must prepend numbers with zero (0). |
return |
grafika\EditorInterface |
An instance of Editor. |