Bug 402232

Summary: wrong svg aspect ratio/width+height
Product: [Applications] krita Reporter: Mikel Pérez <io>
Component: Layers/VectorAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: freebox64, halla, sschuberth, tamtamy.tymona, wallie988
Priority: NOR    
Version First Reported In: 4.1.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: test svg
(Image example)

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.