-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
at writeWatermark function, with current stock function watermark image has bad quality, but base image is good. This is fix:
instead
//Set image
if(!$image_save_func($baseImage, $this->tmpfile)){
throw new Exception("Cannot save file ".$this->tmpfile);
}
I replaced with
//Set image
$img_quality = '';
if($image_save_func == "ImageJPEG"){ $img_quality = 100; }
if($image_save_func == 'ImagePNG'){ $img_quality = 9; }
if(!$image_save_func($baseImage, $this->tmpfile, $img_quality)){
throw new Exception("Cannot save file ".$this->tmpfile);
}
Now watermark is good quality. Only I dont know how will it work with gif
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels