Wikipedia:Bots/Requests for approval/RonBot 2


 * The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was

RonBot 2
Operator:

Time filed: 18:57, Sunday, September 10, 2017 (UTC)

Automatic, Supervised, or Manual: Supervised

Programming language(s): Python

Source code available: User:RonBot/2/Source1

Function overview: Currently DatBot6 reduces all tagged bitmap files in Category:Wikipedia non-free file size reduction requests. GIF files are, by default, sorted into Category:Wikipedia non-free file size reduction requests for manual processing (along with SVGs and PDFs). This bot will reduce just the GIF files in that category.

Links to relevant discussions (where appropriate):

Edit period(s): Daily run - 4 hour max

Estimated number of pages affected: about 2000 now, then a few files a week

Exclusion compliant (Yes/No): Yes

Already has a bot flag (Yes/No): Yes

Function details: Uses a modified version of the code that DatBot6 is using. In the past Theo's Little Bot avoided GIFs as they often got corrupted by the Python Imaging Library. This version will use python 2.7 with Pillow 2,7. I have been testing semi-automatically, reviewing each reduction before upload - using explorer, set to extra large icons, and showing the 2 temp files (original and reduced) created, side by side. So far all files have reduced properly (one exception which failed to download properly in the first place - reduction was fine, but image was not) - using my alt account to keep track (Special:Contributions/Ronjones). Limit to a 4 hour run each day as I have a 4 hour off-peak window I can use for a bot run. Supervised mode as the odd reduction goes pixelated due to lack of colours in a GIF - even a Photoshop straight reduction gave a poor result.

Discussion

 * What happens if the bot finds an animated GIF file? There could be two things to reduce: either the pixel count or the number of frames in the animation. --Stefan2 (talk) 20:53, 10 September 2017 (UTC)
 * Not designed for animated, another reason for the Supervised Mode. I've just done 13 of those manually with https://ezgif.com/resize - see Special:Contributions/Ronhjones early this morning (10th Sept) Ron h jones (Talk) 21:34, 10 September 2017 (UTC)
 * I don't think that a bot is suitable for reducing animated files. For example, I don't think that you reduced File:Official-Seal-of-Alegria,-Surigao-del-Norte.gif sufficiently. I think that the number of frames of that GIF should be reduced to only one so that the file no longer is animated since the animation doesn't add anything to the article. If you encounter animated files, then I think it'd be better if your bot just replaces non-free reduce (and its redirects) with non-free manual reduce. --Stefan2 (talk) 21:54, 10 September 2017 (UTC)
 * There are so few animated files, that when I find one, I will probably manually reduce it anyway. Ron h jones (Talk) 22:17, 10 September 2017 (UTC)
 * If a bot starts reducing GIF images, the template should probably be modified to sort them into Category:Wikipedia non-free file size reduction requests so that any GIFs with non-free manual reduce clearly are separated from other GIFs. --Stefan2 (talk) 21:54, 10 September 2017 (UTC)
 * Sounds like a reasonable suggestion. DatBot6 (using Theo's code) skips GIF files anyway, so there should not be a conflict. Ron h jones (Talk) 22:17, 10 September 2017 (UTC)
 * I can confirm that I can detect animated GIFs by counting the number of frames (still GIF = 1) Ron h jones (Talk) 23:00, 10 September 2017 (UTC)
 * Question: Your bot is an adminbot. Will it be deleting the non-reduced versions from the file history?— CYBERPOWER  ( Chat ) 12:42, 13 September 2017 (UTC)
 * No. it adds the standard template, which then allows the file to remain as is for 7 days, at which point (if nothing is changed) RonBot#1 will come along and do the RevDel. Ron h jones (Talk) 14:04, 13 September 2017 (UTC)
 * What are the rules for adminbot accounts? I see that some (all?) users who operate adminbots use two bot user accounts: one account for bot tasks which need the sysop flag, and one account for bot tasks which don't need the sysop flag. This task only needs a confirmed (or autoconfirmed) user account, so is the operator supposed to use a different account for this task? --Stefan2 (talk) 22:56, 13 September 2017 (UTC)
 * I'm not familiar with such a rule. And as long as it doesn't exist, I won't hold him to that requirement.
 * — CYBERPOWER  ( Message ) 03:19, 14 September 2017 (UTC)
 * See Special:Contributions/RonBot 14 Sept 18:32 to 18:44. All files checked post processing and found to be OK Ron h jones (Talk) 19:01, 14 September 2017 (UTC)
 * Looks OK to me too. I retagged one as PD-textlogo and reverted to the larger image. --Stefan2 (talk) 19:42, 14 September 2017 (UTC)
 * — CYBERPOWER  ( Chat ) 18:04, 17 September 2017 (UTC)
 * The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.