wvulibraries / mfcs

Archival and Preservation Digital Asset Management System.
Other
8 stars 4 forks source link

corrected conversion issue #277

Closed trmccormick closed 5 years ago

trmccormick commented 5 years ago

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.

trmccormick commented 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); ?>