Page 1 of 1

jpeg to gif?

Posted: Wed Nov 08, 2006 11:05 am
by elecktricity
is it possible to convert jpeg to gif images?

Posted: Wed Nov 08, 2006 11:12 am
by Luke
yes, but generally images that are in jpeg format would not look good in gif format. Photos look terrible in gif format. What are you looking to convert? What type of images? the gif format works best with images that have the least amount of different colors. It works off of a color table, so the less the colors, the smaller the image size.

Posted: Wed Nov 08, 2006 11:15 am
by elecktricity
Im in the proccess of making a program, and the end result all the images inputted into the program would be animated, there just like icons (biggest about 100x100)

Posted: Wed Nov 08, 2006 11:21 am
by Luke
Well images can be converted from jpg to gif and from gif to jpeg, but both formats have their strengths and weaknesses. You can get gif to display a photo decently, but in order to do so, you have to give it a huge color table, which makes the image size go up by quite a bit. If you don't mind that, then go for it.

Unfortunately, I believe gif is the only image format that supports animation.

Posted: Wed Nov 08, 2006 11:34 am
by elecktricity
Any links would be great?

Posted: Wed Nov 08, 2006 11:43 am
by wwwapu
The Ninja Space Goat wrote:Unfortunately, I believe gif is the only image format that supports animation.
In pratice this might be true, but there is also MNG http://www.libpng.org/pub/mng/ although i've never seen it being used anywhere.

Posted: Wed Nov 08, 2006 2:16 pm
by brendandonhue
Use imagecreatefromjpeg() and imagegif()