Thanks for your help. A checklist:
- Yes, GD2 is working. phpinfo() says its there and on another virtual
server I see its working to generate thumbnails (using my own code not
- Yes, I was just typing the URL of the image as a last resort
- Yes, I've tried action=purge . No effect
Thanks for explaining the generation process though. I'll see where in
that process things are going wrong.
Rowan Collins wrote:
On 29/07/05, Jake Gordon
>I presume normally they're created on the fly when a thumbnail doesn't
>already exist? In which case, the 404 page should instead by handled by
>mediawiki to create the thumbnail, no? Well, this isn't happening.
Well, that's not quite how it works - you would never normally be
trying to view the thumbnail on its own, so any 404 error would
generally just cause a "broken image" graphic in your browser, not a
textual 404 page. And the thumbnails aren't generated on request to
the *graphic*, but on rendering the *page* - when the parsing code
(makeImageLinkObj() in Linker.php) comes across the syntax for a
resized image, it calls a function in Image.php, which uses either GD
or ImageMagick (depending on configuration) to create an appropriate
thumbnail, unless one is already there from another request. The HTML
output is then simply generated to reference the newly-created
[Oh, I've just remembered, description pages use thumbnails too now,
don't they; still, the steps must be similar]
I imagine you only went directly to the URL as a last resort, but
since I'm not sure what you're doing wrong, I thought I'd give a quick
run-down of how things work, in case it helps with debugging. Note
that whenever you change a config option, it's a good idea to use
"?action=purge" or a page preview to make sure nothing's being
recalled from internal caches.
But I should think the first thing to check is that ImageMagick and/or
GD are actually set up correctly, and can be used from within PHP.
MediaWiki-l mailing list