Bug 402232 - wrong svg aspect ratio/width+height
Summary: wrong svg aspect ratio/width+height
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: Layers/Vector (show other bugs)
Version: 4.1.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-17 10:25 UTC by Mikel Pérez
Modified: 2024-01-11 08:12 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
test svg (829 bytes, image/svg+xml)
2018-12-17 10:25 UTC, Mikel Pérez
Details
(Image example) (82.61 KB, image/png)
2018-12-17 11:06 UTC, mvowada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikel Pérez 2018-12-17 10:25:22 UTC
Created attachment 116960 [details]
test svg

SUMMARY
svg displayed in the wrong aspect ratio/wrong size

STEPS TO REPRODUCE
1. open attached svg in krita.

OBSERVED RESULT
it's not square, it's wide

EXPECTED RESULT
proper aspect ratio

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 29
KDE Plasma Version: 5.14.4
KDE Frameworks Version: 5.52.0
Qt Version: 5.11.1

ADDITIONAL INFORMATION
inkscape opens it fine
Comment 1 mvowada 2018-12-17 11:06:23 UTC
Created attachment 116961 [details]
(Image example)

Hi. I can confirm that it is squashed when opened in Krita 4.2.0-pre-alpha (git 95b09ea) - Ubuntu 14.04, while it displays correctly in Inkscape 0.92.3.
Comment 2 mvowada 2018-12-17 11:06:48 UTC
Confirming
Comment 3 Mikel Pérez 2019-09-15 20:00:17 UTC
on 4.26 (git 714a51b) from the org.kde.krita-stable flatpak as of today,

the test case is correctly 1:1 but always imported as 15x15 pixels irrelevant of the PPI specified when opening it
Comment 4 Tiar 2020-10-05 12:33:18 UTC
@Mikel did it ever work correctly? (scaling the svg depending on the dpi).
Comment 5 Mikel Pérez 2024-01-11 08:12:29 UTC
(In reply to Tiar from comment #4)
> @Mikel did it ever work correctly? (scaling the svg depending on the dpi).

sorry for the late reply, but I don't remember having scaled it to 666 x 555 when I opened while krita still had the aspect ratio bug but then I don't remember what PPI I used back then nor if that PPI window even showed up...
The PPI bug still exists but I guess it should be filled as another bug. Closing this one.