| Author |
Message |
|
|
Post subject: apt2svg ourea competition entry
Posted: Jul 30, 2008 - 03:42 PM
|
|
Joined: Nov 28, 2006
Posts: 111
Status: Offline
|
|
Sometimes you just have to have fun, and seeing as though I've been learning a bit of svg for a xhtml+svg+js project I decided to try and write a little program to create an entry for the sidux wallpaper competition.
The above was created by painting a fairly transparent debian swirl for each package in a supplied set of deb package lists, positioned by name and coloured by version number and finally overlaying the sidux logo.
The source tar.gz includes:
the package lists used (in this case the current i386 sidux packages)
svg2apt2 perl program which generates the svg from a set of package lists
a trivial sidux.sh script which creates the svg and uses convert to render a jpg
I also included the svg and jpg in the release folder, if you open the svg in inkscape you can see the "page" is only perhaps 20% of the full image.
The bad news is I'm pretty sure I'll manage to create an entry2 (or more) before the deadline  |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 11, 2008 - 02:23 PM
|
|
Joined: Nov 28, 2006
Posts: 111
Status: Offline
|
|
Taking on board a few bits of input from various people the above second entry was born last night. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 11, 2008 - 03:00 PM
|
|

Joined: Mar 16, 2008
Posts: 94
Status: Offline
|
|
| I like it. Do you mind if I make some variations of it myself? |
_________________ -debian sid live cd with installer-
aptitude install live-helper
lh_config -d sid -a i386 --debian-installer=enabled && lh_build
DEBIAN INFO!
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 11, 2008 - 03:42 PM
|
|
Team Member

Joined: Nov 24, 2006
Posts: 2864
Location: berlin
Status: Offline
|
|
the wallpaper comp is closed, but, as it is free as bfree, go ahead and share it
greetz
devil |
_________________ >>we are sidux - resistance is futile - you will be assimilated<<
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 11, 2008 - 08:58 PM
|
|
Joined: Nov 28, 2006
Posts: 111
Status: Offline
|
|
|
MeanDean wrote:
I like it. Do you mind if I make some variations of it myself?
gpl v2 or later means you can feel free, as long as you distribute the preferred source's with any binaries .
Note it's easy to just change the colour scheme's by playing with a couple of lines in the perl. I will warn you though that inkscape and iceweasel at least don't like trying to open the svg you can create by feeding a full set of debian package lists to the program! Entry2 was created by only using sidux amd64 packages to make it a little less cluttered.
I will also apologise that the quality of the code is appalling ... but I don't really care! |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 11, 2008 - 09:15 PM
|
|

Joined: Mar 16, 2008
Posts: 94
Status: Offline
|
|
Just playing with the jpegs. I am not a svg sort of guy, unless it is importing the svg into the gimp. Didn't want to step on any toes regardless of the license. It would make a awesome debian wallpaper...maybe I will have to dig into the svg afterall.
a few color variations are available HERE
here is a thumbnail of one of them
 |
_________________ -debian sid live cd with installer-
aptitude install live-helper
lh_config -d sid -a i386 --debian-installer=enabled && lh_build
DEBIAN INFO!
Last edited by MeanDean on Aug 11, 2008 - 10:08 PM; edited 2 times in total
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 11, 2008 - 09:47 PM
|
|
Joined: Nov 28, 2006
Posts: 111
Status: Offline
|
|
The source is more perl then svg really and it is probably easier to work with the perl then the svg for most things! Just be warned to ignore the sidux.inkscape.svg file in the source .tar.gz ... it's an old temporary file and shouldn't be in there.
Only looking at the jpg also means you only actually see the section of the image I happened to crop around, there's a lot more (generally less dense) space there. You could drop the background layer from the svg, render to a png (with it's transparency information the jpeg doesn't store) and use that with the kde desktop compositing options so the image is a texture for whatever background you want. Or just import that png into the editor/compositor of your choice to render a new jpeg.
Obviously for a debian wallpaper it would need to drop the sidux logo which means touching the perl or svg, it would also make sense though to generate a new image using a set of debian packages as the inputs (rather then sidux packages) which will lead to a different image! |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 11, 2008 - 10:09 PM
|
|

Joined: Mar 16, 2008
Posts: 94
Status: Offline
|
|
you lost me right after the word The
 |
_________________ -debian sid live cd with installer-
aptitude install live-helper
lh_config -d sid -a i386 --debian-installer=enabled && lh_build
DEBIAN INFO!
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 12, 2008 - 11:28 AM
|
|
Joined: Dec 02, 2006
Posts: 1703
Location: Germany / NRW
Status: Offline
|
|
|
|
|
 |
|
|
Post subject:
Posted: Aug 12, 2008 - 01:01 PM
|
|

Joined: Mar 16, 2008
Posts: 94
Status: Offline
|
|
|
michaa wrote:
great! But it's a *.jpg. Is it possible to d/l it as *.svg ?
probably not..... Can I ask why everyone is so hung up on svg?
I will see what I can do but the last few times I have tried I ended up with either a crappy conversion or even worse.
edit - I can embed it into a svg file, not sure that would provide any benefit though. |
_________________ -debian sid live cd with installer-
aptitude install live-helper
lh_config -d sid -a i386 --debian-installer=enabled && lh_build
DEBIAN INFO!
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 13, 2008 - 12:52 AM
|
|

Joined: Nov 27, 2006
Posts: 524
Location: Griffith NSW Australia
Status: Offline
|
|
|
MeanDean wrote:
michaa wrote:
great! But it's a *.jpg. Is it possible to d/l it as *.svg ?
probably not..... Can I ask why everyone is so hung up on svg?
it's infinitely scalable
most dms use it or will use it for their icons/decorations - especially kde4 (all that prettiness is svg)
it's a text based format == excellent for use with version control systems, specifically subversion which sidux devs use
as such, it provides true "sources"
it's easily scripted into source packaging
Quote:
I will see what I can do but the last few times I have tried I ended up with either a crappy conversion or even worse.
edit - I can embed it into a svg file, not sure that would provide any benefit though.
it would not provide any benefit |
|
|
| |
|
|
|
 |
|
|