Quote:
Originally Posted by Arcade Fire
My emoticons do not move after intall watermark 
|
That is caused due to PHP GD library limitation. To emoticons show started again, I propose to make some changes in the source code. You need to found code in file watermark.php:
Code:
if($imagewidth <= $minwidth){
header ("Content-type: image/png");
imagepng($im);
imagedestroy($im);
}
and replace it to
Code:
if($imagewidth <= $minwidth){
switch ($imagetype['mime']) {
case "image/gif":
header ("Content-type: image/gif");
break;
case "image/jpeg":
$im = imagecreatefromjpeg($image);
header ("Content-type: image/jpeg");
break;
case "image/png":
$im = imagecreatefrompng($image);
header ("Content-type: image/png");
break;
}
$filename = $_SERVER['DOCUMENT_ROOT']."/".$_GET['src'];
$fp=@fopen($filename,"rb");
$contents = fread($fp, filesize($filename));
fclose($fp);
header ("Content-Length: ".filesize($fp));
echo $contents;
imagedestroy($im);
}
In that case watermark.php script will be get out emoticons file contents without any transformation. Don't forget to setup minimal width in admin area! (I use 100 pixels)
Pathed file also attached