Hi Bernhard,

I believe bawolff's explanations to use the "thumb.php" (plus the 404 handler) 
as an entrypoint is probably the best approach. If you still need for some 
reason those files to be always available on the disk, it should be easy to 
write a maintenance script that runs over all the files in your repo and 
creates the desired thumb sizes. It can be done with MediaWiki framework 
functions (`wfFindFile($title)->createThumb( $width, $height )`). This could 
also be done within the "UploadComplete" [1] hook.


[1] https://www.mediawiki.org/wiki/Manual:Hooks/UploadComplete


--

Robert


________________________________
Von: MediaWiki-l <[email protected]> im Auftrag von 
Krabina Bernhard <[email protected]>
Gesendet: Freitag, 28. Juli 2017 11:18
An: [email protected]
Betreff: [MediaWiki-l] Image thumbnailing in MediaWiki

Dear MediaWiki experts,

I cannot really figure out the behaviour of MediaWiki regarding thumbnailing. 
What I want to achieve is that my MediaWiki installation produces thumbnails in 
a specified size.

What I did after reading through several help pages is this:
---------------------------
# Images und Thumbnails
$wgThumbLimits = array( 80, 250, 390 );
$wgDefaultUserOptions['thumbsize'] = 1; // thumb size 250

$wgImageLimits = array( array( 80, 90 ), array( 800, 600 ), array( 1280, 1024 ) 
);
$wgDefaultUserOptions['imagesize'] = 2; // image size 800, 600
---------------------------

In my opinion this should guarantee that for every image uploaded, there is an 
80, 250 and 390px sized thumbnail. In many cases this is true, but there are 
some cases were I can find a 100px thumbnail, but no 80px thumbnail.

If I understand it correctly, this can perfectly be the case if any user sets 
his/her preference to 100px. I don't mind so much extra sizes to be produced, 
but I want to make sure that a 80px thumbnail is there.

Maybe in the cases where it is not present the images were uploaded before the 
above mentioned setting was made? But how can I get the wiki to redo thumbnails 
in my desired size?

cheers,
Bernhard

_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l Mailing List - 
Wikimedia<https://lists.wikimedia.org/mailman/listinfo/mediawiki-l>
lists.wikimedia.org
MediaWiki-l MediaWiki announcements and site admin list. This is a multilingual 
list for help/support with running/configuring MediaWiki. It is intended for 
people ...


_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to