Viewing 6 replies - 1 through 6 (of 6 total)
  • I have also experienced that a PDF with black text on white background generated a completely black preview image. However, this happend only with one specific document, while three others (which were very similar) generated a normal thumbnail.

    Plugin Author Mizuho Ogino

    (@fishpie)

    Hi.

    This is caused when PDFs have transparent background. But it’s NOT what I expected.
    I uploaded jp12354’s file on my site and it worked normally.

    Try to check “Customize Generated Image properties” off and upload the same file.
    If it goes fine, recheck it on and expressly set “Background Color” to white or #ffffff.
    If not, it is possibility of an indigenous problem of the imageMagick version which you are using. Anyway, I need some more information. imageMagick or imagick extension (and there version), PHP version.

    Hi

    Unchecking “Customize Generated Image properties” solved the problem, and so did setting the background color to white.

    Thanks for your support. Great plug-in!

    I am having the same issue, but unchecking “Customize Generated Image Properties” does not solve it. Background color is set to white.

    When I upload a new PDF with a transparent background, I get the following message:

    Warning: Imagick::setimagealphachannel() expects exactly 1 parameter, 0 given in .../wp-content/plugins/pdf-image-generator/pdf-image-generator.php on line 380
    13907

    I’m using the Imagick PHP extension, server using imageMagick 6.9.0

    Update: it seems to work if I change setImageAlphaChannel() to setImageAlphaChannel( 11 ) on line 380 of pdf-image-generator.php

    Plugin Author Mizuho Ogino

    (@fishpie)

    Hi dpruth001.

    Thank you for your reporting. It helps improving the plugin.
    It should be reflected in the next update!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘White backgrounds on pdf generate as black on image’ is closed to new replies.