LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-25-2010, 11:17 PM   #1
prushik
Member
 
Registered: Mar 2009
Location: Pennsylvania
Distribution: gentoo
Posts: 372

Rep: Reputation: 29
GIMP SVG export support


I am making a game with SDL currently. It is a simple 2D RPG game. I have this great idea to use static backgrounds and foregrounds. To do this I plan to create another layer that will serve as the collision mask, and cover area where the player cannot move to. I have been trying to find a good format to do this, I want something simple because I plan to write my own library to read the format, it seems that most vector graphics formats are simple enough for that, so its not a huge issue, and not all the information is necessary, for my application, since it will not be visible, no color information is needed. However, there are not that many formats available, and they all seem to be XML based (I don't care for XML), but in the end, I settled on SVG. I wanted something I could create in GIMP, if these masks are too hard to create, I may never finish this project (laziness)... However, I discovered that my version of GIMP will not save as/export to SVG format! It will open SVG, but not export to SVG. Very frustrating. So I went through all the trouble of compiling GIMP 2.7, but that still doesn't support SVG. I made sure to install all libsvg-dev headers before building GIMP 2.7.
What can I do to get GIMP to support exporting to SVG format
OR is there another SIMPLE vector graphics format that GIMP supports that I could be using?
 
Old 04-25-2010, 11:28 PM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
Look in the gimp online plugin registry.

http://registry.gimp.org/node/100
 
Old 04-26-2010, 12:26 AM   #3
prushik
Member
 
Registered: Mar 2009
Location: Pennsylvania
Distribution: gentoo
Posts: 372

Original Poster
Rep: Reputation: 29
Quote:
Originally Posted by Mr-Bisquit View Post
Look in the gimp online plugin registry.

http://registry.gimp.org/node/100
Thanks, but it didn't work for me. I may not have compiled GIMP with python support, would that be a problem?
Anyway, I decided to go with Inkscape instead. I can import my raster graphics into Inkscape and then trace over them, which is exactly what I wanted. and the SVG files it creates are nice and easy to read.
Just can't figure out why so many formats use XML, XML is meant to be human readable, but vector graphics files aren't, so why not use something more efficient? I'll probably write a simple program to convert SVG into something more computer readable, that will serve as some basic encryption as well (not that its important).
 
Old 04-26-2010, 12:38 AM   #4
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
Yes. You could try rebuilding on a vm just to see the results.
 
Old 04-26-2010, 01:28 AM   #5
prushik
Member
 
Registered: Mar 2009
Location: Pennsylvania
Distribution: gentoo
Posts: 372

Original Poster
Rep: Reputation: 29
Quote:
Originally Posted by Mr-Bisquit View Post
Yes. You could try rebuilding on a vm just to see the results.
Built gimp again with python support. Got that extension working, but it isn't what I want. GIMP actually makes SVGs by default, you just have to open the paths dialog box and right click and say export. By default GIMP only exports paths, with the extension it exports strokes and fills and other stuff I don't need, so I would be better off without that script. That being said, either way, Inkscape is the better solution. Inkscape builds much nicer looking SVGs in the end, with nice coordinates in pixels, GIMP gives coordinates in inches, which isn't great for games. Plus Inkscape actually made a smaller file, as long as I export it as a plain SVG and not an Inkscape SVG.
 
1 members found this post helpful.
Old 04-26-2010, 01:56 AM   #6
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
Good to see you found a solution. I hope your project is successful.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: SVG Web: Google Brings SVG Support to Internet Explorer LXer Syndicated Linux News 0 08-25-2009 04:12 PM
LXer: Gimp Paint Studio [Gimp Optimized for Drawing and Painting] LXer Syndicated Linux News 0 05-04-2009 01:30 PM
printing on HP PhotoSmart from Gimp 2.2, gimp-print drivers needed? pearman Debian 2 08-05-2005 04:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration