Large SVGs dont respect the define Image size on Manage form display eg.for Taxonomy Images

EG If Thumbnail 100x100 is set the svg's will still show in original size

D9.09 PHP 7.4 Imagemagick 7x

CommentFileSizeAuthor
#2 3185492-preview_image_style-2.patch1.31 KBmrshowerman

Issue fork svg_image-3185492

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Rar9 created an issue. See original summary.

mrshowerman’s picture

Version: 8.x-1.14 » 8.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new1.31 KB

I have the same issue.
Attached patch lets the image style transform the image dimensions, similarly to what the core image module does.

mrshowerman’s picture

Version: 8.x-1.x-dev » 3.x-dev
Assigned: Unassigned » mrshowerman
Status: Needs review » Needs work

Needs re-roll against 3.x-dev

mrshowerman’s picture

Assigned: mrshowerman » Unassigned
Status: Needs work » Needs review
mably’s picture

Status: Needs review » Reviewed & tested by the community

@mrshowerman thanks for the patch!

Seems to be working fine on my side, tested on D11 PHP 8.3.

  • mably committed aaf25207 on 3.x authored by mrshowerman
    Issue #3185492 by @mrshowerman, @mably: Preview image style size not...
mably’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.