Jump to content

Converting png to gif problem


Recommended Posts

Hello everyone.

 

I'm, trying to make an animated gif from a png image. I managed to do it, but there's a small problem... when I convert the png to gif (to make the animated gif afterwards) the image gets a strange white border around the edges. I tried to play with the Dithering and Tansparency threshold, but to no avail.

You can see it in the logo at the top of this page (hover the mouse over it).

http://www.docspt.com/index.php?action=community

 

How can I avoid this with Paint.NET?

 

Thanks a lot for providing the amazing tool which I use everyday!

Edited by FragaCampos
Link to comment
Share on other sites

The problem is that gif images are limited in their support of transparency. While a png image will show up to 256 different levels of transparency, a gif image can only show two: completely transparent or completely opaque. If a pixel is partially transparent, whether it is opaque or transparent in the converted image is determined by a transparency threshold (which you can select when saving the image).

 

Because of how the pixels are made opaque, in the case of your image, you should set the threshold as high as it will go so that the partially transparent pixels don't get turned white in the final result. If that doesn't work use BoltBait's transparency plugin (found in his plugin pack) to make the partially transparent pixels fully opaque.

 

what I do all summer Emote Cursor Pack 'noob gallery

No, Paint.NET is not spyware...but, installing it is an IQ test. ~BoltBait

Blend modes are like the filling in your sandwich. It's the filling that can change your experience of the sandwich. ~Ego Eram Reputo

Link to comment
Share on other sites

If that doesn't work use BoltBait's transparency plugin (found in his plugin pack) to make the partially transparent pixels fully opaque.

 

what I do all summer Emote Cursor Pack 'noob gallery

No, Paint.NET is not spyware...but, installing it is an IQ test. ~BoltBait

Blend modes are like the filling in your sandwich. It's the filling that can change your experience of the sandwich. ~Ego Eram Reputo

Link to comment
Share on other sites

I had similar problems until I gave up and realised that the only way to solve it is NOT to use transparency in any animated gif.

 

The workaround is to place your transparent fly and text on the Parthenon photo before you save each gif to be used in the animation. Then save several gif's with the fly in different positions and use those to make your animation. 

This does not mean that you have to use the whole of the Parthenon photo for the animation. Cut out just enough width for the animated gif and then place it in between static gif's on the webpage.

Let me know if I don't make sense and I'll try harder.

Xkds4Lh.png

Link to comment
Share on other sites

I see. Yes, if your background is not fixed in size, it will be a problem. You need a fixed backgound image to use my way of doing things.

 

Just in case it can be of use to anyone, I'll try to better explain what I meant:

 

Start with any background. Here's mine:Here

iUPj2LlDtoZQf.gif

(Shown here at half size so as not to beak forum rules)

Save it as a GIF file and remember the settings used. It is important to use the same settings when saving all GIFs in this process in order for the end result to look nice.

 

Decide where you want to place your animation (in your case and in this example, somewhere in the center of the image) and cut that part of the image out. Save what's left as separate GIFs.

 

Here's the centre of the image that I cut out for the animation part:

iOO0dfWle8JB2.gif

 

And these are the parts of the image on the left and on the right of the animation part:  

ibmtXQ5ewawWxu.gif (left)

 

iCiSzjKtopsKs.gif (right)

 

Take the part where you want your animtion to be and use it as background for your animation. This way you avoid any jaggies (white pixels) caused by the transparency in your moving graphics:

ib1fSbKp50ievH.gif

 

Finally, place all the parts of your graphic, in the right order, on your webpage.

ibmtXQ5ewawWxu.gifib1fSbKp50ievH.gifiCiSzjKtopsKs.gif

 

(note: you need to have your browser on full screen to see the end result as is meant).  

Xkds4Lh.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...