Graphics: PNG (or whatever) to GIF (without losing quality)
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Graphics: PNG (or whatever) to GIF (without losing quality)
Hi, I have a set of PNG files and I'm trying to convert them to GIF (as Internet Explorer < 7.0 can't handle transparent PNGs).
I tried using "The" GIMP, Pixel Image Editor (in this case, I'd "optimized the image for GIF" before saving it), Krita, and ImageMagick.
The output in any case looks the same: scattered, pixelized.
As I remember, I'd experienced the same problem before, using Photoshop, Paint Shop Pro, and some other imaging software. Wait, some elder Photoshop version (4.0?) had an option to "export an optimized web image", and that worked roughly.
The problem is not the source format, or conversion, I think, but the output format. Anyways -
Ah. The problem is that your image has transparent, but coloured areas. GIF can only do on-off transparency, which is what's causing the blocky-ness. Anything not 100% transparent is being tranformed into a colour.
If the background for the page is going to be white, then you can create a white 32x32 square (or whatever size your image is in general), and do
Code:
composite reloadxc6.png white.png reloadxc6.gif
and you'll have a smooth GIF image. You'll lose the transparency, though.
Ah. The problem is that your image has transparent, but coloured areas. GIF can only do on-off transparency, which is what's causing the blocky-ness. Anything not 100% transparent is being tranformed into a colour.
Sorry, I didn't understand that, at all...
Quote:
Originally Posted by ilikejam
If the background for the page is going to be white, then you can create a white 32x32 square (or whatever size your image is in general), and do
Code:
composite reloadxc6.png white.png reloadxc6.gif
and you'll have a smooth GIF image. You'll lose the transparency, though.
Losing transparency would not be an option, unless transparency could be added again.
PNG has an alpha channel; blending colours with background.
GIF has transparency; showing background colour.
The places where the alpha channel is being used to blend a colour with the colour below (alpha channel) are problematic should it go to the colour or become transparent, that is the dilemma when converting to gif.
I am fairly sure IE7 supports png now.
But, there are some posts pertaining to it being a bit of a scam.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.