Knowledge

:Bots/Requests for approval/718 Bot 2 - Knowledge

Source 📝

769: 627: 47: 367:
Shouldn't this task be restricted to GIFs? PNG was designed as a replacement for the GIF format, not for JPEGs. JPEGs should remain as JPEGs. Also, how are you planning on handling animated GIFs? Does your bot specifically detect and ignore them? Are you also planning on converting all SVG images? If
536:
I was thinking about this, but came to the conclusion that this is also unsuitable for a bot. A while back, I tried surreptitiously running a mass-deletion bot under my main account that would find and remove duplicate images, and the one crippling (and unfixable) flaw was that it wasn't able to
218:. If the lightest of these three resultant PNGs is smaller than the original image, the bot will upload it, preserving the image page and adding on all of the history associated with the old image. Lastly, it will update all references from the old image to the new PNG and tag the old image with 588:
should be changed to .png. For example, if this bot converts Image:ASDGGFCHJGV.gif, and the old image had {{rename media|Picture.gif}}, the new image Image:ASDGGFCHJGV.png should have a template that now says {{rename media|Picture.png}}. Hopefully I explained this correctly.
521:, some with a suggested title, some without). I can think of no better time to rename them than when a bot is re-uploading them anyway. It would certainly add another layer of complexity to this task, but I thought I would throw it out there. - 537:
choose which filename should be preferred. The same problem pops up here: a bot just isn't smart enough to figure out that moving Descriptive_filename_12.jpg to a8fh3jkg9f3j39f.pdf or HAGGER?????.jpg isn't appropriate. To distill somewhat, the
167:
Just like it says on the can, this bot will attempt to optimize all images on the English Knowledge. On the first run, I'll let it loose on all images; from then on, it'll only attempt to convert ones tagged with
451:
there is a reduction in filesize. The artifacting problem is a whole different beast that is far removed from what this bot is intended to do; this task will neiter resolve nor exacerbate the problem in the
578:
contains a field for the new filename, including extension. If this bot converts an image with the rename template, the template should be carried to the new file - but possibly the file extension in
468:. Alternatively, I can attempt conversion as usual and preserve the tag, which is the current behavior; again, this doesn't affect the problem of the image being rasterized to begin with. 568:
I would agree with that...we have a separate process for renaming and I think that's appropriate. The one thing that could possibly be taken into consideration here is that the
455:
Animated GIFs, multi-layered or indexed XCFs, and vector images will be completely ignored. PNGs will also be skipped over, but I might try that with a later bot.
638: 228:. All free images will remain until a human decides to clear out the PNG duplicate backlog, and all fair-use images will eventually be killed off by the bots. 811: 597: 499: 290: 742: 738: 730: 714: 700: 692: 676: 652: 648: 335:
Why are uploading them as 'new' images? Can't you just replace the existing one with the new version? Also, why don't you run this on commons as well? --
696: 508: 67: 349:
Well, uploading a PNG over a JPEG or GIF is kind of silly, no? Notwithstanding that, MediaWiki will automatically rename the file anyway.
530: 251:
I like this idea and am inclined to trial it if I don't hear objections soon. Can you resize large unfree images during the conversion?
307: 782: 434: 377: 343: 259: 399:
images for which only a JPEG source is available; recompressing with PNG will not remove artifacts and will produce larger files
72: 298:
Is it worth trying to convert JPEG images? I'd expect that JPEG artifacts would compress especially poorly in PNG format. --
631:
Approved for trial (20 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete.
21: 458:
Most bitmaps can be expressed as vector data given the effort anyway, but I can skip over all images already tagged with
490:
Thanks for taking the time to answer my questions. I think I'm satisfied that you've thought this through sufficiently.
703:, copying over all entries in the history and replacing its usage on the test page while tagging the original with 87: 706: 668: 222: 415:
I would recommend applying the same criteria to this task, i.e. only converting non-animated GIFs (and maybe
82: 644:
Rather than sic it on random images, I decided to cherry-pick the test sample to cover all possible bases.
117: 406: 102: 112: 92: 107: 507:
The only thing that pops into my mind is that there are a handful of images (just a handful) in
246: 582: 572: 541: 515: 317:
If I manage to downsize even a pittance of a thousand JPEGs, I'll have done some good here.
149:
Convert all images on the English Knowledge to the more efficient PNG format when necessary.
526: 462: 386: 172: 8: 97: 198:. Now for the technical details: it'll attempt to convert the image using imagemagick's 303: 282:
Ok, I understand, just checking, I do see where certain images would be worse resized.
495: 430: 373: 340: 77: 473:
Thanks for the questions and ideas! Is there anything I've missed or can help with?
683: 659: 419: 182: 721: 522: 192: 57: 17: 737:
There was one bug: the wikitext in the edit summary portion of the history in
805: 402:
animated images. PNG does not support animation so GIF should be used instead
299: 679:
was a well optimized JPEG which remained untouched, save the removal of the
776: 749: 633: 603: 552: 491: 474: 426: 369: 350: 336: 318: 284: 266: 253: 229: 129: 58: 602:
Yep, that's a great idea, and one which I've thrown into the code now.
590: 443:
True, recompressing JPEGs will not remove artifacts, but it will only
46: 790:
The above discussion is preserved as an archive of the debate.
651:
was a poorly optimized JPEG, which the bot correctly moved to
551:, and that's where the inherent failure in the system is. 265:
This is not a task which I feel is appropriate for a bot.
448: 447:
produce larger files; images will get the reup treatment
405:
images which contain strictly vector (non-raster) data.
313:
I expect so, but it's my computing cycles being wasted.
796:
Subsequent comments should be made in a new section.
42:
Subsequent comments should be made in a new section.
803: 36:The following discussion is an archived debate. 733:was a vector image and also remained untouched. 741:got parsed. I squashed this, as evidenced in 695:was a poorly optimized GIF which was used in 509:Category:Images which should be in PNG format 812:Approved Knowledge bot requests for approval 727:tag that remained completely untouched. 14: 804: 440:To answer your questions one by one: 396:This template should not be used for 155:One very long run, then once a week. 511:that require renaming (tagged with 27: 28: 823: 44:The result of the discussion was 767: 699:. The bot correctly moved it to 625: 45: 135:Automatic or Manually Assisted: 13: 1: 368:so, what would be the point? 409:should be used in this case. 7: 717:was an animated GIF with a 10: 828: 745:. I can haz approval plz? 783:04:39, 19 June 2008 (UTC) 639:02:53, 19 June 2008 (UTC) 598:02:38, 19 June 2008 (UTC) 531:00:47, 18 June 2008 (UTC) 500:15:23, 18 June 2008 (UTC) 435:22:24, 17 June 2008 (UTC) 378:22:14, 17 June 2008 (UTC) 344:11:57, 17 June 2008 (UTC) 308:08:30, 17 June 2008 (UTC) 291:21:36, 17 June 2008 (UTC) 260:06:08, 17 June 2008 (UTC) 793:Please do not modify it. 202:, then downsize it with 39:Please do not modify it. 759:at 04:34, June 19, 2008 613:at 02:40, June 19, 2008 562:at 02:32, June 19, 2008 484:at 23:58, June 17, 2008 360:at 16:05, June 17, 2008 328:at 16:05, June 17, 2008 276:at 16:05, June 17, 2008 239:at 05:36, June 17, 2008 159:Already has a bot flag: 392:template states that: 141:Programming Languages: 766:Edits appear proper, 707:PNG version available 669:PNG version available 223:PNG version available 22:Requests for approval 547:tag is applied with 743:Image:718test1c.png 739:Image:718test1a.png 731:Image:718test1e.svg 715:Image:718test1d.gif 701:Image:718test1c.png 693:Image:718test1c.gif 677:Image:718test1b.jpg 653:Image:718test1a.png 649:Image:718test1a.jpg 143:Python plus Twisted 761: 697:User:east718/test 637: 615: 564: 486: 362: 330: 278: 241: 165:Function Details: 147:Function Summary: 819: 795: 779: 771: 770: 750: 748: 726: 720: 710: 709:|718test1c.png}} 688: 682: 672: 671:|718test1a.png}} 664: 658: 636: 629: 628: 604: 595: 587: 581: 577: 571: 553: 546: 540: 520: 514: 475: 467: 461: 424: 418: 391: 385: 351: 319: 316: 287: 267: 256: 230: 227: 221: 197: 191: 187: 181: 177: 171: 49: 41: 827: 826: 822: 821: 820: 818: 817: 816: 802: 801: 800: 791: 777: 768: 755: 746: 724: 718: 704: 686: 680: 666: 662: 656: 626: 609: 591: 585: 579: 575: 569: 558: 544: 538: 518: 512: 480: 465: 459: 422: 416: 389: 383: 356: 324: 314: 285: 272: 254: 249: 235: 225: 219: 212:pngcrush -brute 195: 189: 185: 179: 175: 169: 137:Fully automatic 123: 62: 37: 26: 25: 24: 12: 11: 5: 825: 815: 814: 799: 798: 786: 785: 753: 735: 734: 728: 712: 690: 674: 642: 641: 622: 621: 620: 619: 618: 617: 607: 556: 549:human judgment 505: 504: 503: 502: 478: 471: 470: 469: 456: 453: 449:if and only if 413: 412: 411: 410: 403: 400: 365: 364: 354: 333: 332: 322: 296: 295: 294: 293: 270: 248: 245: 244: 243: 233: 217: 213: 209: 205: 201: 162: 156: 150: 144: 138: 132: 122: 121: 115: 110: 105: 100: 95: 90: 85: 80: 75: 73:Approved BRFAs 70: 63: 61: 56: 55: 54: 32: 30: 18:Knowledge:Bots 15: 9: 6: 4: 3: 2: 824: 813: 810: 809: 807: 797: 794: 788: 787: 784: 781: 780: 774: 765: 764: 763: 762: 760: 757: 744: 740: 732: 729: 723: 716: 713: 708: 702: 698: 694: 691: 685: 678: 675: 670: 661: 654: 650: 647: 646: 645: 640: 635: 632: 624: 623: 616: 614: 611: 601: 600: 599: 596: 594: 584: 574: 567: 566: 565: 563: 560: 550: 543: 535: 534: 533: 532: 528: 524: 517: 510: 501: 497: 493: 489: 488: 487: 485: 482: 472: 464: 457: 454: 450: 446: 442: 441: 439: 438: 437: 436: 432: 428: 421: 408: 404: 401: 398: 397: 395: 394: 393: 388: 380: 379: 375: 371: 363: 361: 358: 348: 347: 346: 345: 342: 338: 331: 329: 326: 312: 311: 310: 309: 305: 301: 292: 289: 288: 281: 280: 279: 277: 274: 264: 263: 262: 261: 258: 257: 242: 240: 237: 224: 215: 211: 207: 203: 199: 194: 184: 174: 166: 163: 160: 157: 154: 151: 148: 145: 142: 139: 136: 133: 131: 128: 125: 124: 119: 116: 114: 111: 109: 106: 104: 101: 99: 96: 94: 91: 89: 86: 84: 81: 79: 76: 74: 71: 69: 65: 64: 60: 52: 48: 43: 40: 34: 33: 31: 23: 19: 792: 789: 775: 772: 758: 751: 736: 655:, replacing 643: 630: 612: 605: 592: 583:rename media 573:rename media 561: 554: 548: 542:rename media 516:rename media 506: 483: 476: 444: 414: 381: 366: 359: 352: 334: 327: 320: 297: 283: 275: 268: 252: 250: 238: 231: 164: 158: 153:Edit period: 152: 146: 140: 134: 126: 50: 38: 35: 29: 463:ShouldBeSVG 387:ShouldBePNG 204:optipng -o7 173:ShouldBePNG 523:AWeenieMan 452:slightest. 247:Discussion 208:advpng -z4 113:rights log 103:page moves 773:Approved. 127:Operator: 108:block log 806:Category 300:Carnildo 83:contribs 51:Approved 20:‎ | 778:MBisanz 684:badJPEG 660:badJPEG 492:Kaldari 427:Kaldari 420:BadJPEG 370:Kaldari 337:maelgwn 286:MBisanz 255:MBisanz 200:convert 183:badJPEG 130:east718 59:718 Bot 722:badGIF 216:pngout 214:, and 193:badGIF 188:, and 665:with 593:Kelly 445:often 206:plus 88:count 16:< 752:east 689:tag. 606:east 555:east 527:talk 496:talk 477:east 431:talk 425:s). 382:The 374:talk 353:east 341:talk 321:east 304:talk 269:east 232:east 118:flag 98:logs 78:talk 68:BRFA 756:718 610:718 559:718 481:718 407:SVG 357:718 325:718 273:718 236:718 161:yes 93:SUL 808:: 747::) 725:}} 719:{{ 705:{{ 687:}} 681:{{ 667:{{ 663:}} 657:{{ 634:BJ 586:}} 580:{{ 576:}} 570:{{ 545:}} 539:{{ 529:) 519:}} 513:{{ 498:) 466:}} 460:{{ 433:) 423:}} 417:{{ 390:}} 384:{{ 376:) 339:- 315::) 306:) 226:}} 220:{{ 210:, 196:}} 190:{{ 186:}} 180:{{ 178:, 176:}} 170:{{ 754:. 711:. 673:. 608:. 557:. 525:( 494:( 479:. 429:( 372:( 355:. 323:. 302:( 271:. 234:. 120:) 66:( 53:.

Index

Knowledge:Bots
Requests for approval

718 Bot
BRFA
Approved BRFAs
talk
contribs
count
SUL
logs
page moves
block log
rights log
flag
east718
ShouldBePNG
badJPEG
badGIF
PNG version available
east.718 at 05:36, June 17, 2008
MBisanz
06:08, 17 June 2008 (UTC)
east.718 at 16:05, June 17, 2008
MBisanz
21:36, 17 June 2008 (UTC)
Carnildo
talk
08:30, 17 June 2008 (UTC)
east.718 at 16:05, June 17, 2008

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.