You are browsing a read-only backup copy of Wikitech. The primary site can be found at wikitech.wikimedia.org

Tool:CropTool

From Wikitech-static
Revision as of 17:41, 21 May 2016 by imported>Danmichaelo
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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