Hi Krinkle,
thanks for working on the script, I hope you'll keep helping out :-)
The reason I'm not using the direct thumb.php route is that it only
accepts thumbnail width, not height. So, an image that is, say,
300x900, will be thumbnailed as 120x360, which is not really pretty in
a row 120px high. The API call allows me to specify both maximum width
and height, thus guaranteeing the thumbnail to fit into the row
height. I guess the API call is a small price to pay.
Cheers,
Magnus
On Mon, May 17, 2010 at 1:42 AM, Krinkle <krinklemail(a)gmail.com> wrote:
Hi Magnus,
I've checked it out with Web Inspector in Safari (ala Firebug in
Firefox) and noticed it tries to load in (one or more times each loop)
an "undefined" thing to url:
http://commons.wikimedia.org/wiki/
undefined . This sometimes causes a questionmark-image to appear in
the flow. Not sure what causes this.
Tho I haven't read the script fully and extensively I noticed an
additional API call is made to aquire the thumbnail paths. It could be
that you need that API-call for some other information, if that's not
the case you might be able to save that additional Ajax request by
using something like this:
http://commons.wikimedia.org/w/thumb.php?f=Example.jpg&w=100
--
Greetings,
Krinkle
Op 16 mei 2010, om 17:04 heeft Magnus Manske het volgende geschreven:
On Sun, May 16, 2010 at 4:02 PM, Magnus Manske
<magnusmanske(a)googlemail.com> wrote:
On Sun, May 16, 2010 at 2:40 AM, Gnangarra
<gnangarra(a)gmail.com>
wrote:
Does the page need any of the banners on the main
page, loosing
these would
bring all the information up the page.
Could there be a Java sript box to cycle through a few images
rather than
just one.
Hacked something:
http://commons.wikimedia.org/w/index.php?title=Main_Page&withJS=MediaWi…
Feel free to alter.
Cheers,
Magnus
Sorry, should be:
http://commons.wikimedia.org/wiki/Main_Page?withJS=MediaWiki:Main_page_thum…
_______________________________________________
Commons-l mailing list
Commons-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/commons-l
_______________________________________________
Commons-l mailing list
Commons-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/commons-l