Shrink large images to a reasonable size.
Shrink large images to reasonable sizes.
There are times when users post extremely large images which take time to scroll past. This script shrinks these images to smaller sizes.
If you do not like the defaults, modify the script.
maxHeightAllowed -> Max image height allowed before a resize is triggered for an image.maxWidth -> Max image width when resize is triggered. In other words, the new image width will not be larger than the maxWidth.