blur and featured
-
hi,
can you tell me how add emagick blur filter
and use the thumbnail as featured please?
ive try to add code in your PdfThumbnailsPlugin.php but server return error:
(work after refresh media page but with black borders…)
code:private function getThumbnailBlob($filename)
{
$blob = apply_filters(‘pdf_thumbnails_generate_image_blob’, null, $filename);
if ($blob) {
return $blob;
}
$imagick = new Imagick($filename);
$imagick->blurImage(5,3);
$imagick->setIteratorIndex(0);
$imagick->setImageFormat(‘jpg’);
return $imagick->getImageBlob();
}thanks in advance for reply
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘blur and featured’ is closed to new replies.