SVGSlice, my little python program to slice up images for webpages, has come a long way in the last two days. It now has two different parsing engines: one for simple grid-like slicing, and one for slicing specially defined rectangles on a specific slices layer in the drawing. I’ve also built-in image loading and modifying, so it doesn’t depend on an extra program any more, and should be more reliable too.

XHTML page generation is supported too, although that’s just started and not useful yet. It has a lot of potential though, especially with the layer based engine and Inkscape’s ability to add arbitrary details to the rectangles. It already takes attribs from the rectangle to know what filenames to save slices as, but in future, people will be able to add attribs to their rectangles that specify output format (JPG, PNG, etc.) and compression, and probably some other things like solid colour areas with no image. If I can make it smart enough to analyse the rectangle’s positions and generate good XHTML for them, it could be a very powerful tool :)

Anyway, it’s useful enough already, so I’m gonna release it soonish, and hope some other folks take enough interest to start adding features too :)

Saw Constantine tonight. It’s pretty cool: different enough to be interesting. But not very interesting. Speaking of movies, a headline is scrolling across my screen to the effect that Joss Whedon is going to do a Wonder Woman movie. Eeek. To paraphrase Alice Cooper, he used to be cool, but that’s just insane :) Still waiting to see the Firefly movie though :D

Anyways. Sleep.

Tags: , , ,

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">