Fixing Gift Card Images Missing in Emails

How to fix a gift card image not showing in the email?

There are a number of reasons for gift card images not showing in the email. To resolve this issue, kindly try the solutions below.

1. Please, note that for correct sending of images via emails, the module requires installation of the Imagick module on the server as well as dompdf library. Therefore, as the first step, make sure that Imagick module and dompdf library are installed. You may install the extensions via composer with the following commands:

composer require dompdf/dompdf
sudo apt-get install php-imagick

2. If the modules required are already installed, then, please, try to adjust the /etc/ImageMagick-6/policy.xml file by adding the following line: <policy domain="coder" rights="read|write" pattern="PDF" /> - to the end of the file. The final code should look as follows: 

.....
<policy domain="coder" rights="none" pattern="XPS" />
<policy domain="coder" rights="read|write" pattern="PDF" />
</policymap>


      • Related Articles

      • Gift Card API

        We have created public API collections for Gift Card module and its Gift Card Account submodule with all available queries and sample data that you can both test via our demo endpoints and copy to run local tests in your Magento environment. More ...
      • When creating a new gift card, I can't save it. How to fix it?

        During the module installation, the extension creates attributes that are necessary for the correct operation of the module. If the gift card attributes were not created or were deleted, you may receive the error "The attribute with a ...
      • Troubleshooting Gift Card Email Delivery Issues After Order Creation

        If gift card emails are not being sent after an order is created on your Magento site, the issue may be related to the execution of Magento consumers. Check the following points: 1. Check if the consumers_run cron job is executing in Magento. Magento ...
      • How does printed card work in the Gift Card extension?

        By default, the Gift Card extension offers administrators the flexibility to choose the type of gift card during its creation: virtual, printed (physical), or combined. A virtual gift card functions as an email-sent code, resembling the format of ...
      • Gift Card | GraphQL methods

        Queries amGiftCardAccount(input: AmGiftCardAccountInput!) description: get gift card account information by code amGiftCardSetting description: get gift card module settings amGiftCardPreview(input: AmGiftCardPreviewInput) description: get rendered ...