JPG or PNG?

  • Thread starter Luigi Donatello Asero
  • Start date
R

rf

Leif said:
You said that JPEG should always be used over PNG. Mind explaining how
that can not include line drawings?

Being the "another poster" I would like to know that as well :)

I do suspect (hope) that the Doormouse meant "use jpeg over png for pictures
but use gif for line drawings or anything else that will not tolerate lossy
compression, like images of text (logos etc).".
 
T

The Doormouse

Leif K-Brooks said:
If you're avoiding SVG by itself, you need to output to a raster image
format.

No, I just need to provide a raster image as backup in case the SVG does
not display. That, of course, has its own issues (Embed vs. Object).

The Doormouse
 
T

The Doormouse

rf said:
I do suspect (hope) that the Doormouse meant "use jpeg over png for
pictures but use gif for line drawings or anything else that will not
tolerate lossy compression, like images of text (logos etc).".

Yes.

Also, "use SVG occasionally".

:)

The Doormouse
 
L

Leif K-Brooks

The said:
No, I just need to provide a raster image as backup in case the SVG does
not display. That, of course, has its own issues (Embed vs. Object).

You're providing backup for something that's guaranteed to fail in all
four major browsers (Mozilla/Firefox, IE, Opera, Konqueror/Safari) which
don't have something extra installed? Why not provide the raster and
skip the SVG?

But even if you're just using a raster image for backup, which format
you choose would be fairly important.
 
T

The Doormouse

Leif K-Brooks said:
Why not provide the raster and skip the SVG?

Those with the plugin will benefit from the better graphics.
But even if you're just using a raster image for backup, which format
you choose would be fairly important.

True - GIF would be ideal for line art.

The Doormouse
 
L

Leif K-Brooks

The said:
True - GIF would be ideal for line art.

So you don't care about true color? Alpha transparency? Don't you even
care about bandwidth costs?
 
T

The Doormouse

Leif K-Brooks said:
So you don't care about true color? Alpha transparency? Don't you even
care about bandwidth costs?

True color for line art is not a consideration - if you need better than
255 colors for line art, you are then looking at something with a
gradient or photo. You will either end up dithering or going to JPG. PNG-
8 is not suitable for gradient images. PNG-24 is larger than JPG. JPG may
be lossy, but at high quality settings not only will this not be a
concern but also the file size will be much smaller. For archival
purposes, one can always use TIFF or PSD.

Alpha Transparency is fine for the browsers that support it, but in
practice IE does NOT right out of the box. Generally, there are few uses
for it, anyways.

Do not think that I will continue if you ask truly dumb questions like
"Do I care about bandwidth costs?". Of course I do - that's why I use GIF
for line art and JPG for photos and SVG/SWF for vector art. Why would I
even entertain a discussion on the PNG format if I was not hoping that
you would be right?

This discussion has been educational overall.

The Doormouse
 
C

Chris Morris

Leif K-Brooks said:
It depends what kind of image you have. If it's a diagram or cartoon --
that is, something with areas of entirely solid color -- then PNG is
the best format. If it's a photo or something else with lots of smooth
color changes, JPEG is better.

GIF is good for the same kind of image as PNG, but PNG should always
be used instead because PNGs are smaller and unpatented.

*Usually* smaller. GIFs tend to be smaller for images with <=16
colours and moderate to small physical dimensions, assuming both are
optimised heavily. I tend to try both formats and use the smallest.
 
S

Sam Hughes

*Usually* smaller. GIFs tend to be smaller for images with <=16
colours and moderate to small physical dimensions, assuming both are
optimised heavily. I tend to try both formats and use the smallest.

I have found PNG to be smaller even in those situations, if saved
correctly.
 
G

Guest

The said:
The basic problem is that there is no compelling reason to switch to
[PNG].

Toby, you forgot the main reason why I switched from GIF to PNG - no
patented algorithm for compressing the data! Compuserve started to assert
its patent on the LZH algorithm used in GIF. This was the very reason
that the Open Source community got together to create the PNG.

La'ie Techie
 
T

Toby Inkster

LÄÊ»ie Techie said:
Toby, you forgot the main reason why I switched from GIF to PNG - no
patented algorithm for compressing the data!

The patent expired about a year ago.
Compuserve started to assert its patent on the LZH algorithm used in GIF.

No it didn't. Firstly, LZW is used in GIF, not LZH. And secondly,
Compuserve never held a patent on LZW. Unisys held a patent on LZW and
started to assert it. Compuserve are a nice ISP that distribute a
Gecko-based browser. Don't bad-mouth Compuserve.
 
A

Aquila Deus

Leif K-Brooks said:
It depends what kind of image you have. If it's a diagram or cartoon --
that is, something with areas of entirely solid color -- then PNG is the
best format. If it's a photo or something else with lots of smooth color
changes, JPEG is better.

GIF is good for the same kind of image as PNG, but PNG should always be
used instead because PNGs are smaller and unpatented.

PNG cannot be used if you want transparency, because the damned IE
doesn't support it :)
 
R

rf

Aquila Deus
PNG cannot be used if you want transparency, because the damned IE
doesn't support it :)

There is a quite simple (albiet verbose) hack to cause IE honor trasparency.
Search the archive, it has been mentioned several times this week.
 
T

Toby Inkster

rf said:
There is a quite simple (albiet verbose) hack to cause IE honor trasparency.

Though no hacks are required if you want to stick to 256 colours with
binary transparency -- IE handles that sort of transparent PNG just fine.
 
A

Aquila Deus

**** Post for FREE via your newsreader at post.usenet.com ****

The puny human animal #b85eb48c25d412c76bb0d0aaca68f5ba The Doormouse said:
Yes, that's true. Yet it is superior for line art.

ummm... how about just use flash?

--
me = d2004xx = d2003xx = d2002xx

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*** Usenet.com - The #1 Usenet Newsgroup Service on The Planet! ***
http://www.usenet.com
Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
A

Aquila Deus

Toby Inkster said:
Though no hacks are required if you want to stick to 256 colours with
binary transparency -- IE handles that sort of transparent PNG just fine.

thanks!
 
A

Aquila Deus

Toby Inkster said:
Though no hacks are required if you want to stick to 256 colours with
binary transparency -- IE handles that sort of transparent PNG just fine.

thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top