Title: Error: NoDecodeDelegateForThisImageFormat
Last modified: March 6, 2020

---

# Error: NoDecodeDelegateForThisImageFormat

 *  Resolved [Akhtarujjaman Shuvo](https://wordpress.org/support/users/mdshuvo/)
 * (@mdshuvo)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-nodecodedelegateforthisimageformat/)
 * I am getting this error when I set **Shop header/logo** [http://prntscr.com/q24ihm](http://prntscr.com/q24ihm)
 *     ```
       Exception: NoDecodeDelegateForThisImageFormat
       PNG @ error/constitute.c/ReadImage/501
       #0 /html/wordpress/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/lib/Cpdf.php(4862): Imagick->__construct('/html/wordpress...')
       #1 /html/wordpress/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/lib/Cpdf.php(4984): Cpdf->addImagePngAlpha('/html/wordpress...', 57.442913385827, 727.75417322835, 204.86757337151, 85.03937007874, 6)
       #2 /html/wordpress/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Adapter/CPDF.php(864): Cpdf->addPngFromFile('/html/wordpress...', 57.442913385827, 727.75417322835, 204.86757337151, 85.03937007874)
       #3 /html/wordpress/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer/Image.php(110): Dompdf\Adapter\CPDF->image('/html/wordpress...', 57.442913385827, 29.096456692913, 204.86757337151, 85.03937007874, 'normal')
       #4 /html/wordpress/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(293): Dompdf\Renderer\Image->render(Object(Dompdf\FrameDecorator\Image))
       #5 /html/wordpress/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(127): Dompdf\Renderer->_render_frame('image', Object(Dompdf\FrameDecorator\Image))
       #6 /html/wordpress/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(194): Dompdf\Renderer->render(Object(Dompdf\FrameDecorator\Image))
       #7 /html/wordpress/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(194): Dompdf\Renderer->render(Object(Dompdf\FrameDecorator\TableCell))
       #8 /html/wordpress/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(194): Dompdf\Renderer->render(Object(Dompdf\FrameDecorator\TableRow))
       #9 /html/wordpress/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(194): Dompdf\Renderer->render(Object(Dompdf\FrameDecorator\TableRowGroup))
       #10 /html/wordpress/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(194): Dompdf\Renderer->render(Object(Dompdf\FrameDecorator\Table))
       #11 /html/wordpress/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameReflower/Page.php(148): Dompdf\Renderer->render(Object(Dompdf\FrameDecorator\Block))
       #12 /html/wordpress/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(895): Dompdf\FrameReflower\Page->reflow(NULL)
       #13 /html/wordpress/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Dompdf.php(847): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow()
       #14 /html/wordpress/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-pdf-maker.php(53): Dompdf\Dompdf->render()
       #15 /html/wordpress/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(616): WPO\WC\PDF_Invoices\PDF_Maker->output()
       #16 /html/wordpress/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(651): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf()
       #17 /html/wordpress/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(337): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf('inline')
       #18 /html/wordpress/wp-includes/class-wp-hook.php(288): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax('')
       #19 /html/wordpress/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters('', Array)
       #20 /html/wordpress/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
       #21 /html/wordpress/wp-admin/admin-ajax.php(175): do_action('wp_ajax_generat...')
       #22 {main}
       ```
   
 * **Screenshot:** [http://prntscr.com/q24jtn](http://prntscr.com/q24jtn)
    **System
   Configuration:** [http://prntscr.com/q24jeq](http://prntscr.com/q24jeq)
    -  This topic was modified 6 years, 6 months ago by [James Huff](https://wordpress.org/support/users/macmanx/).
    -  This topic was modified 6 years, 2 months ago by [Yui](https://wordpress.org/support/users/fierevere/).
      Reason: please use CODE button for code formatting

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-nodecodedelegateforthisimageformat/#post-12175795)
 * This appears to be an issue with the version of ImageMagick installed on your
   server. Two things you could do:
    1. Contact your host and ask if there’s something you can do to enable PNG support
       in ImageMagick on your server
    2. Use JPG instead – much faster to process and better suited for PDF, but first
       and foremost it doesn’t require ImageMagick
 * Hope that helps!
 *  Thread Starter [Akhtarujjaman Shuvo](https://wordpress.org/support/users/mdshuvo/)
 * (@mdshuvo)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-nodecodedelegateforthisimageformat/#post-12175851)
 * It workes. Great thanks.
 *  [ichars](https://wordpress.org/support/users/ichars/)
 * (@ichars)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-nodecodedelegateforthisimageformat/#post-12513378)
 * I am facing a similar issue and am posting on this thread instead of creating
   a new one because I have a question regarding the solution mentioned.
 * [@pomegranate](https://wordpress.org/support/users/pomegranate/) Do I need to
   ask the hosting provider to use jpeg or is that something I can select in the
   plugin. I looked at the various options in the plugin but haven’t found where
   to select jpeg.
 * Kindly suggest
 *  Thread Starter [Akhtarujjaman Shuvo](https://wordpress.org/support/users/mdshuvo/)
 * (@mdshuvo)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-nodecodedelegateforthisimageformat/#post-12513394)
 * [@ichars](https://wordpress.org/support/users/ichars/) You don’t need to activate
   any option. Just upload the logo as jpeg, jpg.
    Thanks
 *  [midihead](https://wordpress.org/support/users/midihead/)
 * (@midihead)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-nodecodedelegateforthisimageformat/#post-12525558)
 * I too am having this issue. I replaced our PNG logo with a JPG version which 
   fixed the packing slips but we’re still having this issue when trying to print
   the invoices. We also cleared the server and browser caches. I have disabled 
   all other plugins except for WooCommerce and the packing slips plugin and switched
   to a default WordPress theme and the issue remains. Please help as soon as possible.
   Thank you.
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-nodecodedelegateforthisimageformat/#post-12525625)
 * The best solution to this would be to ask your host to fix it (by enabling PNG
   support in ImageMagick), but if that’s not possible then JPG can certainly work.
   Existing invoices will still use the old settings by default (normally they shouldn’t
   just change if your address/logo/company name changes), but you can override 
   this by setting the ‘Always use most current settings’ option at the bottom of
   the settings page under Documents > invoice.
 *  [ichars](https://wordpress.org/support/users/ichars/)
 * (@ichars)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-nodecodedelegateforthisimageformat/#post-12526464)
 * Thank you very much, you suggestions worked for me
 *  [thepackagency](https://wordpress.org/support/users/thepackagency/)
 * (@thepackagency)
 * [6 years ago](https://wordpress.org/support/topic/error-nodecodedelegateforthisimageformat/#post-12783804)
 * Dear Ewout,
 * We’re facing the same problem. But the problem is we have PNG support on and 
   installed the php module…
 *  [thepackagency](https://wordpress.org/support/users/thepackagency/)
 * (@thepackagency)
 * [6 years ago](https://wordpress.org/support/topic/error-nodecodedelegateforthisimageformat/#post-12783832)
 * We even get noticed that ImageMagick recognizes it as an png
 *  [thepackagency](https://wordpress.org/support/users/thepackagency/)
 * (@thepackagency)
 * [6 years ago](https://wordpress.org/support/topic/error-nodecodedelegateforthisimageformat/#post-12783845)
 * Reupload the image (as PNG) made it work…

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Error: NoDecodeDelegateForThisImageFormat’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

 * 10 replies
 * 5 participants
 * Last reply from: [thepackagency](https://wordpress.org/support/users/thepackagency/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/error-nodecodedelegateforthisimageformat/#post-12783845)
 * Status: resolved