skagedal / svgclip

Clip SVG files to the size of actual drawing. Uses Inkscape to get bounding box.
46 stars 10 forks source link

Updates script to work now that python-rsvg doesn't seem to exist as a stand-alone package #2

Closed bluesalt-labs closed 4 years ago

bluesalt-labs commented 5 years ago

I was able to get this script to work after modifying it slightly and installing other python packages. I may have installed stuff I did not need to?

I apologize, I've never made a pull request before and I'm not sure if I'm going about this the right way. :)

skagedal commented 5 years ago

Hi! Thanks a lot for the pull request and sorry for the late reply :)

I would be happy to merge it and I'm sure you've done the right thing. I would only request that the changes to the README are made a little differently:

Or something like that! I could perhaps also do these edits myself, but if you'd like to it would be great. :)

ynco commented 4 years ago

To get the script to work on Ubuntu 18.04 (with the modifications from this PR) I needed to install the following packages:

apt install gir1.2-rsvg-2.0 python-gi-cairo

I found the following packages mentioned in the (updated) README to not be required however:

libcanberra-gtk-module
libcanberra-gtk3-module
librsvg2-bin