?
Solved

general question about web images

Posted on 2011-09-24
2
Medium Priority
?
283 Views
Last Modified: 2013-11-05
what are some of the differences between lossy and losseless compression? and when would it be better to use jpg. rather than gif.  I believe that they are both kinda equal really.
0
Comment
Question by:Jenn0101
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 2000 total points
ID: 36594218
Wiki pretty much covers it:

http://en.wikipedia.org/wiki/Image_compression

Lossless compression results in huge file sizes but images of better overall quality.  Lossy compression is used in most images you see on the web.

JPG and GIF are nowhere near equal.  GIFs only have a 256 color palette (216 if using web-safe) whereas jpgs can render millions upon millions of colors and thus can produce higher quality images.  JPEG compression is also superior to GIF and you can get a higher quality result at higher compressions than you could with a gif.

The one thing you can do with a gif that you can't do with a jpg is have a transparent color, which makes blending it into a site easier.  However, png supports transparency and is of superior quality to gif.
0
 

Author Closing Comment

by:Jenn0101
ID: 36594226
Ty this answered my question!
0

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

HOW TO CREATE A WEB 2.0 IMAGE WITH A REFLECTION I would like to start by saying I know Web 2.0 isn't a style. It is actually the practice of information sharing or  collaboration on the Web. It is also associated with the technology that is used …
A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
In this tutorial viewers will learn how to correct colors in Photoshop using the Hue and Saturation adjustment Open a photo for editing in Photoshop: Begin by creating a new adjustment layer by going to Layer > New Adjustment Layer > Hue and Saturat…
In this tutorial viewers will learn how to create a vector texture to apply a non-rasterized texture to vector images, using Photoshop and Illustrator Open a textured image such as a scanned-in piece of cardboard in Photoshop: Convert the texture to…
Suggested Courses
Course of the Month10 days, 14 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question