Forum Moderators: open

Message Too Old, No Replies

Internet explorer rescales images

how to stop it?

         

malasorte

12:40 pm on Mar 24, 2006 (gmt 0)

10+ Year Member




On my website I use some images with a large size (width/height).

Internet explorer automatically rescales them to fit the screen, when a visitor opens the image from a link.

Both I and my visitors find that extremely annoying. Opera (THE browser for me) for example does not do this.

Is there a script I could use to stop Internet Explorer from rescaling images?

Jon_King

12:44 pm on Mar 24, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Tools >Internet Options >Advanced >uncheck Enable Automatic Image Resizing

Robin_reala

12:59 pm on Mar 24, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can add this to your <head> to turn it off for everything on that page:

<meta http-equiv="imagetoolbar" content="false">

or if you want to do it on a specific image add this attribute:

galleryimg="false"

Of course, if you use the attribute your page will fail to validate.

malasorte

5:32 pm on Mar 24, 2006 (gmt 0)

10+ Year Member




It's not working. <meta http-equiv="imagetoolbar" content="false"> validates just fine, but it doesen't do what I need. I found a description for what it does:

"This turns off Internet Explorer's image toolbar that appears when you hover over an image. An example of the toolbar is shown to the left. This bar allows a surfer to save, print or email and image, or open the "My Pictures" folder.

Can anybody come with another solution?

tedster

5:57 pm on Mar 24, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Microsoft kind of scrambled the message by covering the Image Toolbar and Automatic Image Resizing on the same page [microsoft.com]. In fact, the two functions are not the same and as you discovered, turning off the toolbar does nothing for image resizing.

The page I linked to above has one intriguing statement on the issue:

Automatic Image Resizing works only when users navigate directly
to pictures. Internet Explorer cannot resize pictures that are
embedded within HTML pages.

I'm not sure exactly what they mean here - not likely they are literally talking about the <embed> tag! Try putting the images in a table cell, even if the table has only one cell.

jessejump

7:38 pm on Mar 24, 2006 (gmt 0)

10+ Year Member



>>>>> when users navigate directly
to pictures.

The URL ends in picture.jpg
not file.html

tedster

8:16 pm on Mar 24, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Of course! Thanks jesse, I wasn't thinking very clearly. So all that's needed should be a bare-bones html document to hold an <img> element.

malasorte

2:01 am on Mar 26, 2006 (gmt 0)

10+ Year Member



>Of course! Thanks jesse, I wasn't thinking very >clearly. So all that's needed should be a bare-bones >html document to hold an <img> element.

This sounded great and simple and I was ready to implement.

After giving some though I realized that this would mean that I will also lose all my visitors from image search engines. The explication is not important; the problem comes from the design of my site.

Isn't there a simpler solution for this? I spent hours today searching for some kind of wonder script, but no luck so far...

tedster

3:23 am on Mar 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've done some researching as well -- found nothing. Since this feature is set in the registry, there may be no legitimate way to disable it.

jt007superman

4:19 am on Mar 27, 2006 (gmt 0)

10+ Year Member



Using Unix/Linux?
You could use .htaccess file to redirect yourdomain.com/pic1.jpg -> yourdomain.com/pic1.html

keyplyr

7:19 am on Mar 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



... I realized that this would mean that I will also lose all my visitors from image search engines - malasorte

One option is to use <a href="pic1.jpg">link text</a>

The pic will open in new window so resizing won't interfere with your layout, and the image search engine will find the file reference the same place it did before so you shouldn't loose traffic (tested in IE and Firefox.)