User:Shahadat/script-imageres
User:Shahadat/script-imageres.js is a script that provides statistics for files and their sizes in compliance with JP:IMAGERES.
Installation
To install the script, add:
importScript('User:Shahadat/script-functions.js'); importScript('User:Shahadat/script-imageres.js');
>>> User:Shahadat/script-functions.js is required to include multiple shared functions, and the custom "TV Scripts" header, many of which are used identically in a few of my other scripts - you only need to include it in Special:MyPage/common.js once. Follow the instructions at User:Shahadat/script-functions for installing scripts by Shahadat. <<<
On a file of acceptable size (i.e. less than 0.1MP per JP:IMAGERES), all the script will do is include the total pixel count as such:
On a file of increased size that requires reducing (i.e. more than 0.1MP per JP:IMAGERES), the script will highlight the total pixel count, as well as providing the largest reduced size of the image and a link to the largest reduced-size image. The largest reduced-size image will be optimum for re-upload to comply with IMAGERES. The script will also provide an automatic summary for the "File changes" input when re-uploading the image. It will display as such:
Bugs
Please report any bugs on the talk page of the script's creator.
See also
Script Attribution
![]() | This script was manually imported from Wikipedia in compliance with their CC-BY-SA license. This script is utilized either partially or in full, incorporating corrections, modifications, or imported from the original script. For details regarding the original script and its creator, please refer to the following link: https://en.wikipedia.org/wiki/User:Alex_21/script-imageres |