[MGNLDAM-1114] SVG Dimensions Created: 16/Feb/23 Updated: 16/Oct/23 |
|
| Status: | Open |
| Project: | Magnolia DAM Module |
| Component/s: | DAM JCR Provider |
| Affects Version/s: | 3.0.20 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Richard Gange | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | svg | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| Template: | |||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||||||
| Date of First Response: | |||||||||||||||||
| Visible to: |
Alex Plouff
|
||||||||||||||||
| Epic Link: | AuthorX Support | ||||||||||||||||
| Team: | |||||||||||||||||
| Description |
|
Since SVG images are a bit different (XML encoded) we cannot get the dimensions using org.devlib.schmidt.imageinfo.ImageInfo as we do when uploading to the dam using JcrAssetUploadAction. If you go to our demo and look at any of the SVG images you will see they are missing dimensions. For example /svg-icons/tour-types/offpath.svg. In the export the height and width are both 0 value. SVG images have the dimensions written to the XML <?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 113.4 113.4" enable-background="new 0 0 113.4 113.4" xml:space="preserve"> <path fill="#FFFFFF" d="M65.3,71H45.5c-1,0-1.9-1.3-1.9-2.3s1.3-1.4,2.2-3.8h19.5c1.1,2.4,1.9,3.2,1.9,4.2S66.4,71,65.3,71z"/> ... ... ... <polygon fill="#FFFFFF" points="31.7,74.8 29.3,49.9 47.1,50.3 44.3,74.5 "/> <polygon fill="#FFFFFF" points="65.6,74.8 63.2,49.9 81,50.3 78.2,74.5 "/> <rect x="45.8" y="57.3" fill="#FFFFFF" width="21.8" height="3.8"/> </svg> Notes |
| Comments |
| Comment by Roberto Gaona [ 16/Oct/23 ] |
|
There's to note that this issue seems to also affect WEBP format images according to multiple client reports. |