Firefox: Prevent Automatic Image Resizing and View Actual Size
Posted by MickeyMouse in Mozilla Firefox
Firefox will attempt to resize images automatically. I don’t particularly like it, so here is how to revert to the previous style of image handling. Post is updated as this continues to work in Firefox 2, Firefox 3, and Firefox version 4.
I want to see graphics actual size. Please don’t resize unless I ask you to. Here is how to disable Firefox’s automatic resizing of images.
1. Open Firefox
2. In the address bar enter: about:config
3. Copy and paste this into the filter line…
browser.enable_automatic_image_resizing
4. Double click the preference to change the value from true to false
Example in Firefox 2:

Example in Firefox 4:
The Conversation
Follow the reactions below and share your own thoughts.


October 06, 2008 at 5:56 am, Tomek said:
it works also for firefox 3
thx ! I hate the auto resizing idea
October 10, 2008 at 5:18 am, arhooley said:
wow, thank you!
January 05, 2009 at 2:59 am, onlyalot said:
thank you!! it was so annoying!
November 16, 2009 at 7:36 pm, Anonymous said:
Very Useful!!! thankss
July 22, 2010 at 7:30 pm, vortex100 said:
Why that feature is not part of Advanced Options is beyond me. You can stop resizing on IE without having to jump through these hoops. Thanks for the tip! Worked like a charm.
October 06, 2010 at 11:17 am, Ssdasd said:
Still works in 3.6.10, you just have to find the row with “browser.enable_automatic_image_resizing” and double-click it.
Thanks!
October 06, 2010 at 11:56 am, David Kirk - Founder/Editor said:
Thanks for the update. I’ll update the tutorial.
November 17, 2010 at 8:36 pm, Joe said:
I’m looking for a way to prevent firefox from resizing the browser window when I click on a graphic within a website to enlarge the picture. It’s annoying to have to click the window and make it bigger everytime I view a magnified image. Anybody know what to do? The above fix didn’t affect this particular issue.
December 17, 2010 at 1:21 am, Dctravelguy said:
At top on the menu, choose Tools, then click Options. Go to the Content tab, and to the right of Enable Javascript is the Advanced button. Click that and uncheck the selection “Move or resize existing windows”.
September 03, 2011 at 6:21 am, Leeroy said:
What about centering the image when it’s larger than the screen?
If I set browser.enable_automatic_image_resizing = false when I open a 2500px wide JPEG it shows up on screen from the top left corner.
I want it to sort of scroll to the center of its width by default!
Can anyone help?
This is hard if not impossible to do with Firefox’s userContent.css from %AppData%\Mozilla\Firefox\Profiles\\chrome, which is what I have naively been trying for hours…. setting various propreties to the “html > body > img:only-child” selector.