Commons:Bots/Requests/Rotatebot

From Wikimedia Commons, the free media repository
Jump to: navigation, search

Rotatebot[edit]

Operator: Luxo

Automatic or Manually Assisted: Automatic

Programming Language(s): PHP

Edit period(s) (e.g. Continuous, daily, one time run): Daily every 6 hours (00:00, 06:00, 12:00, 18:00 UTC)

Bot flag requested: (Y/N): Y

Functions: Rotates images in the category Images requiring rotation by bot with the lossless rotation-tool jpegtran. For png and gif I use ImageMagick. He rotates only images which are marked with |degree=90/180/270-parameter, other images are in this category. After rotate the bot deletes {{Rotate}} in the description page. I'll start a test-run when autoconfirmed is on for the account (21.11.2007).

Discussion[edit]

  • Pictogram voting comment.svg Comment Will this allow anybody to rotate any image? Are there any checks on the user who added the template? -- Bryan (talk to me) 17:57, 18 November 2007 (UTC)
Yes, every user can add {{Rotate}} to the image, there are no checks. Is this negligent..?--Luxo 18:08, 18 November 2007 (UTC)
Conceivably someone could maliciously put the{{rotate}} tag on images that don't need it. I don't actually see this as a very likely sort of vandalism... ;) We can revert to previous versions if it happens. If we see a lot of vandalism of this sort, let's ask that checks be put in place at that time as with other sort of tagged bot operations. Can we have a test run and a pointer to a few results? Thanks. ++Lar: t/c 13:38, 19 November 2007 (UTC)
Yes, a test-run I can start when autoconfirmed is on for the account (21.11.2007), because of overwriting other images. --Luxo 16:11, 19 November 2007 (UTC)
I started a test-run, and I found some bugs, therefore the first edit's of the bot are failed.. But now they should be fixed. Example: Image:Bono, Bob Geldof, Kumi Naidoo at G8 (535916834).jpg (template delete), Image:Ibiza rock volcano (747230830).jpg (template delete). If there are more images in the category, I start a further test-run.--Luxo 18:19, 21 November 2007 (UTC)
One more: Image:Felip Vé.jpg (template delete)--Luxo 18:27, 21 November 2007 (UTC)
Uuh NB Image is intentionally upside down --my fault, I saw only the template and not the description page :-( --Luxo 18:32, 21 November 2007 (UTC)
I create a logfile here. It shows the image-uploader, the user who set the template and the time when it was rotated.--Luxo 15:30, 24 November 2007 (UTC)
I like that logfile a lot. I wish more bots did such thorough logging of what they did and why. No objections. ++Lar: t/c 07:35, 25 November 2007 (UTC)

Any objections remaining, anyone? I'm inclined to think we need more comments but it's looking good to me. ++Lar: t/c 18:14, 27 November 2007 (UTC)

I'm still not really happy with the fact that anybody is allowed to rotate, but I can live with it as there is a proper log. -- Bryan (talk to me) 09:44, 28 November 2007 (UTC)
Point taken but we also have a number of other bots that do things based on request tags... they all seem to be of the same class. Perhaps if this is a concern we should start asking that the bots (as a class) only accept requests from autoconfirmed IDs or something? That's a larger question though. ++Lar: t/c 12:44, 28 November 2007 (UTC)
I will create under User:Rotatebot/config.js a configuration-page with various config-options, amongst others a option "rotate-permission: all / autoconfirmed". Admins can change the config if there are any problems with the bot. I use .js that only admins can change the config.--Luxo 22:15, 28 November 2007 (UTC)
It works now. If there are any problems just change the configuration. --Luxo 21:17, 29 November 2007 (UTC)

✓ Done - Rotatebot now has the bot flag. Thanks for your assistance, the configuration file idea is swell! ++Lar: t/c 04:07, 4 December 2007 (UTC)