-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SVGs do not support file:// scheme on mac #1485
Comments
Hello, did you see the librsvg docs?
https://developer.gnome.org/rsvg/2.45/rsvg-RsvgHandle.html#id-1.2.4.5.4 The The librsvg internals use g_file_get_uri to calculate the current directory of the SVG file. That logic will differ slightly between platforms, so perhaps it's producing |
Hi there - I did, I actually read through all the relevant source in librsvg and libvips. The only reason I have a tests without a scheme and with relative paths is because that’s how they’re done in the test suite on librsvg; likewise the reason I use the I think your insight around If I get a chance today, I’ll see if I can get a debug build for Mac running so I can print out the fully normalized paths being compared. |
@mike-marcacci Were you able to make any progress with this? |
Hi @lovell, sadly I ran out of time (and will probably be fully preoccupied for the next several weeks). With this only broken on Mac, it’s taken a backseat to some other projects. I do still hope to get around to diving back into this, though, since our development is done primarily on Mac. |
Please feel free to re-open this issue with more details if/when they become available. |
It appears that the precompiled binaries for mac don't include the ability for SVGs to reference local files. Here is a simple test which fails to draw the red circle on darwin, but succeeds on linux-x64.
run.sh
will run the testsrun-in-docker.sh
will run them on linux in dockerNote that the "absolute path" tests assume the directory is at
/workspace
.test.zip
The text was updated successfully, but these errors were encountered: