By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,244 Members | 1,339 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,244 IT Pros & Developers. It's quick & easy.

Load smaller graphic file first in IMG SRC?

P: n/a
Have a large graphic file to display in an IMG SRC tag. How can you have it
quickly display a dummy small graphic first while it waits for the full
large file size to load in the same place in the html code. I believe I have
heard this can be done???
Jul 20 '05 #1
Share this Question
Share on Google+
11 Replies


P: n/a
AFAIK there's no HTML which allows a replacement image like you describe.
I've never tried it, but perhaps you can specify a background image with
CSS. See http://www.w3.org/TR/CSS2/colors.htm...und-properties.

"Al Franz" <al****@nospam.netmation.com> wrote in message
news:0ZtEb.396419$Dw6.1247727@attbi_s02...
Have a large graphic file to display in an IMG SRC tag. How can you have it quickly display a dummy small graphic first while it waits for the full
large file size to load in the same place in the html code. I believe I have heard this can be done???

Jul 20 '05 #2

P: n/a
Al Franz wrote:
Have a large graphic file to display in an IMG SRC tag. How can you have it
quickly display a dummy small graphic first while it waits for the full
large file size to load in the same place in the html code. I believe I have
heard this can be done???


The preferred way, though it's not exactly what you asked, would be to
use the "alt" attribute. However, there's also the "lowsrc" attribute
supported only by old versions of Netscape. The problem with "lowsrc"
is the fact that two images must be loaded.

Jul 20 '05 #3

P: n/a
Al Franz wrote:
Have a large graphic file to display in an IMG SRC tag. How can you
have it quickly display a dummy small graphic first while it waits
for the full large file size to load in the same place in the html
code. I believe I have heard this can be done???


You can use progressive encoding when you save the file. What's more
important though is that the user will want to wait, and you can make
sure by first creating a thumbnail of the image, with a link to "Large
version with Details of this image" or something like that.
Jul 20 '05 #4

P: n/a
MH
> Have a large graphic file to display in an IMG SRC tag. How can you have
it
quickly display a dummy small graphic first while it waits for the full
large file size to load in the same place in the html code. I believe I have heard this can be done???


You can resize the big picture to say 10%, save it and use that to show in
small size in the main page as a link to the full size picture in a separate
window.

Or you could use an 'interlaced' GIF instead of .JPG
--------
MH
Jul 20 '05 #5

P: n/a
On Fri, 19 Dec 2003 10:26:27 +0100, in comp.infosystems.www.authoring.html,
MH wrote:
Or you could use an 'interlaced' GIF


Or a progressive JPEG.

when 10% of the image will be loaded, the general shape of the image
will be visible, but with very low definition (and blur for jpeg)

isn't it exactly what you want ?

--
++++++++ Zelda, Dragon Ball, Mana and my (art)work at www.salagir.com ++++++++
Ecoute je t'accuse pas mais y en a un de nous deux qui m'a piqué 100 balles !
Jul 20 '05 #6

P: n/a
"Al Franz" <al****@nospam.netmation.com> wrote in message news:<0ZtEb.396419$Dw6.1247727@attbi_s02>...
Have a large graphic file to display in an IMG SRC tag. How can you have it
quickly display a dummy small graphic first while it waits for the full
large file size to load in the same place in the html code. I believe I have
heard this can be done??


lookup lowsrc
Jul 20 '05 #7

P: n/a
On Fri, 19 Dec 2003, Eric Cartman wrote:
"Al Franz" <al****@nospam.netmation.com> wrote in message news:<0ZtEb.396419$Dw6.1247727@attbi_s02>...
Have a large graphic file to display in an IMG SRC tag. How can
you have it quickly display a dummy small graphic first while it
waits for the full large file size to load in the same place in
the html code. I believe I have heard this can be done??


lookup lowsrc


What's the point of that? It's non-standard, and produces worse
results than doing the job properly, i.e with an image format which is
designed for progressive display.
Jul 20 '05 #8

P: n/a
"Alan J. Flavell" <fl*****@ph.gla.ac.uk> wrote in message news:<Pi*******************************@ppepc56.ph .gla.ac.uk>...
What's the point of that? It's non-standard, and produces worse
results than doing the job properly, i.e with an image format which is
designed for progressive display.


Maybe because I was answering the OP's real question. Something that
others in this group seem unable to do without trying to inject their
'without question' correct way to do things. Someone asks a question I
answer it. You might want to try it sometime.
Jul 20 '05 #9

P: n/a
Eric Cartman wrote:
Maybe because I was answering the OP's real question. Something that
others in this group seem unable to do without trying to inject their
'without question' correct way to do things. Someone asks a question I
answer it. You might want to try it sometime.


I agree that you should always provide an anwer or a possible solution
(maybe even thoughts), though if you know the answer and you are aware
of the side effects you should mention those as well.

--
Anne van Kesteren
<http://www.annevankesteren.nl/>
Jul 20 '05 #10

P: n/a
Eric Cartman wrote:
"Alan J. Flavell" <fl*****@ph.gla.ac.uk> wrote in message news:<Pi*******************************@ppepc56.ph .gla.ac.uk>...
What's the point of that? It's non-standard, and produces worse
results than doing the job properly, i.e with an image format which is
designed for progressive display.
Maybe because I was answering the OP's real question.


If you knew much about the lowsrc attribute, which you are apparently
recommending, you would know that it is not supported by current browser
versions, but by old versions of Netscape. How would that be helpful to
the OP?
Something that
others in this group seem unable to do without trying to inject their
'without question' correct way to do things.
If someone wants to know how to shoot themselves in the foot, they
should at least be informed that is what they are about to do.

Regardless, good design and coding practices should be encouraged, bad
practices should be discouraged. If the OP ultimately decides to reject
the wisdom and experience of The Group, then at least they should be
making a more informed decision than when they started out.
Someone asks a question I answer it. You might want to try it sometime.


You should consider learning a bit more about the subject before you
jump in, though. It could save you some embarassment. ;)

--
To email a reply, remove (dash)un(dash). Mail sent to the un
address is considered spam and automatically deleted.
Jul 20 '05 #11

P: n/a
On Sat, 20 Dec 2003, Eric Cartman wrote:
results than doing the job properly, i.e with an image format
which is designed for progressive display.
Maybe because I was answering the OP's real question.


I can't agree. You tried to answer only the words that were posted,
rather than any "real" question that you might have deduced to be
behind those words. What's more, you failed to answer even that one:
we simply have no idea what the questioner will find when they attempt
to "look up" this proprietary extension. Maybe the resources they
find will present it as a usable solution (which would be a pity), or
maybe they will reveal that it's an obsolete proprietary extension: we
simply have no idea, and neither, I suspect, do you.
Something that others in this group seem unable to do without trying
to inject
Welcome to usenet.
their 'without question' correct
Some mistake here.
way to do things.
And you still imagine that your response was better?
Someone asks a question I answer it.


Well, you tried. I'll confidently leave others to evaluate the result
that you achieved.
Jul 20 '05 #12

This discussion thread is closed

Replies have been disabled for this discussion.