Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 9.92 KB

ShouldBeSVG.md

File metadata and controls

46 lines (37 loc) · 9.92 KB

ShouldBeSVG

Wikimedia Commons contains a lot of medium and low quality raster charts, diagrams, and other images that would be better displayed using vector graphics. To indicate this, editors can apply {{Convert to SVG}} to the file description page to categorize the file in Category:Images that should use vector graphics. Some of the files in that category are used in dozens of places while others aren't at all. This task generates a series of reports that sort various Convert to SVG categories by global usage.

This task was previously performed by User:McTopot.

This project is licensed under the GNU GPLv3 or later. This documentation is CC BY-SA 4.0. Contributions are welcome.

Reports

All times are UTC. The time indicated is the start time. Reports can take some time to run and are affected by load on the Toolforge grid. If a report has not run for two weeks, contact me on my talk page or file an issue.

key Time Category Report gallery
diagram Monday 02:11 Top 200 diagram images that should use vector graphics Category:Diagram images that should use vector graphics
graph Monday 10:11 Top 200 graph images that should use vector graphics Category:Graph images that should use vector graphics
math Monday 18:11 Top 200 math images that should use vector graphics Category:Math images that should use vector graphics
text Tuesday 02:11 Top 200 text images that should use vector graphics Category:Text images that should use vector graphics
sport Tuesday 10:11 Top 200 sport images that should use vector graphics Category:Sport images that should use vector graphics
military_insignia Tuesday 18:11 Top 200 military insignia images that should use vector graphics Category:Military insignia images that should use vector graphics
biology Wednesday 02:11 Top 200 biology images that should use vector graphics Category:Biology images that should use vector graphics
ribbon Wednesday 10:11 Top 200 ribbon images that should use vector graphics Category:Ribbon images that should use vector graphics
technology Wednesday 18:11 Top 200 technology images that should use vector graphics Category:Technology images that should use vector graphics
transport_map Thursday 02:11 Top 200 transport map images that should use vector graphics Category:Transport map images that should use vector graphics
wikichart Thursday 10:11 Top 200 images that should use wikicharts Category:Images which should use wikicharts
physics Thursday 18:11 Top 200 physics images that should use vector graphics Category:Physics images that should use vector graphics
chemistry Friday 02:11 Top 200 chemistry images that should use vector graphics Category:Chemistry images that should use vector graphics
sign Friday 10:11 Top 200 road sign images that should use vector graphics Category:Road sign images that should use vector graphics
jpg Friday 18:11 Top 200 JPG images that should use vector graphics Category:JPG images that should use vector graphics
coat_of_arms Saturday 02:11 Top 200 coat of arms images that should use vector graphics Category:Coat of arms images that should use vector graphics
locator_map Saturday 10:11 Top 200 locator map images that should use vector graphics Category:Locator map images that should use vector graphics
logo Saturday 18:11 Top 200 logo images that should use vector graphics Category:Logo images that should use vector graphics
map Sunday 02:11 Top 200 map images that should use vector graphics Category:Map images that should use vector graphics
flag Sunday 10:11 Top 200 flag images that should use vector graphics Category:Flag images that should use vector graphics
symbol of municipalities in Japan Sunday 18:11 Top 200 symbol of municipalities in Japan images that should use vector graphics Top 200 symbol of municipalities in Japan images that should use vector graphics

Configuration

  • To prevent the bot from editing or analyzing pages, change User:AntiCompositeBot/ShouldBeSVG/Run to False. If you do this, please leave a message on my talk page explaining why.
  • The main configuration for ShouldBeSVG is stored at User:AntiCompositeBot/ShouldBeSVG/reports.json. Changing this file will affect what reports are available to the bot and what pages are affected.
  • The configuration for what report will be run at what time is stored in the code of ShouldBeSVG-helper.py. If there is no entry for a report in this file, the bot will not run the report.
  • The format of a report gallery is dependent on ShouldBeSVG.py. Additional information, categories, etc. should be placed above the comment line on the report gallery or it will be overwritten on the next run.

Running the bot

The bot runs three times a day from Toolforge. A cron job runs ShouldBeSVG-helper.py which determines which report should be run at that time. The helper then submits a job to the grid for that report. The cron entry is set for 02:11, 10:11, and 18:11 UTC in an attempt to avoid the high-load hourly and daily times. Only one report can be run at a time right now.

To run the bot manually, find the key for the report in the table above or in the configuration. Then run ShouldBeSVG.py <key> directly. Adding --simulate will print the output gallery to SDOUT instead of saving it.