Solved

GIF vs PNG

Posted on 2008-10-29
7
245 Views
Last Modified: 2012-06-21
can we make the GIFS just like PNGs and can get transparency out of it.
for eg if i place a gif on a background color, should be able to see the color thru the GIF.
<div style="background-color:blue"><img src="1.gif" />

thanks
1.gif
0
Comment
Question by:vidhubala
7 Comments
 
LVL 1

Expert Comment

by:toggo
ID: 22837692
Yes if you're using a transparent GIF.
0
 

Author Comment

by:vidhubala
ID: 22837997
how do we make transparent gifs?
0
 
LVL 8

Expert Comment

by:ccpjc
ID: 22838157
you just don't put any color in the area that you want transparent
if you are using adobe ps, make your button like you have it, select the text (ctrl+click in the layers box) click on your box shape (in the layers box) hit delete, then delete your text
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 44

Expert Comment

by:scrathcyboy
ID: 22838220
use adobe photoshop to make transparent photoshop files, with background set to transparent, and save to either GIF or PNG format interchangeably -- i.e. it can save the photoshop file to either format.
0
 

Author Comment

by:vidhubala
ID: 22838428
i couldnt make it transparent in photoshop. i tried all options but when i save it as gif with 128 no dither after applying 50% opacity. but when its displayed it becomes opaque. pl suggest steps in ps.

tra.gif
0
 
LVL 42

Accepted Solution

by:
David S. earned 500 total points
ID: 22838499
GIF and PNG-8 don't support partial transparency.  You have to use the PNG-24 format for that. The problem is that IE6 doesn't natively support the partial transparency part of that format, so to get it to work you have to use a script like SuperSleight.

http://24ways.org/2007/supersleight-transparent-png-in-ie6
0
 

Author Comment

by:vidhubala
ID: 22838733
can u pl provide me an example of that code working in a html sample page.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now