Results 1 to 15 of 18
Thread: Difference Between Jpg and Gif
-
10-18-2012, 06:10 PM #1
- Join Date
- Oct 2012
- Posts
- 3
Difference Between Jpg and Gif
I am not a computer science geek and thus do not understand the details that goes behind when the images are stored. The thing i am interested to know is that what are the major difference between Jpg image Format and Gif and what is most suitable for images for a website.
Which format out of Jpg and gif is more suitable for storing animations and what is the reason for this. If any body can tell me the difference in both of these types and if these are interchangeable. By interchangeable i mean that if an image is stored in Gif format can it be converted to Jpg and vice versa and what would happen to the quality after the change in Format of Jpg to Gif and Gif to Jpg.
Also tell me what Graphical editors can be used to manipulated and edit images of both of these formats.
-
02-18-2013, 10:20 PM #2
- Join Date
- Feb 2013
- Posts
- 310
GIF supports animation and basic transparency. GIF images compress the best when the source image has a lot of solid areas and not a lot of variation vertically. In other words an image with a lot of solid horizontal lines would compress better than an image with a lot of vertical lines. The reason is GIF reads images from left to right line by line, looking for long blocks of pixels where it can skip over. JPEG images are better suited for photographic quality images with a lot of detail. JPEG doesn't support animation or transparency. Similarly, when you're dealing with source images that have a lot of solid colors, sometimes JPEG compression artifacts can stand out more, and a GIF would probably be a more suitable format. GIF files can get really large if you try to convert a photographic image with a lot of detail and gradations in it, the more you try to reduce the colors in them the choppier and more posterized the image will become. JPEG generally gets lower file sizes, but you can see compression artifacts at smaller sizes.
-
02-19-2013, 07:54 AM #3
You should also checkout the PNG format, it's used a lot as a format for pictures to have on your website. It can have transparency too and it can take less space than a gif, but of course, it doesn't have animations.
Regarding gif's, the big advantage is really animations, if it's just a image, i'd go PNG, or maybe jpg if it's a big one.
-
02-19-2013, 11:50 AM #4
- Join Date
- Feb 2013
- Posts
- 310
True, PNG is probably the most flexible of the three since it has the color depth of a JPEG but also alpha transparency - as opposed to GIF which has transparency, but with rough jagged edges, and it can only do 100% transparency. Honestly, I seldom see animated GIFs used at all these days, so I wouldn't really worry about those. You could just as easily create an HTML5 animation with some PNG files and pull off a similar effect - and possibly a smaller file size too since it's only loading each image component once, rather than a file that contains a bunch of separate frames as with a GIF.
-
02-20-2013, 12:54 PM #5
Yeah that's a nice method.
Yet many people prefer to just create the gif with some gif editor/creator, instead of coding it by themselves with scripts.
-
02-21-2013, 12:10 PM #6
I tend to use JPEGs when I am adding a photograph to my website such as landscape or the inside of a restaurant. Other than that I use PNG mainly because of its transparency ability. There is nothing worse than a picture with a white background placed on a website with a non-white background. I cant say that I have used GIF much as I do not usually use images with animation.
-
03-13-2013, 12:33 PM #7
- Join Date
- Mar 2013
- Posts
- 43
Re: Difference Between Jpg and Gif
I can honestly say that I use PNG's for almost everything, GIF's in my opinion are only for animated graphics and should be used for nothing other than that.
-
03-15-2013, 10:07 AM #8
- Join Date
- Mar 2013
- Posts
- 64
In simple words, I will say, GIF files will give you a small resolution, sometimes, animation also.
Whereas, JPGs are designed to give you better quality with high resolution.
Most of the wallpapers that you set on your desktop, are of jpg format.
-
03-17-2013, 06:45 AM #9
- Join Date
- Feb 2013
- Posts
- 310
One thing to keep in mind though when working with PNG files, is that older versions of Internet Explorer have issues with handling the alpha transparency and opacity of them. In some cases they will either ignore the transparency info all together or make it a really harsh transition such as a GIF. There are some extra steps you need to take to work around this. You can read more about it here: Solving IE7 & IE8 PNG Opacity Problems
-
07-31-2013, 02:03 PM #10
- Join Date
- Jul 2013
- Posts
- 19
Re: Difference Between Jpg and Gif
JPEG is used for photos, while GIF is better used with logos, graphics and cartoons.
When GIF is used with photos, the file (photos) are not as compressed as if JPEG were used.
When JPEG is used with logos, graphics and cartoons the file is not as compressed as with GIF.
-
08-07-2013, 01:07 AM #11
- Join Date
- Aug 2013
- Posts
- 200
Re: Difference Between Jpg and Gif
The jpg is a join picture image which are make with combined millions of pixels on it and gif in an image which is movable image.....This is a basic difference of JPG and GIF..
-
08-15-2013, 03:59 PM #12
- Join Date
- Feb 2013
- Posts
- 123
Re: Difference Between Jpg and Gif
I have to agree with this only to a certain degree. PNGs are very good at preserving quality of an image and the alpha of an image, but that's pretty much all there is to PNG. GIF and JPG have the ability to have animated images, lower sized files with mediocre quality (when you really dont NEED quality at a certain scale, say a 16x16 icon), and less file size = speeder loading time.
-
08-16-2013, 10:00 AM #13
- Join Date
- Jun 2013
- Posts
- 204
Re: Difference Between Jpg and Gif
JPG is a still picture, and a type of picture format. JPG is mostly better for photography. PNG's are also similar to JPG since they both represent still pictures. GIF is a movable image. Gifs are usually very small, but they loop a certain video for a certain amount of seconds.
-
08-31-2013, 12:42 AM #14
- Join Date
- Aug 2013
- Posts
- 28
Jpg stands for Joint Photgraphic Expert Group.jpeg files used on the web. these images are very small in size, but they looks very beautiful.Jpeg supports up to 16.7 million colors,which makes the right choice for complex images and photographs.
Gif, ( Graphic Interchange format) is also a older filetype like jpg. It generally associated with the internet as opposed to photography and the employs the lowless LZW compression that TIFF used.
-
09-01-2013, 03:36 PM #15
- Join Date
- Feb 2013
- Posts
- 310
There is an interesting technique being used now with Jpegs in response to the need for higher resolution images for high resolution displays. Whereas some webmasters are simply double serving higher resolution copies to detected devices, or worse yet higher resolution copies to everyone and just using HTML/CSS to shrink the display of them down for lower resolution devices - someone realized a clever way to have sharp images and lower file sizes than their original resolution counterparts.
What they are doing is making the images way larger, even than what they would need for the hi-res displays. Then they are compressing them very heavily, like as low as 20%-30% quality. Apparently the compression has more of an impact than the image size, which keeps the overall file size down. However the large file size hides the compression artifacts and makes the images look sharper.
Similar Threads
-
What is the difference between SEO and SEM?
By shepherd in forum Search Engine Optimization (SEO)Replies: 24Last Post: 03-29-2018, 05:29 AM -
What is difference b/w SEO and SMO.??????
By Prince25 in forum Social Media & Bookmarking ForumsReplies: 22Last Post: 06-18-2016, 02:13 AM -
What Is The Difference Between Onsite And Offsite SEO
By fodoilim in forum Search Engine Optimization (SEO)Replies: 39Last Post: 12-29-2015, 11:47 PM -
Amazon.in vs Junglee-What The Difference
By chismore in forum AmazonReplies: 1Last Post: 08-25-2013, 09:46 AM -
Difference Between PHP 5.3 And 5.4
By jeffking in forum PHPReplies: 1Last Post: 02-28-2013, 08:19 AM
Bookmarks