Topic: Remove dependency to jpeg
aber Topic Opener |
Posted at: 2010-11-06, 17:06
The library is currently used to load background images in menus and loading screens. Top Quote |
timowi |
Posted at: 2010-11-06, 18:04
Widelands does not use libjpeg directly. There was a (unnecessary) dependency on libjpeg before the spice-up-cmake was merged. Now jpeg is only used through SDL_image. I think SDL_image supports jpeg in almost all cases. Is there any good reason why a SDL_image without jpeg support should be used? I see no reason why we should remove jpegs from widelands. Top Quote |
ixprefect |
Posted at: 2010-11-06, 18:54
Agreed. We use PNG mainly because of its lossless compression, which is appropriate for in-game graphics. JPEG is a much more appropriate graphics format for the background loading images. Top Quote |
SirVer |
Posted at: 2010-11-07, 13:12
fullscreen png images are much, much bigger than fullscreen jpeg images, sizewise. No reason not to use jpeg were appropriate, or is there? Top Quote |
aber Topic Opener |
Posted at: 2010-11-07, 14:11
Very strong opinions in favor of libjpeg. Top Quote |
timowi |
Posted at: 2010-11-07, 14:20
I don not get your point. What has this to do with jpeg or png? Png is as resolution and aspect ratio restricted as jpeg... Jpeg is an image format which is appropriate for some types of graphics. I see no reason why we should remove jpeg loading support from widelands. Actually we make no difference between image formats. We just hand the file name to SDL_image. Internally all graphics are treated the same way. I heard no argument against jpeg as an image format. Top Quote |