Disable auto fit to window of large images in Opera
Tuesday, April 19, 2011 9:10:06 AM
Opera 11.10 shrinks large images to fit in window and several users don't like this and they want an option to disable it. Auto fit to window of large images can be disable this using any one of the methods below.
- Install Image Autosizer extension.
- O Menu > Extensions > Manage Extensions > Gear icon for Image Autosizer > Preferences > Advanced > View modes > When image is larger than window > Enable default & Original

Image Autosizer extension advanced options
- Copy C:\Program Files\Opera\styles\image.css in Windows OS or /usr/share/opera/styles/image.css in Linux OS to profile\styles directory. This is to avoid overwriting during update and to make backup easy.
- Add the following CSS code to the bottom of copied file and save.
/* Disable auto resizing of large images code starts here */ *, *::before, *::after { position: static !important; height: inherit !important; width: inherit !important; cursor: default !important; padding: 0px !important; margin-left:auto; margin-right:auto; } /* Disable auto resizing of large images code ends here */ - Choose modified Image Style File and save.
- Restart Opera.
Create a NoImgAutoResize.js file with the following code inside userjs directory.
// ==UserScript==
// @description Disables auto resizing of large images
// @author Fartan
// ==/UserScript==
if(document.querySelector("head>link[rel='stylesheet'][href='opera:style/image.css']")) window.donotrun=true;
[Bertalan Dávid & Fartan via forums]









A.shunshunyi # Tuesday, April 19, 2011 9:16:08 AM
p.s. The My opera theme is beautiful
Tamil # Tuesday, April 19, 2011 9:20:13 AM
Originally posted by shunyi:
Thanks to SyamsulHadi.ersi # Tuesday, April 19, 2011 9:32:25 AM
Tamil # Tuesday, April 19, 2011 9:35:34 AM
Originally posted by ersi:
http://files.myopera.com/Tamil/Smilies/Yes.gif -Unregistered user # Tuesday, April 19, 2011 10:36:35 AM
Tamil # Tuesday, April 19, 2011 10:45:04 AM
Dacotah # Tuesday, April 19, 2011 2:17:00 PM
Tamil # Tuesday, April 19, 2011 3:10:39 PM
Dustin WilsonKhadgar # Tuesday, April 19, 2011 4:25:07 PM
Now I can use Make It So again. The default image sizer is awful.
Tamil # Tuesday, April 19, 2011 4:26:28 PM
Dacotah # Tuesday, April 19, 2011 4:40:44 PM
mike-bak # Tuesday, April 19, 2011 9:44:10 PM
Originally posted by ersi:
angleritzangler # Wednesday, April 20, 2011 3:19:02 AM
This is exactly what I feared when Opera announced the support for extensions...
Cutting Spoonhellspork # Friday, April 22, 2011 12:27:24 AM
Similar to the way Speed Dials have changed, but there also are several ways to adjust them. This is still a learning period, what extra features to include vs what extra features need an API.
Unregistered user # Monday, April 25, 2011 11:43:35 PM
walterbugscout # Thursday, April 28, 2011 10:45:19 AM
Unregistered user # Wednesday, May 11, 2011 12:51:37 AM
Maarten MeurisNyerguds # Tuesday, May 24, 2011 2:09:39 PM
Tamil # Tuesday, May 24, 2011 2:41:50 PM
QuHno # Sunday, May 29, 2011 6:59:49 PM
Tamil # Sunday, May 29, 2011 11:53:42 PM
QuHno # Monday, May 30, 2011 3:21:50 PM
Tamil # Monday, May 30, 2011 3:25:42 PM
NoFanboyNofanboy # Tuesday, May 31, 2011 3:14:55 PM
And it is a pity that such a workaround is necessary, it would have been so easy for Opera to have an option in opera:config or in Ctrl-F12 for not resizing images.
(The extension for this never stops loading when applied to images - but the CSS method works perfectly.)
Unregistered user # Wednesday, June 8, 2011 1:37:04 PM
Unregistered user # Thursday, June 30, 2011 3:15:52 AM
Unregistered user # Thursday, June 30, 2011 4:17:44 AM
cremoso # Thursday, June 30, 2011 8:25:40 PM
Unregistered user # Friday, July 1, 2011 10:19:34 PM
Unregistered user # Tuesday, July 12, 2011 5:44:19 PM
James132 # Thursday, September 1, 2011 10:23:28 PM
body.contain > img { -o-object-fit: inherit !important; cursor: inherit !important; height: inherit !important; width: inherit !important; }With this all image sizes still stay centered, it simply overrides the class that Opera applies when you open the image. Hope this helps.
Tamil # Monday, September 5, 2011 8:39:45 AM
Unregistered user # Sunday, September 18, 2011 4:04:39 AM
Unregistered user # Friday, May 18, 2012 7:34:17 PM