Programmatically prevent Firefox from automatically resizing images

By default in Firefox every time you open an image it will resize to fit the browser window, now if you view a lot of images it can be annoying to have to click on the image every time it loads to see its full size.

There is a way to turn this off roughly: config, but this is not a solution for the wider public.

Is there some way to turn this off with some JavaScript or CSS or whatever?

+1


a source to share


5 answers


If you would like to disable the automatic resizing of images in your browser, you can

  • type about:config

  • property search browser.enable_automatic_image_resizing

  • and set it to false

If you want it for your visitors, I can just repeat what Jeremy Sediq writes in Design Design Web Sites.



it's just their network, built on it.

And in that case, you really don't have to decide whether users want to use Firefox's auto-resize feature or not. You can always choose a solution that gives users more user experience. For example, you can set the Lightbox variant as already mentioned by Daniel A. White .

There is also a great_llama solution to open images inside an HTML page.

+4


a source


Specify a dynamic page that uses an IMG tag with an appropriate origin instead of pointing to a raw image. Use a hint or something similar to pass the name of the image to the page.



<html><body><img src="yourimage.jpg"></body></html>

      

+3


a source


I don't think it is possible to change this behavior anyway, at least using javascript or css.

Why not use a jQuery lightbox? http://leandrovieira.com/projects/jquery/lightbox/

+1


a source


Although I haven't tried it yet, I don't understand why it will log in if you wrap it in html and not directly link to the image.

if it's an option, just wrap it in html:

<style type="text/css">
 * { margin:0; }
</style>
<img src="whatever.jpg" />

      

+1


a source


If you are the owner of the image, insert the image into your HTML document. Firefox resizes the image only if you open it directly in the browser.

If you are speaking from a Firefox user perspective, I am thinking of: config is a good place to disable this feature.

+1


a source







All Articles