SVG Images do not resize in the preview the same way other images do.
Nobody has claimed this yet.
- 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
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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