Closed trmccormick closed 5 years ago
fyi... i changed the flattenImages due to depreciation according to the php site
from -- http://php.net/manual/en/imagick.flattenimages.php
The actual replacement now that flattenImages() has been deprecated is:
<?php $im = $im->mergeImageLayers(Imagick::LAYERMETHOD_FLATTEN); ?>
flattenimages in add watermark was switching the format to tiff. The solution I came up with was to move the $image->setImageFormat from the beginning of the convertImage function to after adding the watermark function was called to insure the format is correct.