CropTool is a tool for cropping image files at Wikimedia Commons and other Wikimedia sites using the MediaWiki API with OAuth.
Features:
?title=Example.jpg&left=10&top=10&width=150&height=100
?title=Example.jpg&left=10&top=10&right=10&bottom=10
{{Remove border}}
,
Category:Images with borders,
{{Watermark}}
and
{{Trimming}}
, and
provides check boxes for optional removal of these upon cropping.{{Extracted from}}
template is added to the new file, and the
{{Image extracted}}
template is added or updated on the original.{{Flickrreview}}
without any parameters, or some of the User:FlickreviewR
subtemplates),
since images should be reviewed before being altered.{{Orphaned non-free revisions}}
when cropping non-free media on English Wikipedia.Copy config.dev.ini
to config.ini
and add the consumer token and secret token to config.ini
and check the default paths for the dependencies.
docker compose run phpfpm composer install
npm install
npx gulp build
docker compose run phpfpm php generate-key.php
docker-compose up
Note that you should be able to login and preview cropping without waiting for the OAuth consumer to be accepted.
toolforge build start <public link to repo>
toolforge webservice --backend=kubernetes --mount=all buildservice start
config.prod.ini
into the home directory, and add OAuth informationpublic_files
directory in the home directory and set it to be readable and writable by others