58:
30:
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by
31:
others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes.
36:
1342:// Add the maximum size of the image that's less than 0.1MP, the total pixel count, the new image link, and the reupload link summary
35:
to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the
105:
68:
32:
64:
17:
485:// formula from IMAGERES, and confirm the new total pixel count is within range
478:// Calculate the new width, height, dimensions and total pixel count with the
57:
80:
After saving, you have to bypass your browser's cache to see the changes.
104:
toolbar button. For details and instructions about other browsers, see
52:
26:
1434:"'>resized file</a>, <a href='"
326:// With the height and width, calculate the total pixel count
833:"<span style='color:red'><b>"
915:// Add the total pixel count after the initial dimensions
757:// Colour coding the results; green = good, red = bad
1041:// Create a image link with the maximum reduced size
1009:// If the image exceeds 0.1MP, then report the error
878:"<span style='color:green'>"
1446:"'>upload resized file</a>)"
1195:"Resize to less than 0.1 MP per ] via ]."
8:
1422:" total pixels, <a href='"
222:// Get file information: height and width
97:
67:seems to have a documentation page at
45:be executed when previewing this page.
1373:"<br>(maximum size: "
1322:"&wpUploadDescription="
7:
1226:'mw-imagepage-reupload-link'
849:"</b></span>"
448:// Maximum pixel count per IMAGERES
1467:// Add commas to values over 1,000
112:
24:
106:Knowledge (XXG):Bypass your cache
56:
1:
193:"wgNamespaceNumber"
69:User:Alex 21/script-imageres
995:" total pixels, "
1557:
1537:
1530:
1493:
1471:
1464:
1460:
1453:
1398:
1346:
1339:
1335:
1298:
1273:
1233:
1202:
1183:
1179:
1082:
1045:
1038:
1013:
1006:
1002:
959:
919:
912:
908:
901:
894:"</span>"
885:
869:
856:
840:
824:
799:
780:
761:
754:
750:
719:
712:
690:
650:
637:
612:
587:
544:
489:
482:
475:
471:
452:
445:
441:
416:
373:
330:
323:
319:
282:
257:
226:
219:
215:
166:
159:
116:
113:
37:appropriate village pump
1517:/\B(?=(\d{3})+(?!\d))/g
1112:"/en/thumb/"
1063:getElementsByClassName
244:getElementsByClassName
131:getElementsByClassName
1401:" pixels, "
162:// Filenamespace only
962:"pixels, "
250:"fileInfo"
137:"fileInfo"
952:"pixels,"
1069:'internal'
100:key and click the
75:
74:
49:
48:
1548:
1542:
1541:
1535:
1534:
1528:
1527:
1524:
1521:
1518:
1515:
1512:
1509:
1506:
1503:
1500:
1497:
1491:
1490:
1487:
1484:
1481:
1478:
1475:
1469:
1468:
1462:
1458:
1457:
1451:
1450:
1447:
1444:
1441:
1438:
1435:
1432:
1429:
1426:
1423:
1420:
1417:
1414:
1413:new_total_pixels
1411:
1408:
1405:
1402:
1396:
1395:
1392:
1389:
1386:
1383:
1380:
1377:
1374:
1371:
1368:
1365:
1362:
1359:
1356:
1353:
1350:
1344:
1343:
1337:
1333:
1332:
1329:
1326:
1323:
1320:
1317:
1314:
1311:
1308:
1305:
1302:
1296:
1295:
1292:
1289:
1286:
1283:
1280:
1277:
1271:
1270:
1267:
1264:
1261:
1258:
1255:
1252:
1249:
1246:
1243:
1240:
1237:
1231:
1230:
1227:
1224:
1221:
1218:
1215:
1212:
1209:
1206:
1200:
1199:
1196:
1193:
1190:
1187:
1181:
1177:
1176:
1173:
1170:
1167:
1164:
1161:
1158:
1155:
1152:
1149:
1146:
1143:
1140:
1137:
1134:
1131:
1128:
1125:
1122:
1119:
1116:
1113:
1110:
1107:
1106:"/en/"
1104:
1101:
1098:
1095:
1092:
1089:
1086:
1080:
1079:
1076:
1073:
1070:
1067:
1064:
1061:
1058:
1055:
1052:
1049:
1043:
1042:
1036:
1035:
1032:
1029:
1026:
1023:
1020:
1017:
1011:
1010:
1004:
1000:
999:
996:
993:
990:
987:
984:
981:
978:
975:
972:
969:
966:
963:
957:
956:
953:
950:
947:
944:
941:
938:
935:
932:
929:
926:
923:
917:
916:
910:
906:
905:
899:
898:
895:
892:
889:
883:
882:
879:
876:
873:
867:
866:
863:
860:
854:
853:
850:
847:
844:
838:
837:
834:
831:
828:
822:
821:
818:
815:
812:
809:
806:
803:
797:
796:
793:
790:
787:
784:
778:
777:
774:
771:
768:
765:
759:
758:
752:
748:
747:
744:
741:
738:
735:
732:
729:
726:
723:
717:
716:
710:
709:
706:
703:
700:
697:
694:
693:new_total_pixels
688:
687:
684:
681:
678:
675:
672:
669:
666:
663:
660:
657:
654:
648:
647:
644:
641:
635:
634:
631:
628:
625:
622:
621:new_total_pixels
619:
616:
610:
609:
606:
603:
600:
597:
594:
593:new_total_pixels
591:
585:
584:
581:
578:
575:
572:
569:
566:
563:
560:
557:
554:
551:
548:
542:
541:
538:
535:
532:
529:
526:
523:
520:
517:
514:
511:
508:
505:
502:
499:
496:
493:
487:
486:
480:
479:
473:
469:
468:
465:
462:
459:
456:
450:
449:
443:
439:
438:
435:
432:
429:
426:
423:
420:
414:
413:
410:
407:
404:
401:
398:
395:
392:
389:
386:
383:
380:
377:
371:
370:
367:
364:
361:
358:
355:
352:
349:
346:
343:
340:
337:
334:
328:
327:
321:
317:
316:
313:
310:
307:
304:
301:
298:
295:
292:
289:
286:
280:
279:
276:
273:
270:
267:
264:
261:
255:
254:
251:
248:
245:
242:
239:
236:
233:
230:
224:
223:
217:
213:
212:
209:
206:
203:
200:
197:
194:
191:
188:
185:
182:
179:
176:
173:
170:
164:
163:
157:
156:
153:
150:
147:
144:
141:
138:
135:
132:
129:
126:
123:
120:
109:
96:: Hold down the
60:
53:
27:
1556:
1555:
1551:
1550:
1549:
1547:
1546:
1545:
1544:
1543:
1539:
1536:
1532:
1529:
1525:
1522:
1519:
1516:
1513:
1510:
1507:
1504:
1501:
1498:
1495:
1492:
1488:
1485:
1482:
1479:
1476:
1473:
1470:
1466:
1463:
1459:
1455:
1452:
1448:
1445:
1442:
1440:reuploadLinkNew
1439:
1436:
1433:
1430:
1427:
1424:
1421:
1418:
1415:
1412:
1409:
1406:
1403:
1400:
1397:
1393:
1390:
1387:
1384:
1381:
1378:
1375:
1372:
1369:
1366:
1363:
1360:
1357:
1354:
1351:
1348:
1345:
1341:
1338:
1334:
1330:
1327:
1324:
1321:
1318:
1315:
1312:
1309:
1306:
1304:reuploadLinkNew
1303:
1300:
1297:
1293:
1290:
1287:
1284:
1281:
1278:
1275:
1272:
1268:
1265:
1262:
1259:
1256:
1253:
1250:
1247:
1244:
1241:
1238:
1235:
1232:
1228:
1225:
1222:
1219:
1216:
1213:
1210:
1207:
1204:
1201:
1197:
1194:
1191:
1188:
1185:
1182:
1178:
1174:
1171:
1168:
1165:
1162:
1159:
1156:
1153:
1150:
1147:
1144:
1141:
1138:
1135:
1133:"px-"
1132:
1129:
1126:
1123:
1120:
1117:
1114:
1111:
1108:
1105:
1102:
1099:
1096:
1093:
1090:
1087:
1084:
1081:
1077:
1074:
1071:
1068:
1065:
1062:
1059:
1056:
1053:
1050:
1047:
1044:
1040:
1037:
1033:
1030:
1027:
1024:
1021:
1018:
1015:
1012:
1008:
1005:
1001:
997:
994:
991:
988:
985:
982:
979:
976:
973:
970:
967:
964:
961:
958:
954:
951:
948:
945:
942:
939:
936:
933:
930:
927:
924:
921:
918:
914:
911:
907:
903:
900:
896:
893:
890:
887:
884:
880:
877:
874:
871:
868:
864:
861:
858:
855:
851:
848:
845:
842:
839:
835:
832:
829:
826:
823:
819:
816:
813:
810:
807:
804:
801:
798:
794:
791:
788:
785:
782:
779:
775:
772:
769:
766:
763:
760:
756:
753:
749:
745:
742:
739:
737:" × "
736:
733:
730:
727:
724:
721:
718:
714:
711:
707:
704:
701:
698:
695:
692:
689:
685:
682:
679:
676:
673:
670:
667:
664:
661:
658:
655:
652:
649:
645:
642:
639:
636:
632:
629:
626:
623:
620:
617:
614:
611:
607:
604:
601:
598:
595:
592:
589:
586:
582:
579:
576:
573:
570:
567:
564:
561:
558:
555:
552:
549:
546:
543:
539:
536:
533:
530:
527:
524:
521:
518:
515:
512:
509:
506:
503:
500:
497:
494:
491:
488:
484:
481:
477:
474:
470:
466:
463:
460:
457:
454:
451:
447:
444:
440:
436:
433:
430:
427:
424:
421:
418:
415:
411:
408:
405:
402:
399:
396:
393:
390:
387:
384:
381:
378:
375:
372:
368:
365:
362:
359:
356:
353:
350:
347:
344:
341:
338:
335:
332:
329:
325:
322:
318:
314:
311:
308:
305:
302:
299:
296:
293:
290:
287:
284:
281:
277:
274:
271:
268:
265:
262:
259:
256:
252:
249:
246:
243:
240:
237:
234:
231:
228:
225:
221:
218:
214:
210:
207:
204:
201:
198:
195:
192:
189:
186:
183:
180:
177:
174:
171:
168:
165:
161:
158:
154:
151:
148:
145:
142:
139:
136:
133:
130:
127:
124:
121:
118:
115:
111:
110:
99:
76:
50:
40:
22:
21:
20:
12:
11:
5:
1554:
1552:
1428:new_image_link
1385:new_dimensions
1328:reuploadReason
1220:getElementById
1189:reuploadReason
1088:new_image_link
725:new_dimensions
114:
90:Microsoft Edge
73:
72:
61:
51:
47:
46:
25:
23:
15:
14:
13:
10:
9:
6:
4:
3:
2:
1553:
1538:
1531:
1523:","
1494:
1477:number_format
1472:
1465:
1461:
1454:
1407:number_format
1399:
1347:
1340:
1336:
1299:
1274:
1234:
1203:
1184:
1180:
1163:"/"
1121:"/"
1083:
1046:
1039:
1014:
1007:
1003:
974:number_format
960:
920:
913:
909:
902:
886:
870:
857:
841:
825:
800:
781:
762:
755:
751:
720:
713:
691:
651:
638:
613:
588:
545:
490:
483:
476:
472:
453:
446:
442:
417:
374:
331:
324:
320:
283:
258:
227:
220:
216:
167:
160:
117:
107:
103:
95:
91:
87:
83:
82:Google Chrome
79:
70:
66:
62:
59:
55:
54:
44:
38:
34:
29:
28:
19:
1379:colour_start
1310:reuploadLink
1279:reuploadLink
1022:total_pixels
980:total_pixels
968:colour_start
872:colour_start
827:colour_start
808:total_pixels
792:""
773:""
767:colour_start
422:total_pixels
391:height_width
348:height_width
288:height_width
101:
93:
89:
85:
81:
77:
42:
18:User:Alex 21
1285:replaceLink
1254:replaceLink
1245:replaceLink
1208:replaceLink
1157:lastIndexOf
312:/(+) × (+)/
65:user script
1391:colour_end
1151:image_link
1139:image_link
1094:image_link
1051:image_link
1028:max_pixels
989:colour_end
888:colour_end
843:colour_end
814:max_pixels
786:colour_end
743:new_height
705:new_height
653:new_height
627:max_pixels
605:new_height
550:new_height
525:max_pixels
458:max_pixels
409:''
366:''
41:This code
1367:innerHTML
1355:innerHTML
1127:new_width
940:innerHTML
928:innerHTML
731:new_width
699:new_width
677:new_width
640:new_width
599:new_width
574:new_width
495:new_width
300:innerHTML
1505:toString
1474:function
1361:fileInfo
1349:fileInfo
1291:children
1260:children
1214:document
1057:document
934:fileInfo
922:fileInfo
385:parseInt
342:parseInt
294:fileInfo
269:fileInfo
238:document
232:fileInfo
149:function
125:document
1511:replace
1100:replace
946:replace
397:replace
354:replace
98:⇧ Shift
86:Firefox
33:A guide
1496:return
1266:return
1145:substr
671:height
568:height
537:height
464:100000
428:height
379:height
275:return
208:return
181:config
102:Reload
94:Safari
683:width
665:round
615:while
580:width
562:round
531:width
507:floor
434:width
336:width
306:match
143:ready
78:Note:
63:This
16:<
1316:href
1075:href
1025:>
862:else
811:>
659:Math
624:>
556:Math
519:sqrt
513:Math
501:Math
403:/,/g
360:/,/g
92:and
43:will
1540:});
1508:().
1301:var
1276:var
1205:var
1186:var
1085:var
1048:var
783:var
764:var
722:var
590:var
547:var
540:));
492:var
455:var
419:var
412:));
376:var
369:));
333:var
285:var
229:var
199:!==
187:get
140:)).
1526:);
1248:||
1236:if
1229:);
1175:);
1072:).
1016:if
998:);
802:if
686:);
643:--
583:);
315:);
260:if
253:);
175:mw
169:if
152:()
119:$
88:,
84:,
1533:}
1520:,
1514:(
1502:.
1499:x
1489:{
1486:)
1483:x
1480:(
1456:}
1449:;
1443:+
1437:+
1431:+
1425:+
1419:+
1416:)
1410:(
1404:+
1394:+
1388:+
1382:+
1376:+
1370:+
1364:.
1358:=
1352:.
1331:;
1325:+
1319:+
1313:.
1307:=
1294:;
1288:.
1282:=
1269:;
1263:)
1257:.
1251:!
1242:!
1239:(
1223:(
1217:.
1211:=
1198:;
1192:=
1172:1
1169:+
1166:)
1160:(
1154:.
1148:(
1142:.
1136:+
1130:+
1124:+
1118:+
1115:)
1109:,
1103:(
1097:.
1091:=
1078:;
1066:(
1060:.
1054:=
1034:{
1031:)
1019:(
992:+
986:+
983:)
977:(
971:+
965:+
955:,
949:(
943:.
937:.
931:=
925:.
904:}
897:;
891:=
881:;
875:=
865:{
859:}
852:;
846:=
836:;
830:=
820:{
817:)
805:(
795:;
789:=
776:;
770:=
746:;
740:+
734:+
728:=
715:}
708:;
702:*
696:=
680:/
674:*
668:(
662:.
656:=
646:;
633:{
630:)
618:(
608:;
602:*
596:=
577:/
571:*
565:(
559:.
553:=
534:/
528:*
522:(
516:.
510:(
504:.
498:=
467:;
461:=
437:;
431:*
425:=
406:,
400:(
394:.
388:(
382:=
363:,
357:(
351:.
345:(
339:=
309:(
303:.
297:.
291:=
278:;
272:)
266:!
263:(
247:(
241:.
235:=
211:;
205:)
202:6
196:)
190:(
184:.
178:.
172:(
155:{
146:(
134:(
128:.
122:(
108:.
71:.
39:.
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.