r/GIMP•
ChoiceD

Problem with GIMP 2.10.6 Opening SVG Files

I'm getting the message "SVG file does not specify a size!" when opening an SVG file with Gimp 2.10.6. I opened the same file with Gimp 2.10.4 a few days ago and didn't get this message. Something has changed between versions 2.10.4 and 2.10.6. Gimp seems to have lost the ability to read the SVG size. Anyone else noticed this or know anything about it?

Posted Aug 28, 2018, 2:31 AM UTC

18
schumaml•

Does this happen only for this file, or all? Try files from different sources.

2
ChoiceDOP•

I've tried quite a few different files from various sources. Some are SVGs that I have previously used and had no problems with. I get the same "SVG file does not specify a size!" message and Gimp defaults to opening the image at 500x500 unless I change it. It was working fine yesterday with Gimp 2.10.4. Last night I upgraded my system and Gimp 2.10.6 was installed and today I have this problem. Gotta be the new version, but how to fix it?

1
schumaml•

What system is this?

1
ChoiceDOP•

Linux. Manjaro KDE.

1
owencook1940•

I just created an svg in Inkscape, saved it as and svg and also exported it as a png at the default size.

The svg opened correctly as did the png. They were different in sizes because the svg was an A4 document I think, the png just the object.

I can't really comment on your problem, but did you build it yourself, do you have librsvg installed cos that is what, I think, will determine the size.

2
ChoiceDOP•

No, didn't build it myself and I checked and librsvg is installed as a Gimp dependency. Here's what I'm seeing. The icon in the screen shot is 64x64. Up until the 2.10.6 upgrade that would have been the size shown by Gimp. This isn't really a big deal for square images, but for the non-square images, it's more difficult since Gimp now offers to open all SVG images at 500x500 whether they are square or not. All I can do for them is to input the native size by hand and then scale to the size I need after Gimp opens the image.

Thx for your reply.

1
owencook1940•

Look at the preamble to the svg file So does yours have the height and width info? If not, you might be looking for another question.

1
ChoiceDOP•

First two lines of the gimp icon from my previous post:

<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" 
version="1.1" viewBox="0 0 64 64">

The file seems to be ok. Don't really know how to fix this. I guess I'll wait until the next update and maybe that will take care of it. These issues are starting to stack up though. I'm still waiting for the color picker to be fixed. It hasn't worked properly since the jump from 2.8 to 2.10.

EDIT: I did just try something, but it didn't work. I deleted the configuration directory from ~/.config/GIMP so that Gimp would start with a default configuration. Same issues still persist though. I guess I'll try a complete removal and re-install next.

1
thirtysat•

Same problem lately.

1
ChoiceDOP•

I still haven't figured it out.

1
JivanP•

Also seeing this issue with GIMP 2.10.8 on macOS Mojave installed via Homebrew Cask, despite width and height attributes being set on the svg tag. This issue is not present with GIMP 2.8.

EDIT: This bug is due to a modification in librsvg, and is being tracked here: https://gitlab.gnome.org/GNOME/gimp/issues/2561

1
ChoiceDOP•

I wish it would get fixed. I still have issues with the color picker also.

1