Dynamic image sizer

Resizes image to fit screen dimensions

This script, similar to Arve Bersvendsen's Autosizer, scales down images viewed by themselves so that they can be seen in their entirety if they are too large for the window.  Images start resized; a single click will toggle between original size and fit size, whereas a double-click will resize the image so that the long axis still has a scrollbar---useful for panoramas.

Works with both raster images and SVGs.

Installation Instructions: 

To install UserJS files you must first create a folder for them on your PC. Where you create this folder and what you call it is entirely up to you. Next, go to file->preferences->advanced->content->Javascript Options and select the User Javascript folder you just created. Then, download the .js file from this site and put it in the folder. 

If you are using Opera 10.10 or later you can use the UJS manager Unite application to install and manage your scripts. If you have i installed, simply open the script in Opera and an installation button will appear.

Scripts take effect on a page after reloading it.

Type the name of a command and press enter to execute it, or help for assistance.

Tested with Opera version(s): 
10.0
10.10
application/x-javascript icon
imagesize.js (265) file id=583

You may download this file at your own risk

Your rating: None Average: 5 (8 votes)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Download? How?

I must be extremely dense: I cannot fathom out how to download this file. The best I have been able to do so far is place three zero-byte-sized files on my HDD. Can someone please elucidate?

  OK, I've worked it out... A great addition to Opera! (That goes for the UJS Manager app too!)

perfect

works on 10.5

originaal default

how can i set original size as default ?
so click change to fit

You can remove line 90: //

You can remove line 90:

// scale to fit on initial view
userJS.imgSizer.toggleFit();

Simple as that. :)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

By submitting this form, you accept the Mollom privacy policy.