Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

SVG and ICO image not supported in setImageValue #2795

Open
Labels
@anandmainali5

Description

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

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /