• Resolved georg4075

    (@georg4075)


    Hi!

    I had certain PDFs not creating thumbnails.

    Apache logs said:

    exception 'ImagickException' with message 'Unable to set image alpha channel' in /var/www/site/htdocs/wp-content/plugins/pdf-image-generator/pdf-image-generator.php:346

    Then I came across this:
    https://github.com/meumobi/sitebuilder/issues/389#issuecomment-232377250

    So I tried to apply this to the code of the plugin by changing

    line 346 from

    $imagick->setImageAlphaChannel( 11 );

    to

    if ($imagick->getImageAlphaChannel()) {$imagick->setImageAlphaChannel( 11 );}

    and the issue was solved!

    Could you please add this fix to the official plugin code?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PDF transparency error (and fix)’ is closed to new replies.