Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

White pixels in animated GIFs with transparency

New Here ,
Jul 14, 2011 Jul 14, 2011

Problem: at least one transparent pixel becomes solid white when exported as a GIF

Details: there is approximately one pixel per layer, but occasionally there are more. There doesn't seem to be a pattern in where the pixel(s) are located. How can I prevent this from happening? If I can't, what's a good way to get rid of the pixels later?

I use Photoshop CS3, but I think this problem may not be related to the version I'm using. Sorry if this problem has been resolved in a later version!

36.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Guest
Jul 14, 2011 Jul 14, 2011

Newer software will not change the fact that GIF does not support partial transparency. It is either there or it is not. The transient white pixel you see is the software trying to figure out what to do with a partially transparent pixel.

You might experiment with the matte color used for the GIF. Or create a non-transparent GIF by including the web page's background as the bottom layer in the file.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 14, 2011 Jul 14, 2011

That would make sense, but in all of these there's no partial transparency.

I guess I could include a background, but that's really not ideal for emoticons (which are what I'm creating).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 14, 2011 Jul 14, 2011

Can you post an example with one of these white dots?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 15, 2011 Jul 15, 2011

Here are two:

  • eagerdummychoir.gif This has one white pixel that lies two pixels to the left of the eye of the fourth small emote.
  • banned!.gifThis one has several, so I won't bother telling you where they are.

Would it be helpful to have .psd files as well?

Edit: it looks like they aren't showing up properly, so I've put them on Dropbox: http://dl.dropbox.com/u/6249583/eagerdummychoir.gif and http://dl.dropbox.com/u/6249583/banned%21.gif

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 16, 2011 Jul 16, 2011

The pixel is there. That's why it's showing.

What Marion was trying to explain is, you may not have seen it before trying to save as GIF. If a pixel exists which is 5% white, you really won't see it against the transparency checkerboard. When you save for web, the application can't make a 5% opaque pixel for a gif. It's either 100% opaque or 100% transparent. Since the Save For Web sees color there.. it assumes you want that pixel and chooses 100% opaque.

The solution is to find the partially transparent pixels and remove them before choosing save for web. Often adding a temporary solid-color layer below the artwork will help you see these partially opaque pixels, as will adding a temporary stroke layer style.

For example this image would appear to be transparent except the two circles (horribly blurred due to size increase to for this example).

pixel.png

But if I were to use Save for web, all sorts of things would appear. Look what happens when I put a temporary layer style stroke on the layer.....

pixel2.png

All the white pixels which were not visible suddenly become visible. In fact, download the first image and add a layer style stroke to it yourself. You'll see how nearly transparent pixles can effect an image.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 16, 2011 Jul 16, 2011

I know that. I assure you that there were no white pixels there beofre exporting, partially transparent or otherwise.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 16, 2011 Jul 16, 2011

I've never seen a case where a pixel suddenly appears or where Photoshop creates a pixel from nothing unless it's told to.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 17, 2011 Jul 17, 2011

As you are able to use a dropbox account to post files here, try posting the original PSD before you make GIF, if you think the GIF export is the problem.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 18, 2011 Jul 18, 2011

How do I get rid of the thin white border around my transparent gifs?

A tutorial describing the technique can be fond here:

http://www.photoshopcafe.com/tutorials/transparent/transparent.htm

A GIF only supports 1-bit transparency - either full transparency or  full opaque. - Nothing inbetween. So, if your graphics has anti-aliased  (fuzzy) edges, Photoshop has to make those semi-transparent pixels  either fully transparent or fully opaque (by removing them, or adding an  opaque color 'under' the fuzzy edges. This is the Matte.

Creating aliased graphics (no fuzzy edges) eliminates this problem, but you´ll have a harsh-looking graphic.

Ways around this, besides the matte color and aliased graphics,  includes copying your HTML background graphic into your transparent  file, and make a custom, aliased Matte (edge around your graphic), then  place the transparent file pixel-precise on your webpage.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 23, 2018 Jun 23, 2018
LATEST

You can resolve it by settings in save for web dialog box.

Select transparency dither to diffusion, matte to grey or black.

See the image below

solution.jpg

Hope it helps..

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines