Can I force IE to open img at actual size?

This is a discussion on "Can I force IE to open img at actual size?" within the PHP Forum section. This forum, and the thread "Can I force IE to open img at actual size? are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Oct 25th, 2007, 13:19
New Member
Join Date: Oct 2007
Location: UK
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Can I force IE to open img at actual size?

Hi Guys,

I've built a site (www.sash-restoration.co.uk) that contains a lot of thumbnail images that open high res images in a new window when clicked. In Firefox, the image opens "fitted to screen" and then the cursor changes to a magnifying glass when the user moves over it, so it's fairly obvious that they can enlarge it further. However, in IE, for the user to realise that the image could be enlarged further, they have to hover the mouse over the image for over a second until the "expand to actual size" icon appears. I'm not convinced that the majority of users will know how to do this, and it's not very obvious. So:

is there a way to force IE (and firefox) to open the images at their actual resolution instead of fitting them in the window?

thanks!

Billy.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Oct 25th, 2007, 13:21
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Can I force IE to open img at actual size?

Hmmm ... I don't think there is ... not with HTML that's for sure. Maybe someone has a JS solution for this.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Oct 25th, 2007, 14:20
New Member
Join Date: Oct 2007
Location: london
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Can I force IE to open img at actual size?



there is another way you could do it! Open each image in Photoshop or similar and change the size of each image to a standard width - probably 800 would do. If you then click "Save For Web" it will save a web quality copy that still looks high quality - unless you need these images at a really high res, its better to save webspace and make them smaller...
If you save these as the same name as your images previously and upload them and overwrite what you currently have online then you won't need to relink the thumbnails to them.

Hope this helps!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Oct 25th, 2007, 14:33
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Can I force IE to open img at actual size?

Wow ... that could be tedious if he as 50+ images.

Personally ... I wouldn't worry about the whole zoom thing. People "should" know their browser.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Oct 25th, 2007, 14:59
New Member
Join Date: Oct 2007
Location: UK
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Can I force IE to open img at actual size?

Hi guys!

thanks for the responses! Actually I do really want the images to open at a higher resolution than the browser window. I want ppl to be able to scroll around the image, looking at high levels of detail. If ppl actually know how to use the "expand" features in their browser, then all is well, but if they don't, then all they see is a browser size image... The only other solution I can think of is to make something in Flash that lets ppl magnify images, but that looooooaaaaaads of work! I could of course put instructions on how to use browsers, but it's a bit distracting and ugly and I know my client won't like it!

Anyone know a JS solution?

cheers,

Billy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Oct 25th, 2007, 15:08
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Can I force IE to open img at actual size?

I'll move this in the JS forum for you ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Oct 25th, 2007, 15:13
Up'n'Coming Member
Join Date: Jun 2007
Location: Germany
Age: 23
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Can I force IE to open img at actual size?

How about opening the images in a second website, so you can handle the images as you want. That would be a PHP solution (wrong forum again.. ^^)

Just replace the <a href='theimagetoview.jpg'>Open Image</a> with an <a href='image.php?image=theimagetoview'>Open Image</a>. The image.php would look like this:
HTML: Select all
<html>
<head>
<title>Fullsize Preview</title>
</head>
<body>
<img src="<?php echo($_GET['image']); ?>">
</body>
</html>

(needs some validation though.. ^^)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Oct 25th, 2007, 15:17
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Can I force IE to open img at actual size?

Ah ... yes ... I totally forgot that if you actually create a page and set the original high res image in an actual <img> tag then the browser won't resize it.

Yes ... a PHP solution would work here

EDIT: So billy... if you are ok with a PHP solution I will move your thread back to HTML and then move it again to PHP ... :rofl:

Last edited by karinne; Oct 25th, 2007 at 15:22.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Oct 25th, 2007, 16:22
New Member
Join Date: Oct 2007
Location: UK
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Can I force IE to open img at actual size?

LOL! Cheers guys! Now I just have to be able to find this thread again when I come back tomorrow to try the code....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Oct 26th, 2007, 10:16
New Member
Join Date: Oct 2007
Location: UK
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Can I force IE to open img at actual size?

Hi again!

I've created the image.php page, and I can get that to open fine, but where I need to replace the 'image to view' part in the link, I'm not sure how to specify the path to the image. The path I've been using is:

"../images/development/section_detail_highres.gif"

but this doesn't seem to work in php land. how do i translate this path into php freindly code?

cheers!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Oct 26th, 2007, 10:27
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Can I force IE to open img at actual size?

If you are writing the links to the page with php you can use

echo 'www.yoursite.com/imagep.php?image=', rawurlencode('images/development/section_detail_highres.gif');

Otherwise you can write the images with the url values encoded.

eg http ://www.yoursite.com/image.php?image=images%2Fdevelopment%2Fsection_det ail_highres.gif

PHP will make the image availble in the $_GET superglobal.

$_GET['image']
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Oct 26th, 2007, 16:16
New Member
Join Date: Oct 2007
Location: UK
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Can I force IE to open img at actual size?

cheers will give it a go...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using an actual variable in function params? Jack Franklin PHP Forum 1 Mar 11th, 2008 18:06
Dump actual header alexgeek PHP Forum 6 Jan 23rd, 2008 14:54
Open Thource - For Open Source Thoughts Rakuli Free Web Site Critique 44 Oct 9th, 2007 09:51
try to open php and asks if i want to open or save file steven rowlands PHP Forum 6 Feb 20th, 2007 21:42
Displaying the actual URL on page shockbeton Web Page Design 9 Jun 22nd, 2006 18:35


All times are GMT. The time now is 02:21.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42