I don't know when I'll work on this script again so this is an update I made while ago but didn't publish 'cause it's not complete.
Enhanced image sizer
This script is inspired by Arve Bersvendsen's Autosizer.
As with Autosizer, you can fit image to view-port width/height or view image as is. But there are few more or less useful features. Those are:
- While changing between preferred mode and actual size (default: double click) clicked part of image will be centred if image is larger than view-port.
- If image is larger than view-port you can pan it (default: click and drag)
- You can select part of an image you wish to zoom and it will be stretched to view-port size (default: hold Shift then click and drag).
When script is active you can press H key or click on question mark in information panel to view usage information.
Beside below stated, this script is also tested on versions 9.01, 9.21 and 9.27.
I hope it will be useful to you as is for me.