HighDots Forums  

How to show a picture in its original size (no autofit to window)

alt.html alt.html


Discuss How to show a picture in its original size (no autofit to window) in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Stefan Mueller
 
Posts: n/a

Default Re: How to show a picture in its original size (no autofit to window) - 06-14-2006 , 07:20 PM






Hello

If I'd like to show an image in its original size or in other words if I'd
like to force the browser to use scroll bars if the image is too big I use
<img width=1500 height=1100 src=""big_picture.gif">
I don't need to use tables. But that's also a cute idea. Thanks for this
hint.

However, my original questing was how to show a big image within <a href
....></a>?
<a href="big_picture.gif"><img src="small_picture.gif"></a>

Here I'm not able to use 'width' and 'height' and unfortunately also no
tables for the big image (big_picture.gif).

Stefan



Reply With Quote
  #12  
Old   
Steven Saunderson
 
Posts: n/a

Default Re: How to show a picture in its original size (no autofit to window) - 06-14-2006 , 07:33 PM






On Thu, 15 Jun 2006 01:20:24 +0200, "Stefan Mueller"
<seekware-remove- (AT) yahoo (DOT) com> wrote:

Quote:
However, my original questing was how to show a big image within <a href
...></a>?
a href="big_picture.gif"><img src="small_picture.gif"></a

Here I'm not able to use 'width' and 'height' and unfortunately also no
tables for the big image (big_picture.gif).
If you have PHP on your server you could request the image via a PHP
page that specifies the width and height.

<a
href="imagepage.php?image=big_picture.gif&width=30 00&height=2000"><img
src="small_picture.gif"></a>

The PHP file could generate a response that contains the HTML you
require.

--
Steven


Reply With Quote
  #13  
Old   
dorayme
 
Posts: n/a

Default Re: How to show a picture in its original size (no autofit to window) - 06-14-2006 , 08:55 PM



In article <e6q5jt$9hc$1 (AT) news (DOT) imp.ch>,
"Stefan Mueller" <seekware-remove- (AT) yahoo (DOT) com> wrote:

Quote:
my original questing was how to show a big image within <a href
...></a>?
a href="big_picture.gif"><img src="small_picture.gif"></a

What are you wanting exactly? You can't show anything but text
within a string of text? Within what then? Their browser window?
Their monitor with Photoshop running? What, where, why?

Are you asking how to enable someone to see a big picture on
their screen via a link which itself is a small picture (like a
thumbnail)? What is wrong with what you have? What is wrong with
putting in the dimensions? Why do you care what happens at the
other end as long as the receiver gets the file?

Do you want to make the big pic available to others for printing?
Downloading it to see on their computers via an ordinary link is
not incompatible with this.

If need be, say it in German and someone will translate it.
There's a bloke in this alt.html that goes around Europe on a
motorbike, if he calls into an internet cafe and sees your post,
he will translate.

--
dorayme


Reply With Quote
  #14  
Old   
fred.haab@gmail.com
 
Posts: n/a

Default Re: How to show a picture in its original size (no autofit to window) - 06-14-2006 , 09:02 PM




Stefan Mueller wrote:
Quote:
Hello

If I'd like to show an image in its original size or in other words if I'd
like to force the browser to use scroll bars if the image is too big I use
img width=1500 height=1100 src=""big_picture.gif"
I don't need to use tables. But that's also a cute idea. Thanks for this
hint.

However, my original questing was how to show a big image within <a href
...></a>?
a href="big_picture.gif"><img src="small_picture.gif"></a

Here I'm not able to use 'width' and 'height' and unfortunately also no
tables for the big image (big_picture.gif).

Stefan
Yeah...

Unfortunately, just showing a raw image, you have zero control... I
mean, it's not even in a web page. You'd have to create a simple html
file for each image, OR you can do something like what Steven suggested
(because, really, the reason is that you probably don't want to
generate an html page per image when you might have hundreds of them),
OR you can do client side scripting and require the user to have
scripting enabled. It would be a pretty simple javascript, ultimately,
embedded in a simple

<table><tr><td><img id="my_image"></td></tr></table>

Then the link would be <a
href="show_my_image?image=the_real_image_name.jpg" >

And then you'd need some javascript to parse the query string and get
the image name.

So... yeah... to just tell a browser "show the next raw image at full
size" is not possible, you have to be able to mark it up yourself,
which means it needs to be in a page.



Reply With Quote
  #15  
Old   
Stefan Mueller
 
Posts: n/a

Default Re: How to show a picture in its original size (no autofit to window) - 06-16-2006 , 03:14 AM



Quote:
You'd have to create a simple html file for each image.
That's exact what I'm doing right now.

Many thanks to all for your explanations
Stefan




Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.