Skip to content

SVG and ICO image not supported in setImageValue #2795

Open
@anandmainali5

Description

@anandmainali5

Describe the bug and add attachments

Cannot add SVG or ICO image to docx with setImageValue.. For other extentions it works fine.

Expected behavior

It should support all the image extentions.

Steps to reproduce

$templateProcessor = new DocxTemplateProcessor($storagePath);

$templateProcessor->setImageValue('Organization Logo', [
                'path' => $imageUrl,
                'height' => 250,
                'width' => 250,
            ]);

PHPWord version(s) where the bug happened

^1.3

PHP version(s) where the bug happened

^8.2

Priority

  • I want to crowdfund the bug fix (with @algora-io) and fund a community developer.
  • I want to pay the bug fix and fund a maintainer for that. (Contact @Progi1984)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions