Cscott has uploaded a new change for review.
https://gerrit.wikimedia.org/r/168170
Change subject: Force images to be 600x600 pixels maximum.
......................................................................
Force images to be 600x600 pixels maximum.
It's best to have an explicit number here, rather than relying on the
bundler's default.
Bug: 72377
Change-Id: I9b4768c37b16ca149b516a8b0c33b61d2f0f2f94
---
M defaults.js
1 file changed, 3 insertions(+), 1 deletion(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Collection/OfflineContentGenerator
refs/changes/70/168170/1
diff --git a/defaults.js b/defaults.js
index 15b41b2..8aa4f6e 100644
--- a/defaults.js
+++ b/defaults.js
@@ -42,7 +42,9 @@
*/
"max_execution_time": 0,
"bin": "../mw-ocg-bundler/bin/mw-ocg-bundler",
- "additionalArgs": ['--no-compat'],
+ // turn off some mwlib compatibility features which
bloat the bundle
+ // set a maximum image size: 150dpi * 4" wide image.
+ "additionalArgs": ['--no-compat', '--size=600'],
"parsoid_api": "http://localhost/",
"parsoid_prefix": "localhost"
--
To view, visit https://gerrit.wikimedia.org/r/168170
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9b4768c37b16ca149b516a8b0c33b61d2f0f2f94
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Collection/OfflineContentGenerator
Gerrit-Branch: master
Gerrit-Owner: Cscott <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits