• Resolved reintjan

    (@reintjan)


    After updating woocommerce to version 5.4 last night pdf invoices can’t be created anymore. It gives back this error:

    Exception: no decode delegate for this image format `PNG’ @ error/constitute.c/ReadImage/566

    I use default simple template for invoices

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor alexmigf

    (@alexmigf)

    Hi @reintjan

    It seems to be a problem related with the hosting environment of your installation.

    Can you provide the PHP version you are using and the name of the hosting company?

    For a quick fix, try to upload the logo in a JPEG version please.

    • This reply was modified 4 years, 11 months ago by alexmigf.
    Thread Starter reintjan

    (@reintjan)

    Thank you for your reply. I’m using PCextreme for hosting and have php 7.4 available

    Plugin Contributor alexmigf

    (@alexmigf)

    Hi @reintjan

    Can you ontact your hosting company and ask if there’s something you can do to enable PNG support in ImageMagick on your server?

    Did you tried with JPEG?

    Thread Starter reintjan

    (@reintjan)

    I asked my hostingprovider, php-imagemagick is available. But system engineers say native php has to be used, exec. Convert doesn’t work.

    So it looks like plug-in is not using native php but an alternative that is not supported on my hostingbplatform ( and some others as I understand in this topic)

    Plugin Contributor Ewout

    (@pomegranate)

    We don’t use exec, the library used by this plugin (dompdf) calls Imagick like this (native PHP as your host suggests):

    
    $imagick = new \Imagick($file);
    $imagick->setFormat('png');
    

    The error you get No decode delegate for this image format 'PNG' seems to indicate that Imagick may not have been setup properly. Have you passed that error to your host too?

    Thread Starter reintjan

    (@reintjan)

    Thank you all for quick support. Imagemagick was not well configured at my hostingprovider. They fixed this and now logo works fine on pdf invoice.

    Thank you very much for helping me out here!

    Plugin Contributor alexmigf

    (@alexmigf)

    @pablogm

    Could probably be a missed configuration in Imagemagick in your host. Can you contact them an see if they can fix it?

    @reintjan

    Glad it worked!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Error creating pdf after upgrade woocommerce’ is closed to new replies.