$wgUseImageResize is set to true, which means dynamic server-side image resizing of thumbnails should be enabled. As far as I can tell, everything *should* be setup for image-resizing/ thumbnail-generation. Brion, you're describing what is currently happening -- the server sends the url of the "thumbnail" (which is really the url of the original image), and then the browser is scaling it to fit. I'd rather not send 1Mb files across the wire when I can send a 10Kb thumbnail. I'll keep working on it, thanks for the help gurus.
Btw, here's Special:Vesion: MediaWiki 1.18.2 (r19114) PHP 5.3.3 (apache2handler) MySQL 5.0.77 Linux 2.6.18-274.17.1.el5 -Daniel -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Brion Vibber Sent: Wednesday, March 28, 2012 1:37 PM To: Wikimedia developers Subject: Re: [Wikitech-l] Creating a thumbnail with File::createThumb() On Wed, Mar 28, 2012 at 10:33 AM, Daniel Renfro <[email protected]>wrote: > $img = wfLocalFile( $title ); > $params = array( > 'width' => 100, > 'height' => 100, > ); > $thumb = $img->transform( $params ); > > // dump some output to test things > var_dump( > $img->createThumb( 100 ), # /w/images/a/a9/Example.jpg > $thumb->getUrl(), # > /w/images/a/a9/Example.jpg > $thumb->getPath() # > /home/wiki/wiki/images/a/a9/Example.jpg > ); > By any chance do you not have image scaling enabled? It might well be giving you the original image and scaling client-side. -- brion _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
