473,396 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Thumbnail Expansion Technique

On my main page I have a small picture - it's actually too small to
be useful. I only have it there to show that there's something to look
at, but I don't know how to "expand" it so it can be seen in a
reasonable size. Here's my code so far:

<img src="IMG_0492.jpg" width="56" height="70" align="left"
hspace="5" />

This picture consumes the whole screen (it's 952KB) when I click on
the file in Explorer, and I want the same sort of view if the user
clicks on it. I know some sites have this capability, but I can't see
how their code achieves the effect. How do I do this? TIA
Oct 1 '08 #1
10 2150
In article <MP************************@news.cox.net>,
mr*****@cox.net (Mike Copeland) wrote:
On my main page I have a small picture - it's actually too small to
be useful. I only have it there to show that there's something to look
at, but I don't know how to "expand" it so it can be seen in a
reasonable size. Here's my code so far:

<img src="IMG_0492.jpg" width="56" height="70" align="left"
hspace="5" />

This picture consumes the whole screen (it's 952KB) when I click on
the file in Explorer, and I want the same sort of view if the user
clicks on it. I know some sites have this capability, but I can't see
how their code achieves the effect. How do I do this? TIA
If you do this, you are running the risk of making people download
nearly a MB when they might even not be interested in filling their
screens. In any case, who has such spare screen space that needs a pic
of 1 MB to fill?

--
dorayme
Oct 1 '08 #2
On my main page I have a small picture - it's actually too small to
be useful. I only have it there to show that there's something to look
at, but I don't know how to "expand" it so it can be seen in a
reasonable size. Here's my code so far:

<img src="IMG_0492.jpg" width="56" height="70" align="left"
hspace="5" />

This picture consumes the whole screen (it's 952KB) when I click on
the file in Explorer, and I want the same sort of view if the user
clicks on it. I know some sites have this capability, but I can't see
how their code achieves the effect. How do I do this? TIA

If you do this, you are running the risk of making people download
nearly a MB when they might even not be interested in filling their
screens. In any case, who has such spare screen space that needs a pic
of 1 MB to fill?
Fair enough, but is there some sort of compromise that would let my
users actually _see_ the picture? As it is now, I can't set the length
and width values big enough to show the picture directly (it'd take too
much space on the main page), but I'd like to offer the option to see
the picture large enough as to make some sense out of it. I just want
to expand the size enough that my users could make sense of that part of
my site...
Oct 1 '08 #3
On my main page I have a small picture - it's actually too small to
be useful. I only have it there to show that there's something to look
at, but I don't know how to "expand" it so it can be seen in a
reasonable size. Here's my code so far:

<img src="IMG_0492.jpg" width="56" height="70" align="left"
hspace="5" />

This picture consumes the whole screen (it's 952KB) when I click on
the file in Explorer, and I want the same sort of view if the user
clicks on it. I know some sites have this capability, but I can't see
how their code achieves the effect. How do I do this? TIA

If you do this, you are running the risk of making people download
nearly a MB when they might even not be interested in filling their
screens. In any case, who has such spare screen space that needs a pic
of 1 MB to fill?
Fair enough, but is there some sort of compromise that would let my
users actually _see_ the picture? As it is now, I can't set the length
and width values big enough to show the picture directly (it'd take too
much space on the main page), but I'd like to offer the option to see
the picture large enough as to make some sense out of it. I just want
to expand the size enough that my users could make sense of that part of
my site...
Oct 1 '08 #4
On Tue, 30 Sep 2008 21:25:18 -0700, mr*****@cox.net (Mike Copeland) wrote:
On my main page I have a small picture - it's actually too small to
be useful. I only have it there to show that there's something to look
at, but I don't know how to "expand" it so it can be seen in a
reasonable size. Here's my code so far:

<img src="IMG_0492.jpg" width="56" height="70" align="left"
hspace="5" />

This picture consumes the whole screen (it's 952KB) when I click on
the file in Explorer, and I want the same sort of view if the user
clicks on it. I know some sites have this capability, but I can't see
how their code achieves the effect. How do I do this? TIA
You can control the size of the image by adjusting the jpeg quality value,
~70 is good enough for a web page, offer a high quality download as an
option.
....
Fair enough, but is there some sort of compromise that would let my
users actually _see_ the picture? As it is now, I can't set the length
and width values big enough to show the picture directly (it'd take too
much space on the main page), but I'd like to offer the option to see
the picture large enough as to make some sense out of it. I just want
to expand the size enough that my users could make sense of that part of
my site...
Have a look at how I did the thumbnail to large image on:

http://bugsplatter.id.au/firewall/ and
http://bugsplatter.id.au/bugs.css

I can't remember where I saw this explained, it's based on concepts from the
many CSS technique pages out there -- with CSS the big image is hidden as a
1px image until you mouseover the related thumbnail image.

Grant.
--
http://bugsplatter.id.au/
Oct 1 '08 #5
In article <MP***********************@news.cox.net>,
mr*****@cox.net (Mike Copeland) wrote:
On my main page I have a small picture - it's actually too small to
be useful. I only have it there to show that there's something to look
at, but I don't know how to "expand" it so it can be seen in a
reasonable size. Here's my code so far:
>
<img src="IMG_0492.jpg" width="56" height="70" align="left"
hspace="5" />
>
This picture consumes the whole screen (it's 952KB) when I click on
the file in Explorer, and I want the same sort of view if the user
clicks on it. I know some sites have this capability, but I can't see
how their code achieves the effect. How do I do this? TIA
If you do this, you are running the risk of making people download
nearly a MB when they might even not be interested in filling their
screens. In any case, who has such spare screen space that needs a pic
of 1 MB to fill?

Fair enough, but is there some sort of compromise that would let my
users actually _see_ the picture? As it is now, I can't set the length
and width values big enough to show the picture directly (it'd take too
much space on the main page), but I'd like to offer the option to see
the picture large enough as to make some sense out of it. I just want
to expand the size enough that my users could make sense of that part of
my site...
First, let's get clear on the characteristics of the enlarged pic you
want to make available. You should prepare two images, one a thumbnail,
small in px size but not necessarily high in compression, its physical
size will guarantee a small file size. 56 by 70 is very small, does it
have to be that small? Note that if you make it a bit bigger, you might
take the pressure off people needing to see it bigger still. That is a
great saving all things considered. That is one thing.

Second, the enlarged image. You can make available one that is about
600-800px wide and use a medium to low sort of compression and you will
mostly be able to keep under 100K and have it quite respectable in
general. Do not use compression to bring file size down at the expense
of crappy quality, make the pic smaller in px size instead as this is
the most dramatic thing you can do to reduce file size. There are no
fixed rules, you will develop judgement.

Third, the method of delivery. This is what I almost always prefer (for
what it is worth): make the thumbnail or its caption or accompanying
reference a link to a larger pic. This larger pic can be simply linked
to directly or via being embedded in another HTML page.

But there are other techniques which can be used whereby you load the
two pics up and one is brought into view on hovering. Is this what you
want?

--
dorayme
Oct 1 '08 #6
Gazing into my crystal ball I observed Grant <g_********@dodo.com.au>
writing in news:ec********************************@4ax.com:
Have a look at how I did the thumbnail to large image on:

http://bugsplatter.id.au/firewall/ and
http://bugsplatter.id.au/bugs.css

I can't remember where I saw this explained, it's based on concepts
from the many CSS technique pages out there -- with CSS the big image
is hidden as a 1px image until you mouseover the related thumbnail
image.

It's a nice idea, and I've used it before, but, it requires the large
image be downloaded by the client at the same time the small image is.
Without CSS, both images are shown. I'm doing something similar to
Brucie's Butterflies - where thumbnails and a larger image are on the
same page, and the larger image has a link to an even bigger image. See
http://trishhouse.com/bedroom.php?pic=59 .

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Oct 1 '08 #7

Mike Copeland wrote:
>dorayme wrote:

If you do this, you are running the risk of making people download
nearly a MB when they might even not be interested in filling their
screens.

Fair enough, but is there some sort of compromise that would let my
users actually _see_ the picture?
Yes - do what Nielsen calls Relevance-Enhanced Image Reduction
http://www.useit.com/alertbox/9611.html

Scroll down the page for the details.

You need a graphics editor to do this, but you should already have one
if you're putting your own pictures on the web. Make a thumbnail image
of the cropped piece and use that to link to the large image, though
952KB is too weighty even for an enlargement, IMO. You should reduce
that down to something more tolerable, too.

--
Berg
Oct 1 '08 #8
On my main page I have a small picture - it's actually too small to
be useful. I only have it there to show that there's something to look
at, but I don't know how to "expand" it so it can be seen in a
reasonable size. Here's my code so far:

<img src="IMG_0492.jpg" width="56" height="70" align="left"
hspace="5" />

This picture consumes the whole screen (it's 952KB) when I click on
the file in Explorer, and I want the same sort of view if the user
clicks on it. I know some sites have this capability, but I can't see
how their code achieves the effect. How do I do this? TIA
>
If you do this, you are running the risk of making people download
nearly a MB when they might even not be interested in filling their
screens. In any case, who has such spare screen space that needs a pic
of 1 MB to fill?
Fair enough, but is there some sort of compromise that would let my
users actually _see_ the picture? As it is now, I can't set the length
and width values big enough to show the picture directly (it'd take too
much space on the main page), but I'd like to offer the option to see
the picture large enough as to make some sense out of it. I just want
to expand the size enough that my users could make sense of that part of
my site...

First, let's get clear on the characteristics of the enlarged pic you
want to make available. You should prepare two images, one a thumbnail,
small in px size but not necessarily high in compression, its physical
size will guarantee a small file size. 56 by 70 is very small, does it
have to be that small? Note that if you make it a bit bigger, you might
take the pressure off people needing to see it bigger still. That is a
great saving all things considered. That is one thing.

Second, the enlarged image. You can make available one that is about
600-800px wide and use a medium to low sort of compression and you will
mostly be able to keep under 100K and have it quite respectable in
general. Do not use compression to bring file size down at the expense
of crappy quality, make the pic smaller in px size instead as this is
the most dramatic thing you can do to reduce file size. There are no
fixed rules, you will develop judgement.

Third, the method of delivery. This is what I almost always prefer (for
what it is worth): make the thumbnail or its caption or accompanying
reference a link to a larger pic. This larger pic can be simply linked
to directly or via being embedded in another HTML page.
Well, as a novice at this I'm not sure how I want to do this. 8<{{
Basically, I want to have the small picture on the main page be
clickable (perhaps with a "Click to Enlarge" caption) and have that
action produce a larger view of the picture. It could be another window
that's presented...I dunno. I just want the used to be able to see the
picture's detail better than how it appears on the main page.
I suppose a scrollover would work, too. I just don't know how to
code for these options - nor what to use with what I have so far.
Oct 1 '08 #9
Mike Copeland wrote:
Well, as a novice at this I'm not sure how I want to do this. 8<{{
Basically, I want to have the small picture on the main page be
clickable (perhaps with a "Click to Enlarge" caption) and have that
action produce a larger view of the picture. It could be another window
that's presented...I dunno. I just want the used to be able to see the
picture's detail better than how it appears on the main page.
Is there a reason you don't just:

<a href='larger_image.jpg'><img src='thumbnail.jpg' width='xx'
height='yy' alt=''></a>

?
Oct 1 '08 #10
Gazing into my crystal ball I observed Scott Bryce
<sb****@scottbryce.comwriting in
news:xN******************************@comcast.com:
Mike Copeland wrote:
> Well, as a novice at this I'm not sure how I want to do this.
8<{{
Basically, I want to have the small picture on the main page be
clickable (perhaps with a "Click to Enlarge" caption) and have that
action produce a larger view of the picture. It could be another
window that's presented...I dunno. I just want the used to be able
to see the picture's detail better than how it appears on the main
page.

Is there a reason you don't just:

<a href='larger_image.jpg'><img src='thumbnail.jpg' width='xx'
height='yy' alt=''></a>

?
Or even <a href="larger_image.jpg" title="View a larger picture of
blah"><img src="thumbnail.jpg" width="xx" height="yy" alt="Picture of
blah"></a>

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Oct 1 '08 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mike | last post by:
Sites using thumbnail preview for world wide web file navigation and searching. Below are list of sites that are either researching or providing thumbnail preview images for online web...
1
by: Xah Lee | last post by:
The following is a program to generate thumbnail images for a website. Useful, if you want to do that. It is used to generate the thumbnails for my “Banners, Damsels, and Mores” project...
8
by: barb | last post by:
So that the world at large benefits from our efforts, here is one fully documented way to use Windows Irfanview freeware to create thumbnail web galleries (http://www.irfanview.com). STEP 1:...
11
by: Jane | last post by:
Hi, I need some help (php rookie) to build a thumbnail page using php. I'v a mysql database containing links to the original image files. No thumbnails created so far. It would be nice when...
3
by: lolo | last post by:
hello. happy new year. I'm trying to build a website for my wife and she is adament on having a horizontal thumbnail scrolling div. great. I have a good vertical scrolling thing, but can't...
13
by: Casimir Pohjanraito | last post by:
I have a list of links, with a thumbnail image hidden(resized) next to the link. Complete html&css at end of this post. CSS for the link resizes the image on a:hover. All is good, except the...
7
by: oscartheduck | last post by:
Hi folks, I'm trying to alter a program I posted about a few days ago. It creates thumbnail images from master images. Nice and simple. To make sure I can match all variations in spelling of...
8
by: Arno R | last post by:
Hi all. When I need to search for pictures, I always have too choose thumbnail-view manually. Is it possible to open the common dialog in thumbnail-view programmatically? Example ?? At the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.