will saving a JPG as a GIF make it smaller file size?
12-21-2005, 06:46 AM
|
will saving a JPG as a GIF make it smaller file size?
|
Posts: 23
|
Will saving a JPG as a Gif make it into a smaller file size?
|
|
|
|
12-21-2005, 10:29 AM
|
|
Posts: 75
Location: Cornwall, England
|
yes it will
you may lose quality though
|
|
|
|
12-21-2005, 12:46 PM
|
|
Posts: 1,188
Location: Manchester, UK
|
Not necessarily, it might actually increase the file size instead.
For smooth colour transitions, you typically want to avoid gif, but the best thing to do is experiment yourself.
|
|
|
|
12-21-2005, 01:43 PM
|
|
Posts: 103
|
Right, it depends on the image.
|
|
|
|
12-27-2005, 01:20 AM
|
|
Posts: 1
|
how about PNG?i dunno exactly, but for small picture,it will make smaller size.
__________________
if you aren't remembered, then you never existed.
|
|
|
|
12-27-2005, 01:36 AM
|
|
Posts: 116
Location: Canandaigua, NY
|
the generic rule of thumb is when using photo-type images (portraits for example) with many DIFFERENT pixels, you should use jpg. using gif will reduce your filesize when fewer different pixels are used (logos and other vector images for example)
the difference comes in the way that gif and jpg handle compressions. gif uses a 'binary'-type compression. it essentially 'switches' pixels on and off, so the more diversity in the pixels, the more pixels it much switch on and off, hence a larger filesize. whereas jpg will handle this compression differently and result in a smaller filesize.
some excellent articles on gif vs jpg:
http://www.wfu.edu/~matthews/misc/jp.../JpgVsGif.html
http://hotwired.lycos.com/webmonkey/...html?tw=design
http://www.siriusweb.com/tutorials/gifvsjpg/
PNG is an up and coming web technology sure to take off, but IE's support for transparency seriously limits it's usability at this point.
__________________
Graffetto Technologies : A distinguished web presence begins with distinguished web developers.
|
|
|
|
12-27-2005, 02:34 PM
|
|
Posts: 901
Name: Harvey C
Location: Brighton, UK
|
That's correct.
Simply, use GIFs for unvaried, small number of coloured (excuse the apalling English there) images, and JPEGs for more varied images, like photographs.
I wouldn't touch PNG with a barge-pole unless necessary, as the filesizes tend to be, well, massive...
|
|
|
|
12-29-2005, 07:34 AM
|
|
Posts: 28
|
Quote:
|
Originally Posted by Harvey
That's correct.
Simply, use GIFs for unvaried, small number of coloured (excuse the apalling English there) images, and JPEGs for more varied images, like photographs.
I wouldn't touch PNG with a barge-pole unless necessary, as the filesizes tend to be, well, massive...
|
exactly. this man is right!
|
|
|
|
01-03-2006, 06:50 PM
|
|
Posts: 1,832
Location: Somewhere else entirely
|
You can use 8-bit alpha PNGs in IE 6 with a bit of judicious CSS...
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';
Scribble Pad MOD for phpBB (aka MSN handwriting for forums)
|
|
|
|
01-04-2006, 08:07 AM
|
|
Posts: 618
|
I don't notice huge filesizes with my PNGs. Any other reason why I shouldn't be saving all my banners, logos, etc as png..?
|
|
|
|
01-04-2006, 08:16 AM
|
|
Posts: 1,188
Location: Manchester, UK
|
You can't animate PNGs and some browsers don't support PNG transparency.
|
|
|
|
01-04-2006, 08:32 AM
|
|
Posts: 618
|
Okay, I don't do animations for one.
And, which browsers don't support PNG transparency and what do they do instead?
|
|
|
|
01-04-2006, 08:40 AM
|
|
Posts: 1,188
Location: Manchester, UK
|
Yes, I don't often animate gifs either. IE doesn't support transparency though it's rumoured that version 7 will.
|
|
|
|
01-04-2006, 07:19 PM
|
|
Posts: 1,832
Location: Somewhere else entirely
|
Quote:
|
Originally Posted by Me
You can use 8-bit alpha PNGs in IE 6 with a bit of judicious CSS...
|
Look at www.rmf33.co.uk in IE and you'll see I have transparent pngs scattered all over with no trouble.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';
Scribble Pad MOD for phpBB (aka MSN handwriting for forums)
|
|
|
|
01-05-2006, 02:57 AM
|
|
Posts: 1,188
Location: Manchester, UK
|
There I was thinking I'd have to wait for IE7 and you've already gone and done it.
Maybe IE7 will support background-attachment: fixed!
EDIT: I'm confused! I read 'everywhere' that IE doesn't support alpha channel transparency, yet you appear to have shown the opposite. Oberon, can you shed any light on what you can and can't do with pngs and IE?
Last edited by gringo; 01-05-2006 at 03:25 AM..
|
|
|
|
01-05-2006, 02:58 PM
|
|
Posts: 1,832
Location: Somewhere else entirely
|
Quote:
|
Originally Posted by gringo
Maybe IE7 will support background-attachment: fixed!
|
Ah yes, that's one thing IE 6 won't do properly as of yet.
For transparent pngs my CSS goes like this:
Code:
#nbg {
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod='scale', src='images/fuzzm.png');
background-repeat: repeat-y;
width:231px;
}
fuzzm.png is a semitransparent graphic a few pixels high that fades at the edges to totally transparent. It makes the main column of my navigation menu. You can also use 'crop' as the sizing method instead of scale.
This all lives in an IE specific stylesheet. I include a different one in the page depending on what browser you look at the page with.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';
Scribble Pad MOD for phpBB (aka MSN handwriting for forums)
|
|
|
|
01-05-2006, 03:35 PM
|
|
Posts: 1,188
Location: Manchester, UK
|
I was looking at the stylesheet presented to firefox and would never have known there was an ie specific one!
Very clever. Thanks for that Oberon.
|
|
|
|
|
« Reply to will saving a JPG as a GIF make it smaller file size?
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|