Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Embedding a Graphic Instead of using <img src="...">

Reply
Thread Tools

Embedding a Graphic Instead of using <img src="...">

 
 
David Elliott
Guest
Posts: n/a
 
      02-18-2004

Is there a way to encode a graphic and then embed it into an HTML File?


Thanks,
Dave
 
Reply With Quote
 
 
 
 
Hywel
Guest
Posts: n/a
 
      02-18-2004
In article <(E-Mail Removed)>,
http://www.velocityreviews.com/forums/(E-Mail Removed)am says...
>
> Is there a way to encode a graphic and then embed it into an HTML File?
>
>
> Thanks,
> Dave


Not without some very dodgy table or <div> mark-up.

--
Hywel I do not eat quiche
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      02-18-2004
David Elliott wrote:
> Is there a way to encode a graphic and then embed it into an HTML File?


http://www.mozilla.org/quality/netwo...aboutdata.html
Works in Mozilla based browsers and recent versions of Opera.

--
David Dorward <http://dorward.me.uk/>
 
Reply With Quote
 
Steve Pugh
Guest
Posts: n/a
 
      02-18-2004
David Elliott <(E-Mail Removed)> wrote:

>
>Is there a way to encode a graphic and then embed it into an HTML File?


Yes, see http://www.faqs.org/rfcs/rfc2397.html.

Not supported by IE, so in practical terms useless for the web.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <(E-Mail Removed)> <http://steve.pugh.net/>
 
Reply With Quote
 
Marc Nadeau
Guest
Posts: n/a
 
      02-19-2004
Hywel a écrit:

> In article <(E-Mail Removed)>,
> (E-Mail Removed)am says...
>>
>> Is there a way to encode a graphic and then embed it into an HTML File?
>>
>>
>> Thanks,
>> Dave

>
> Not without some very dodgy table or <div> mark-up.
>


And should be restricted to _very_ small images since it produces huges html
files.

The gimp (Gnu Image Manipulation Program) can export graphics to html code
like this.

Bonne chance!

--
mv sco /dev/null
#
Marc Nadeau - La Pagerie - http://www.pagerie.com
 
Reply With Quote
 
Neil Marshall
Guest
Posts: n/a
 
      02-19-2004
David Elliott wrote:

>Is there a way to encode a graphic and then embed it into an HTML File?
>
>


Here is a perl program for making data: url's. The one without the
extension runs, the one with the extension is the source code.
http://software.hixie.ch/utilities/cgi/data/

 
Reply With Quote
 
Toby A Inkster
Guest
Posts: n/a
 
      02-19-2004
David Dorward wrote:

> David Elliott wrote:
>> Is there a way to encode a graphic and then embed it into an HTML File?

>
> http://www.mozilla.org/quality/netwo...aboutdata.html
> Works in Mozilla based browsers and recent versions of Opera.


It should be noted that Opera 7.1x often crashed on some well-formed
"data:" URLs. Opera 7.2x fixes the problem.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132

 
Reply With Quote
 
Whitecrest
Guest
Posts: n/a
 
      02-19-2004
In article <c10rfo$6ei$4$(E-Mail Removed)>, (E-Mail Removed)
says...
> David Elliott wrote:
> > Is there a way to encode a graphic and then embed it into an HTML File?

>
> http://www.mozilla.org/quality/netwo...aboutdata.html
> Works in Mozilla based browsers and recent versions of Opera.



So what you are saying is that this will NOT work on 90% of the browsers
being used.

If losing less than 15% because of javascript is a bad idea, how can
someone justify using something that doesn't work in 90% of the
browsers?

Someone is sending mixed signals....

--
Whitecrest Entertainment
www.whitecrestent.com
 
Reply With Quote
 
Kris
Guest
Posts: n/a
 
      02-19-2004
In article <(E-Mail Removed)>,
Whitecrest <(E-Mail Removed)> wrote:

> > http://www.mozilla.org/quality/netwo...aboutdata.html
> > Works in Mozilla based browsers and recent versions of Opera.

>
>
> So what you are saying is that this will NOT work on 90% of the browsers
> being used.
>
> If losing less than 15% because of javascript is a bad idea, how can
> someone justify using something that doesn't work in 90% of the
> browsers?


I believe it was never said "don't use JavaScript" without adding "to
rely your site on". I don't see why this does not go for this as well.
Optional or badly supported technology? Don't rely on it.

> Someone is sending mixed signals....


I don't think he is. But I'll leave defense at that. I am only replying
to prove the above point, not to stand up for someone who can perfectly
stand up for himself if he thinks it is even worth to consider.

--
Kris
<(E-Mail Removed)> (nl)
<http://www.cinnamon.nl/>
 
Reply With Quote
 
Whitecrest
Guest
Posts: n/a
 
      02-19-2004
In article <(E-Mail Removed)4all.nl>,
(E-Mail Removed)erlands says...
> In article <(E-Mail Removed)>,
> Whitecrest <(E-Mail Removed)> wrote:
>
> > > http://www.mozilla.org/quality/netwo...aboutdata.html
> > > Works in Mozilla based browsers and recent versions of Opera.

> >
> >
> > So what you are saying is that this will NOT work on 90% of the browsers
> > being used.
> >
> > If losing less than 15% because of javascript is a bad idea, how can
> > someone justify using something that doesn't work in 90% of the
> > browsers?

>
> I believe it was never said "don't use JavaScript" without adding "to
> rely your site on".....


Your reading way too much into what I wrote, I was speaking in general
terms, an observation of behaviour in the group if you will.

David (and others that offered this solution) takes the stand, "don't
use javascript". Why? Because 15% of the people browsing will not be
able to use it for one reason or another. And give or take a percent or
two, they are absolutely right.

I was commenting on how interesting it was that someone with that
viewpoint would offer a solution that would not work in 90% of the
browsers out there, but did not offer a similar warning (or repetitive
links) about how bad it would be and how you would be discriminating
against millions... (Again I am speaking in general not of any
individual.)

The OP's problem has been answered. Several have offered a solution
that will work on a percentage of browsers. Now they have to make a
choice. The lady or the tiger. (That is a reference to a story about
choices in case one was wondering.)


--
Whitecrest Entertainment
www.whitecrestent.com
 
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
problem in using asp.net stream graphic and image miladhatam@gmail.com ASP .Net 5 09-12-2008 08:39 AM
problem in using asp.net stream graphic and image miladhatam@gmail.com ASP .Net Web Controls 0 09-11-2008 01:18 PM
Using JavaScript to Customize Mouse Pointer Graphic?? Prisoner at War Javascript 5 04-20-2008 11:16 PM
Is it possible to mouseover a GRAPHIC . . . that launches another (freestanding) GRAPHIC (ie. when flash is _not_ available)? 50 SOMETHING GAL HTML 3 12-10-2006 01:10 AM
Using VB.Net or C#, utilizing the clipboard object, how to copy an MS Excel graphic from the clipboard to an image control and obtain its source reference TC ASP .Net 5 09-01-2004 04:49 AM



Advertisments