Gif

GIF (Graphics Interchange Format) is an image file format associated with ".gif" file extension

Png

PNG (Portable Network Graphics) is an image file format designed to store raster graphics



Smaller files transparent

Example

"If your png files are coming out larger than equivalent gif files it is almost certainly because your source image has more than 256 colors"

from question  

Which format for small website images? GIF or PNG?

"I used gif because its file size 2.1kb was considerably less than png or jpeg in this case"

from question  

Fill div with cropped image, preserve aspect ratio

"You can then use imagecopy to insert each gif image including the background and imagepng to generate png output which is better for line art than jpeg offers better compression than gif and can support more than 256 colors"

from question  

Using image create function

"Since that appears to generate index-color gif files which are smaller than the png files that doxygen generates"

from question  

How do make doxygen generate index-color PNG files

"Just press save and give it a name and that photoshop image will be saved into a transparent background png file which presents more colors and it s smaller than a gif file and is as good as a jpg"

from question  

Is it possible to have a transparent photoshop image render in CSS?

"Convert it to png 10-30 smaller than gif on average"

from question  

What to do with a big image that's slowing website loading down significantly

"But keep in mind that the gif color palette is way smaller than png"

from question  

Convert .png image to .gif image

"One thing to note is that gif supports a smaller palette than png - only up to 256 colors"

from question  

Reduce any image size

"Gif is smaller because it s based on an colour palette of 256 colours rather than the separate rgb values for each pixel or group of pixels in jpg and png"

from question  

Why '.png' files produced by ImageMagick are so much bigger than '.jpg' & '.gif' files?

"Indexed png less than 256 colors is actually always smaller than gif so i use that most of the time"

from question  

Which format for small website images? GIF or PNG?

"I m not sure if this matters but the gif is significantly larger than the png files"

from question  

Animated GIF in Splashscreen

"Jpg and png work well for most applications but the files will be larger than gif for very simple graphics"

from question  

What image type should I use when? GIF, JPG or PNG?

"It will always be a web format which basically comes down to jpg png and gif with gif being very unlikely because of its limitations gif can contain 256 colors at most and is generally larger than png"

from question  

FB Profile Pic always returned as ".jpg"?

"Icon size indexed png is often smaller than the same gif"

from question  

Javascript proof-of-concept of GIF (re)compression

"It might help to reduce your gif file sizes smaller oh and i believe -depth 8 can only be used for png images"

from question  

How can I compress the size of gif images with ImageMagick?

"If png isn t smaller than gif then your software may be saving your software poorly - look for png optimisation progams like pngout and pngnq"

from question  

What image type should I use when? GIF, JPG or PNG?

"A 8-bit png shim is smaller than the same dimension 1 pixel gif and everything will still work as planned"

from question  

IE8 - navigation links not working

"But in that regard it is replaced by png which is generally smaller supports alpha transparency where gif pixels are either fully transparent or fully opaque and most importantly gif images are limited to 256 colors"

from question  

HTML/CSS/JS Show gif on hover, what exactly is a gif?

"Wewtaco i noticed that your png file has wider dimension than the gif file and i am guess that could be a reason the black bars are showing up"

from question  

Black bars on transparency in gif when displaying in Java?

"Png has a wider color pallete than gif and gif is properitary while png is not"

from question  

What are the different usecases of PNG vs. GIF vs. JPEG vs. SVG?

Mode apart animation

Example

"Png is capable of every image mode of gif apart from animation and when using the same image mode png will have better compression due to its superior deflate algorithm compared to lzw;png is also capable of additional modes that gif cannot do such as 24 bit color and alpha transparency but this is where you need to be careful if you forget to convert to palette mode your png image may be saved in 24 bit color which will take more space"

from question  

What image type should I use when? GIF, JPG or PNG?

"Png is capable of every image mode of gif apart from animation and when using the same image mode png will have better compression due to its superior deflate algorithm compared to lzw;png is also capable of additional modes that gif cannot do such as 24 bit color and alpha transparency but this is where you may run into problems on the web"

from question  

Website Image Formats: Choosing the right format for the right task

Support use gif

Example

"Png gives you better alpha result than gif"

from question  

JavaScript to control image animation?

"You should use png instead of gif because png instead offers better compression and features"

from question  

Android save gif from byte array

"The gif format is substantially less capable than png"

from question  

How can I convert PNG to GIF keeping the transparency?

"The png format is a popular alternative to gif images since the png format uses better compression techniques and does not have a limit of 256 colors but pngs do not support animations"

from question  

What are the different usecases of PNG vs. GIF vs. JPEG vs. SVG?

"Png is a newer format and often better than either jpeg of gif - especially for screenshots"

from question  

What image type should I use when? GIF, JPG or PNG?

"The gif format doesn t support this so unfortunately no there isn t a way to do it;the edges in a png are smooth because of anti-aliasing and thus variable opacity"

from question  

How to get better transparency with GIFs?

"Png compresses much better than gif and allows more colors at the same time"

from question  

Bash Batch Resize Images File Size Problem

"Also if i change all to png is not bigger and alos i am using prawn pdf outputting these images so cant use gif"

from question  

Only convert images of a certain file type with paperclip styles

"For example png has better support for transparency than gif or jpeg"

from question  

Should i convert uploaded photos into one format or keep their original format

"For example given gif may be deprecated in a system because png has proven better for the system s users - perhaps because the system s supports better colour depth preserving the colours more accurately or svg might be deprecated because some clients have been found to be using web browsers that won t display t jpeg might be deprecated because the system s s known the images in the system aren t natural photographic images and the format gives visually poor results despite larger compressed files slower processing speed and higher memory usage - lots of possible motivations for making things deprecated"

from question  

Explanation about deprecated enum types

"The format is not much good for anything else given a png will support translucency and a lot more colors than a gif"

from question  

JButton not showing up properly over GIF

"As a general rule png is never worse and often better than gif because of superior compression"

from question  

Which format for small website images? GIF or PNG?

"Animated png is better than gif if we re focused on file size รข achieving a smaller file size was one of the reasons the apng format was designed"

from question  

APNG vs GIF. Which is Better?

"Many people don t know about 8-bit png which is usually better than gif in size."

from question  

Type Image formats

"Versions of gd older than gd-1.6 support gif format images and do not support png where versions greater than gd-1.6 and less than gd-2.0.28 support png not gif;gif support was re-enabled in gd-2.0.28"

from question  

* (no title is found for this review)

"There might be some edge cases where gif is slightly better because the png format may have a slightly larger overhead from metadata but it s really not worth the worry"

from question  

Which format for small website images? GIF or PNG?

"According to wikipedia the png format provides better compression than gif"

from question  

Why is the GIF format not the most compact format for natural images?

"While png is definitely better that gif occasionally there is a use case for needing to stay in gif format"

from question  

Resize transparent images using C#

"Png images are always compressed lossless but their compression algorithm works better than competition gif"

from question  

How to optimize image in java for performance

Others

Example

In general jpeg is better suited for photos while gif is better for graphic objects like buttons or rendered letters;png is good in both regards but that discussion tends to get a little religious because there are license fees to pay if you develop a programm that reads writes gif or jpeg while png is free

from question  

What image type should I use when? GIF, JPG or PNG?

Png achieves better compression than gif because it applies a pre-filtering step before the lossless compression deflate roughly equivalent to lzw. see wikipedia s explanation of png filtering

from question  

Why is the GIF format not the most compact format for natural images?

You can use transparent gif they are somewhat supported;transparent png however not

from question  

How to get maximum compatibility with most of the devices for a Mobile Website?

Depending on your animation content you can optimize your gif so this png works s more web device friendly when loading

from question  

Exporting a gif from a Processing sketch w/ Gif-animation library

Paul points out that png compresses static line art better than gif for nearly every situation

from question  

Ruthlessly compressing large images for the web

However gif was not a supported image file in previous versions of ax maybe there is an error with transparency;my first suggestion is to convert the gif to png update the image in the check layout and try again

from question  

AX 2009 Check (Cheque) Logo Not Printing Correctly

With the parentheses gif|png|jpg will match followed by gif or jpg or png and then followed by s

from question  

Regex has unexpected results. I am new to this, fair warning

Back to Home
Data comes from Stack Exchange with CC-BY-SA-4.0