Skip to content

Commit

Permalink
Drop WebP and PictureHtmlSupport
Browse files Browse the repository at this point in the history
They are being replaced by Thumbro
  • Loading branch information
alistair3149 committed Dec 3, 2024
1 parent ae9564d commit a1977b1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ RUN set -eux; \
mv /var/www/mediawiki/extensions/Twocolconflict /var/www/mediawiki/extensions/TwoColConflict; \
mv /var/www/mediawiki/extensions/Pageviewinfo /var/www/mediawiki/extensions/PageViewInfo; \
\
cp /var/www/mediawiki/extensions/PictureHtmlSupport/includes/ThumbnailImage.php /var/www/mediawiki/includes/media/ThumbnailImage.php; \
chown -R www-data:www-data /var/www

CMD ["php-fpm"]
2 changes: 0 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@
"mediawiki/semantic-drilldown": "1.39.0",
"starcitizenwiki/apiunto": "dev-develop",
"mediawiki/pageviewinfo": "1.39.0",
"octfx/webp": "dev-develop",
"starcitizenwiki/picture-html-support": "dev-master",
"starcitizentools/citizen-skin": "dev-main",
"starcitizentools/floating-ui": "dev-main",
"starcitizentools/short-description": "dev-main",
Expand Down
17 changes: 0 additions & 17 deletions config/LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@
$wgMaxImageArea = 6.4e7;
$wgUseImageMagick = true;
// Stream and serve thumbnails with thumb.php
// Disabled due to incompatibility with Extension:WebP
// $wgGenerateThumbnailOnParse = false;
// $wgThumbnailScriptPath = "$wgScriptPath/thumb.php";

Expand All @@ -338,8 +337,6 @@
/**
* Standardize thumbnail sizes
* MediaWiki thumbnailing is all over the place (T360589)
* Since thumbnailing is quite performance-heavy especially
* when we use Extension:WebP, we need to defragment the image sizes
*
* TODO: Wait on https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1084920
* TODO: Set wgMediaViewerThumbnailBucketSizes once we move to MW 1.43
Expand Down Expand Up @@ -578,7 +575,6 @@
'PageImages',
// 'PageViewInfo', // Disabled with Extension:Plausible
'ParserFunctions',
'PictureHtmlSupport',
// 'Plausible', // Disabled to allocate more resources to MW
'Popups',
'RelatedArticles',
Expand Down Expand Up @@ -607,7 +603,6 @@
'UploadWizard',
'Variables',
'VisualEditor',
'WebP',
'WebAuthn',
'WikiEditor',
'WikiSEO',
Expand Down Expand Up @@ -1127,18 +1122,6 @@
// It is enabled by default, no need to add it to preferences
$wgPrefs[] = 'visualeditor-enable';

/**
* Extension:WebP
*
* @see https://github.com/octfx/mediawiki-extension-WebP
*/
// $wgEnabledTransformers = [
// 'MediaWiki\\Extension\\WebP\\Transformer\\WebPTransformer',
// 'MediaWiki\\Extension\\WebP\\Transformer\\AvifTransformer',
// ];
$wgWebPCompressionQuality = 95;
$wgWebPEnableResponsiveVersionJobs = true;

/**
* Extension:WikiEditor
*
Expand Down

0 comments on commit a1977b1

Please sign in to comment.