more useful options | |
PerlMonks |
Path of least resistance to JPEGsby smiffy (Pilgrim) |
on Feb 11, 2009 at 07:15 UTC ( [id://742995]=perlquestion: print w/replies, xml ) | Need Help?? |
smiffy has asked for the wisdom of the Perl Monks concerning the following question: The QuestionsI 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! The ConclusionsMany 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.
Back to
Seekers of Perl Wisdom
|
|