Skip to content

Imagick doesn't handle tranparency with current WordPress settings. Now it does.

Notifications You must be signed in to change notification settings

joostdekeijzer/wp-dkzr-imagick-pdf-fixes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

=== Imagick PDF fixes ===
Contributors: joostdekeijzer
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=j@dkzr.nl&item_name=dkzr-imagick-pdf-fixes+WordPress+plugin&item_number=Joost+de+Keijzer&currency_code=EUR
Tags: media, image, pdf, thumbnail
Stable tag: 1.0.2
Requires at least: 5.0
Tested up to: 5.3
Requires PHP: 7.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Imagick doesn't handle tranparency with current WordPress settings. Now it does.

== Description ==

PDF thumbnails, automagicly generated by WordPress, don't handle transparency very well. This results in black pages.

In https://core.trac.wordpress.org/ticket/45982 and https://core.trac.wordpress.org/ticket/39216 there are workarounds, this plugin implements:

`$this->image->setImageAlphaChannel( Imagick::ALPHACHANNEL_REMOVE );`

This works for me using PHP7.2 with ImageMagick 6.9.10 and ghostscript 9.5.

== Installation ==

* Download the plugin
* Uncompress it with your preferred unzip program
* Copy the entire directory in your plugin directory of your WordPress blog (/wp-content/plugins)
* Activate the plugin

== Frequently Asked Questions ==

== Changelog ==

= 1.0.1 =

* rename to dkzr-imagick-pdf-fixes

= 1.0 =

* For attachments with a PDF extention: set the alpha channel to `Imagick::ALPHACHANNEL_REMOVE`

== Upgrade Notice ==

About

Imagick doesn't handle tranparency with current WordPress settings. Now it does.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages