notsecure / uTox

Lightweight Tox client
utox.org
GNU General Public License v3.0
597 stars 149 forks source link

Allow any image format for user avatar #1122

Closed scrobbleme closed 8 years ago

scrobbleme commented 8 years ago

I'm only allowed to use PNGs as user avatar. Why do not allow JPG... as well?


Windows, v 0.3.2

LittleVulpix commented 8 years ago

Avatars should simply let you put in any image format, allow you to crop (if necessary) and select what you want, to preview the output.

Internally, it's fine if tox then converts the avatar (after cropping etc) to png. But users shouldn't have to worry about filesize/formats/etc... from usability standpoint. Ever tried explaining file formats to your grandparents? At best, they'll rename the .jpeg image to .png and think it's good now :D

GrayHatter commented 8 years ago

uTox needs a micro sized efficient and super light weight library to convert jpg to and from bmp. If you can find an opensource library I'll roll it in.

tsudoko commented 8 years ago

https://github.com/nothings/stb/blob/master/stb_image.h ?

GrayHatter commented 8 years ago

done