smiffy has asked for the wisdom of the Perl Monks concerning the following question:
I have an application that generates a tag cloud with XHTML+CSS. This is all fine and dandy but I now need to be able to render this same tag cloud as an image.
At a pinch, I could probably render the cloud in SVG+CSS and then find a utility to convert this to JPEG, but would this be making unnecessary work for myself? Are there better methods?
The one thing I want to avoid is having to start creating graphics from first principles - I'm looking for quick'n'easy here, so any suggestions would be appreciated!
Many thanks to those who have responded to this post. It appears to me that SVG is the way to start and Inkscape may be the way to continue. The main thing is to get the SVG part sorted - that's the bulk of the work for me. Then it's a case of testing various conversions from SVG to PNG, or whatever. (Thanks for the tip to avoid JPEG. I'll still use JPEG as an optional end-product because I'll be stuffing it with EXIF metadata which can be viewed when posted to Flickr.)
Unfortunately, tools like GtkMozEmbed are out of the question for web apps due to the server load. As it is, I will probably put the SVG->PNG rendering into a queue to even load rather than displaying it instantly.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Path of least resistance to JPEGs
by Corion (Patriarch) on Feb 11, 2009 at 07:24 UTC | |
|
Re: Path of least resistance to JPEGs
by bart (Canon) on Feb 11, 2009 at 09:34 UTC | |
by moritz (Cardinal) on Feb 11, 2009 at 09:41 UTC | |
by bart (Canon) on Feb 11, 2009 at 10:19 UTC | |
by moritz (Cardinal) on Feb 11, 2009 at 10:34 UTC | |
by JavaFan (Canon) on Feb 11, 2009 at 11:23 UTC | |
|
Re: Path of least resistance to JPEGs
by gwadej (Chaplain) on Feb 11, 2009 at 13:23 UTC | |
|
Re: Path of least resistance to JPEGs
by ruoso (Curate) on Feb 11, 2009 at 15:17 UTC | |
|
Re: Path of least resistance to JPEGs
by doom (Deacon) on Feb 11, 2009 at 21:38 UTC |