Whilst upgrading my TWiki installation from 4.1.2 to 4.2.0, and thus all my Plugins, I discovered that
ImagePlugin no longer produces smaller images for thumbnails.
Upgrading my existing 4.1.2 with the new version produced the same result: thumbnails are no longer thumb sized. (Alas, when I upgraded, I also overwrote my copy of the original, and can be no longer sure what version i had that worked... duh! From memory, it was the version that listed changes at the 18 Dec 2006, but not 03 Jan 2008.)
Having checked the code whilst trying to set a default, I also note that the documentation refers to a variable
IMGPLUGIN_THUMBNAIL
, but the code seems to be trying to find
THUMBNAIL_SIZE
. (Needless to say, when it doesn't find it overridden, the default of 180 is not applied either.)
--
TWiki:Main/ScottClaridge - 13 Mar 2008
Possible Fix: There seems to be a bug in version 1.0 of
ImagePlugin/Core.pm as described. If you remove the following line (line 431) in the parseWikipediaParams sub, it seems to work:
return unless $argStr =~ /\|/g
At the bottom of the sub, it calculates the size of the thumbnail which is skipped if the above line is not removed. I'm not sure what else it breaks - someone else might like to investigate further
--
TWiki:Main.BrettSchlock - 13 May 2008
I moved up validating the
type
argument in the calling function.
--
TWiki:Main.MichaelDaum - 03 Jul 2008