User:Alex 21/script-imageres
User:Alex 21/script-imageres.js is a script that provides statistics for files and their sizes in compliance with WP:IMAGERES.
Installation
To install the script, add:
importScript('User:Alex 21/script-functions.js');
importScript('User:Alex 21/script-imageres.js');
>>> User:Alex 21/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:Alex 21/script-functions for installing scripts by Alex 21. <<<
On a file of acceptable size (i.e. less than 0.1MP per WP: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 WP: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. Per mw:Common thumbnail sizes, the only acceptable widths for re-sized images or thumbmails are 20px, 40px, 60px, 120px, 250px, 330px, 500px, 960px, 1280px, 1920px, or 3840px. 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:
(maximum size: 264 × 377 pixels, 99,528 total pixels, resized file)
Bugs
Please report any bugs on the talk page of the script's creator.
See also
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.