Trying to convert a TIFF in PHP. We have ImageMagick installed on our server but we do not have the Imagick PECL extension (and we're on shared hosting on GoDaddy so I don't think it's possible to install).
I'm trying to find a workaround but no luck yet. Here's what I have so far (note that the TIFFs come to us in the form of a base64 string):
$tiff = base64_decode((string)$docsData);
try {
$cmd = "$tiff converted.png";
exec("/usr/local/bin/convert $cmd");
}
catch(Exception $e) {
die('Error when creating a file: ' . $e->getMessage());
}