How far in advance are we generally going to display the counter?
Would it be preferrable to batch generate a file for each date in
advance, then have some server side code that includes the correct
one?
On 22/10/2007, Máirín Duffy <duffy(a)redhat.com> wrote:
Oh haha, or if you could install inkscape, you could do:
inkscape -z fedora-countdown-banner.svg
--export-png=fedora-countdown-banner.png
I'm attaching a modified version of the svg so you'd only need one font
- Isabella - the rest of the fonts are converted to paths. Isabella is
available here and is LGPL-licensed:
http://www.thibault.org/fonts/isabella/
So here is how this could work, sanity checks welcome:
- need a script to:
- call counter.py with the correct value, incrementing that value
every time it's called
- regenerate the svg
- run the inkscape command above to export the svg to png
- need a cron script to call the above at say every night at midnight.
- need counter.py and the attached updated svg
- need to install the Isabella font
If the png is saved out to a directory accessible to the web then anyone
wanting to display the counter could simply use that image.
Makes sense? Is this do-able?
~m