SVG source images get goofed up when combined
I often use Inkscape to build network diagrams. I've collected a number of SVG images (mostly from Tango Icons) which I use as objects in those diagrams. On my Ubuntu Hardy box today I discovered that once I get a number of objects into a document, if I import a single new object, the colors on it get all messed up upon import. This never happened before. Opening the object alone, or importing it into a new document works fine. Have any of you seen this behavior in .46? If so, have you figured out a work-around? Might it have something to do with the (new?) color management stuff? I chose not to attach files to the list because they are rather large, but I would be happy to send examples to anyone interested in exploring this off-list.
Is it in an area with gradients at all? sounds like an id clash between the gradients in the different files meaning the wrong ones getting referenced.
2008/7/10 Quentin Hartman <qhartman@...155...>:
I often use Inkscape to build network diagrams. I've collected a number of SVG images (mostly from Tango Icons) which I use as objects in those diagrams. On my Ubuntu Hardy box today I discovered that once I get a number of objects into a document, if I import a single new object, the colors on it get all messed up upon import. This never happened before. Opening the object alone, or importing it into a new document works fine. Have any of you seen this behavior in .46? If so, have you figured out a work-around? Might it have something to do with the (new?) color management stuff? I chose not to attach files to the list because they are rather large, but I would be happy to send examples to anyone interested in exploring this off-list.
-- -Regards-
-Quentin Hartman-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
On Thu, Jul 10, 2008 at 11:17 AM, john cliff <john.cliff@...155...> wrote:
Is it in an area with gradients at all? sounds like an id clash between the gradients in the different files meaning the wrong ones getting referenced.
That's almost certainly it. I was approaching this conclusion after doing some more troubleshooting. Any ideas for an automatable way to make sure the gradient IDs are different amongst all my source files? I'm thinking some sort of script that digs into the SVG source would be about the only good answer. A nice feature for a future version of Inkscape would be checking for and warning on collisions like that, ideally with a few options for handling them.
On Thu, 10 Jul 2008 11:29:08 -0700 "Quentin Hartman" <qhartman@...155...> wrote:
On Thu, Jul 10, 2008 at 11:17 AM, john cliff <john.cliff@...155...> wrote:
Is it in an area with gradients at all? sounds like an id clash between the gradients in the different files meaning the wrong ones getting referenced.
That's almost certainly it. I was approaching this conclusion after doing some more troubleshooting. Any ideas for an automatable way to make sure the gradient IDs are different amongst all my source files? I'm thinking some sort of script that digs into the SVG source would be about the only good answer. A nice feature for a future version of Inkscape would be checking for and warning on collisions like that, ideally with a few options for handling them.
Perhaps Inkscape should distinguish between user IDs it should not change (even if that causes problems like Quentin's seeing) and Inkscape generated IDs it's free to alter to avoid clashes.
Sometimes users are going to have IDs in a file to tag targets they want to manipulate outside Inkscape, and Inkscape shouldn't munge them.
IDs it's safe to change could be marked many ways, they could start with "i.", or end in [0-9] (which is currently the case?).
Cheers -Terry
On Thu, Jul 10, 2008 at 2:29 PM, Quentin Hartman <qhartman@...155...> wrote:
On Thu, Jul 10, 2008 at 11:17 AM, john cliff <john.cliff@...155...> wrote:
Is it in an area with gradients at all? sounds like an id clash between the gradients in the different files meaning the wrong ones getting referenced.
That's almost certainly it.
that is fixed in svn, upgrade :)
participants (4)
-
bulia byak
-
john cliff
-
Quentin Hartman
-
Terry Brown