Tool:CropTool

From Wikitech
Jump to: navigation, search
Toolforge tools
Crystal Clear app package utilities.png CropTool
Website tools.wmflabs.org/croptool
Author(s) danmichaelotalk
Maintainer(s) (View all)
Source code github
License MIT License
Issues github

CropTool (croptool) is a tool for cropping image files at Wikimedia Commons and other Wikimedia projects using OAuth and the MediaWiki API. Usage documentation is available at commons:Commons:CropTool.

Administration

  • Deployment is done by ssh-ing to Tool Labs and pulling the latest code from GitHub.
  • Setup/deployment notes at https://github.com/danmichaelo/croptool#deployment-notes
  • Uncropped and cropped files are stored in public_html/files. Every fourth hour, a cronjob runs cleanup.sh to delete old files. The number of files deleted in each cleanup run is logged to cleanup.log

Issues

  • A cause of some downtime has been https://phabricator.wikimedia.org/T104799 . To respond faster to this, a cronjob was added (`check-server.sh`) that calls webservice restart whenever the number of open connections exceeds 150. However, as of May 2016, this hasn't happened since February 17, 2016.
  • Issue tracker is at GitHub