Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Re: Specify displayed size of picture?

Reply
Thread Tools

Re: Specify displayed size of picture?

 
 
dorayme
Guest
Posts: n/a
 
      04-27-2008
In article <>,
Martin <> wrote:

> I'm using the following to display a picture on a page and to provide
> a link that will show the same picture - enlarged - in a second
> window. The problem is, the "enlarged" view is sized at whatever the
> original picture is. Is there some way I can specify the size of the
> enlarged one (kind of like I'm specifying the size of the first one
> (width=400 in this example))?
>
>
> <a href="APR_0001.jpg" target="_blank" title="Click here to see bigger
> picture">
> <img src="APR_0001.jpg" width=400></a>
>


If you are using the very same picture for both, you can achieve it by
choosing a smaller value for the width and height of the img on the page
that the above is on.

If you are wanting to keep the 400px width for the pic on the page but
make the same image appear bigger on the target page, you need to make
up another html file and in it give the instruction to make it bigger.
Thus on the referring page you might have something like:

<a href="enlarged.html" target="_blank">
<img src="APR_0001.jpg" width="400" height="200" alt="..."></a>

and in the enlarged.html file you would have:

<img src="APR_0001.jpg" width="800" height="400" alt="...">

It is not generally good practice to use the same image for both nor to
display a picture beyond its natural size.

You might reduce the 400px wide image in an image software program and
save it as a file first. This would get it sharp and also reduce its
file size nicely. You then could use the 400px to be the enlargements.

--
dorayme
 
Reply With Quote
 
 
 
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      04-27-2008
dorayme wrote:

> If you are using the very same picture for both, you can achieve it by
> choosing a smaller value for the width and height of the img on the
> page that the above is on.
>
> If you are wanting to keep the 400px width for the pic on the page
> but make the same image appear bigger on the target page, you need to
> make up another html file and in it give the instruction to make it
> bigger.


Resizing via HTML height and width values is never a good idea, dorayme.

--
-bts
-Friends don't let friends drive Vista
 
Reply With Quote
 
 
 
 
dorayme
Guest
Posts: n/a
 
      04-28-2008
In article <481510a5$0$7068$>,
"Beauregard T. Shagnasty" <> wrote:

> dorayme wrote:
>
> > If you are using the very same picture for both, you can achieve it by
> > choosing a smaller value for the width and height of the img on the
> > page that the above is on.
> >
> > If you are wanting to keep the 400px width for the pic on the page
> > but make the same image appear bigger on the target page, you need to
> > make up another html file and in it give the instruction to make it
> > bigger.

>
> Resizing via HTML height and width values is never a good idea, dorayme.


It is strange what you chose to quote of me. I suppose it would cast me
in too good a light to have left in my:

"It is not generally good practice to use the same image for both nor to
display a picture beyond its natural size."

from quite a short post?

You are escalating my "not generally good practice" to "never a good
idea" without argument. Since you do not give any argument why it is
*never* ever a good idea, I will not proceed further. At least we agree
about what I said, that is common ground, you just going further and
more fundamentalist and absolutist and unbendingly as do so many of your
mates here.

Good for you. The more I hear this sort of thing, the more I am happy to
be me.

--
dorayme
 
Reply With Quote
 
dorayme
Guest
Posts: n/a
 
      04-28-2008
In article <Xns9A8DC59F0930Eneredbojiasnano@85.214.90.236>,
Neredbojias <me@http://www.neredbojias.net/_eml/fliam.php> wrote:

> On 27 Apr 2008, dorayme <> wrote:
>
> >> In article <481510a5$0$7068$>,
> >> "Beauregard T. Shagnasty" <> wrote:
> >> Resizing via HTML height and width values is never a good idea, dorayme.

> >
> > It is strange what you chose to quote of me. I suppose it would cast me
> > in too good a light to have left in my:
> >
> > "It is not generally good practice to use the same image for both nor to
> > display a picture beyond its natural size."
> >
> > from quite a short post?
> >
> > You are escalating my "not generally good practice" to "never a good
> > idea" without argument. Since you do not give any argument why it is
> > *never* ever a good idea, I will not proceed further. At least we agree
> > about what I said, that is common ground, you just going further and
> > more fundamentalist and absolutist and unbendingly as do so many of your
> > mates here.
> >
> > Good for you. The more I hear this sort of thing, the more I am happy to
> > be me.

>
> I am happy you are you, too. Hell, it could have been me...


Or me! So we are both relieved. <g>

--
dorayme
 
Reply With Quote
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      04-28-2008
dorayme wrote:

> "Beauregard T. Shagnasty" <> wrote:
>
>> dorayme wrote:
>>> If you are using the very same picture for both, you can achieve it by
>>> choosing a smaller value for the width and height of the img on the
>>> page that the above is on.
>>>
>>> If you are wanting to keep the 400px width for the pic on the page
>>> but make the same image appear bigger on the target page, you need to
>>> make up another html file and in it give the instruction to make it
>>> bigger.

>>
>> Resizing via HTML height and width values is never a good idea, dorayme.

>
> It is strange what you chose to quote of me. I suppose it would cast me
> in too good a light to have left in my:
>
> "It is not generally good practice to use the same image for both nor to
> display a picture beyond its natural size."


'Cept your first four paragraphs instruct the OP how to do what we both
know is wrong. That's why I responded as I did.

--
-bts
-Friends don't let friends drive Vista
 
Reply With Quote
 
dorayme
Guest
Posts: n/a
 
      04-28-2008
In article <481547c7$0$30487$>,
"Beauregard T. Shagnasty" <> wrote:

> dorayme wrote:
>
> > "Beauregard T. Shagnasty" <> wrote:
> >
> >> dorayme wrote:
> >>> If you are using the very same picture for both, you can achieve it by
> >>> choosing a smaller value for the width and height of the img on the
> >>> page that the above is on.
> >>>
> >>> If you are wanting to keep the 400px width for the pic on the page
> >>> but make the same image appear bigger on the target page, you need to
> >>> make up another html file and in it give the instruction to make it
> >>> bigger.
> >>
> >> Resizing via HTML height and width values is never a good idea, dorayme.

> >
> > It is strange what you chose to quote of me. I suppose it would cast me
> > in too good a light to have left in my:
> >
> > "It is not generally good practice to use the same image for both nor to
> > display a picture beyond its natural size."

>
> 'Cept your first four paragraphs instruct the OP how to do what we both
> know is wrong. That's why I responded as I did.


First, imo, it is not always wrong. There are some situations where this
is too severe a description. Where the file size is very small, where
the difference in px size is not that great, where the quality does not
really matter.

Second, instructing is not recommending especially when it comes with
the rider I gave. Please remember that not all folk are like Bergamot
who only reads 10% of my words nor like Richard who reads none (but boy
o boy can that man drink! His kf is littered with empty tinnies from our
drinking binges). I expect or at least hope folk will read all and not
some of a short post and very short paragraphs.

Perhaps you have the idea that a feller will come here, read part of one
post, see one thing and go off with part of an idea. I have the idea
that if he does, bugger him. If he does not and stays curious and asks
and questions and we all chew the fat together, everything will come out
hunky dory.

I am sorry to be ever the optimist! I should not be so harshly punished
for it. You try making out on a strange planet! <g>

--
dorayme
 
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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Japanese Text not displayed on Image Generated by Servlet on winXP, Linux but displayed on Win2000 boney Java 1 12-15-2006 02:24 PM
How to convert integer to string array without specify array size? henrytcy@gmail.com C Programming 7 12-08-2005 06:02 AM
Is it possible to specify the size of list at construction? Anthony Liu Python 0 03-01-2005 08:33 PM
Specify the size of an image Jsp HTML 2 01-16-2005 10:39 PM
How should I specify size? William Payne C++ 6 02-04-2004 12:16 PM



Advertisments
 



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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57