Flickr badges in SVG?
Submitted by rob on Tue, 2006-04-25 03:34
I noticed tonight that I can't see the Flash Flickr badge in my current setup. I'm browsing in Firefox 1.5 for Linux. I know I can't get Flash 8 for Linux, but it got me thinking about how this would be a perfect application for an SVG version of the Flickr badge. If you haven't seen it all over the web, here's the Flickr page for making a badge in either HTML or Flash, and here's the one I can't see at Windsor Photo Meetup.
There's a very detailed post on Damian Cugley’s web site that seems to describe pretty much all the necessary pieces to do it in SVG, and if nobody's beaten me to it, I'll try to get Damian's stuff working on my PHP-based server.
Anyone wanna race?
Comments
Actually Damian posted those
Actually Damian posted those instructions based on an email request I made of him, I just never got around to it. Look here for a couple of suggestions in the Flickr forums themselves.
Interesting, I'd like to
Interesting, I'd like to contribute to one of the threads that search turns up but it's locked. The statement that only the slideshow and Organizr are Flash is inaccurate - I tried to rotate a couple pictures and got an empty box where the bit of Flash they use for previewing the rotation should be. I have a Windows laptop next to me so I can get around that, but otherwise I'd be peeved.
Without SVG, the rotation could be done by generating a few tiny previews server-side (it only handles 90 degree increments). I can't think of a way to handle it client-side without SVG though.
So start a new thread at the
So start a new thread at the Flickr forum and reference it. I don't think anyone has brought up the Linux problem yet...
I haven't mentioned it in
I haven't mentioned it in the Flickr forums yet - people seem to consider the fact that Flash is everywhere to be good enough.
I have done some research on the APIs that Flickr exposes. There's information published and a nice test harness for REST calls. I got an API key immediately when I applied. I'd rather write a plugin that doesn't rely on the site having an API key, but I'm not sure what's "more correct".
I'll probably go back to the code Damian published, but the Flickr API seems quite interesting and I'd guess the format of the results should be more predictable.
Oh, the other thing I meant
Oh, the other thing I meant to mention is that Flickr publishes the format of their RSS feeds, so they don't have to be reverse engineered. The parameters aren't flexible enough for exactly what I want though.
What are you trying to do
What are you trying to do exactly?
Well, my original goal (from
Well, my original goal (from the OP) was
I'll try to get Damian's stuff working on my PHP-based server.
As Damian mentions at the end of his post:
If neither of the above apply to you, then you probably do not want to be running out to install xsltproc and GNU make just to make a Flickr badge—especially as Flickr supply a perfectly fine badge based on Macromedia Flash that requires no programming effort on your part at all.
I can't see the Flash badge from my Linux machine, so I'd like to have something mildly animated that uses SVG rather than Flash. On the server side I'd rather use PHP since that's what I'm used to for server-side programming.
I was going to just convert the python and make parts of his arrangement to PHP, but I decided to also convert his XSLT to work directly in PHP for simplicity.
At the moment I've got something that works in Opera 9 Beta but so far it's still not there for Firefox or IE+ASV. When it at least shows up on all three browsers I'll post an update here.
Post new comment