Get around automatic image size reduction by browsers

  • Been Told
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jan 18, 2008
  • Posts: 9
  • Status: Offline

Post June 26th, 2008, 2:33 am

Hi everyone!
I have a problem and that is, I have a link to an image on a client's website that opens a new window (just the normal <a href="blabla.jpg" target="_blank">bla bla</a> stuff).
Now the image is 1200 x 1000 pixels, so most browsers will automatically resize the image to fit the screen and you have to click it again to view it in its full size. And my client doesn't want that.
I did promise to see if there is a way of getting around that - so that is my question.
Is there a way to get around that? Possibly with JavaScript???

Thanks in advance for any tips or hints.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 26th, 2008, 2:33 am

  • casablanca
  • Proficient
  • Proficient
  • User avatar
  • Joined: May 29, 2007
  • Posts: 481
  • Status: Offline

Post June 26th, 2008, 2:43 am

I don't think a website can order the browser to do so. However, there are browser settings to permanently disable automatic image resizing.

For IE: Internet Options > Advanced > Multimedia > Enable automatic image resizing

For Firefox: Type about:config in the address bar, look for an option named browser.enable_automatic_image_resizing and set it to false.
No Strings Attached: A JavaScript graphics demo.
  • Been Told
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jan 18, 2008
  • Posts: 9
  • Status: Offline

Post June 26th, 2008, 3:23 am

Oh well, too bad. :( Thanks for the information. :)
  • casablanca
  • Proficient
  • Proficient
  • User avatar
  • Joined: May 29, 2007
  • Posts: 481
  • Status: Offline

Post June 26th, 2008, 3:35 am

Hmm.. I just thought of another way around. Instead of directly linking to the image, like <a href="blah.jpg">, if you create a dummy page with the image in it, like <img src="blah.jpg" />, it won't get resized. That might be a better solution.
No Strings Attached: A JavaScript graphics demo.
  • Been Told
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jan 18, 2008
  • Posts: 9
  • Status: Offline

Post June 26th, 2008, 3:39 am

OMG I can't believe I didn't think of this! It's so obvious!LOL
Thanks again - awesome! :)

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 109 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.