dotCMS / dotCMS/core

SVG Images do not resize in the preview the same way other images do.

Open
#32,428 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

OKR : Customer Support Team : Falcon Type : Defect
Dominant language
Java
Stars
970
Forks
486
Avg merge
3d 33m
Merged PRs (30d)
170

Description

Problem Statement

When uploading SVG image files to a contentlet, the preview uses what looks like the images exact dimensions instead of resizing it down like other image files, this causes the contentlet edit screen to be more cumbersome to use.

Steps to Reproduce

Aquire a large SVG image File, I have attached one to this ticket.

Using the demo starter or demo site, edit an "Activity" contentlet.
Upload the SVG Image File and then select it.

https://github.com/user-attachments/assets/325d1413-5ed1-48a2-aca3-80bcb78bee1b

Image

Acceptance Criteria

Have SVG Images resize the same way as other image types.

dotCMS Version

25.01.28
24.12.27 LTS
25.06.12-1

Proposed Objective

Customer Support

Proposed Priority

Priority 3 - Average

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

https://helpdesk.dotcms.com/a/tickets/31632

Assumptions & Initiation Needs

No response

Quality Assurance Notes & Workarounds

No response

Sub-Tasks & Estimates

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the demo starter or demo site by editing an Activity contentlet and selecting a large SVG upload. Compare its preview behavior with other image types; done means SVG images resize in the contentlet edit screen the same way as other images.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.