peepo-world / greenhouse

The web app behind peepo.world
https://greenhouse.readthedocs.io/en/latest/
Other
2 stars 2 forks source link

WEBP/AVIF Support #7

Open IZeeLikeEyeZee opened 1 year ago

IZeeLikeEyeZee commented 1 year ago

Support for WEBP files for emotes. Would be good to have an option to toggle to gif instead when viewing emotes on the website tho bc makes it easier for people to download emotes since discord and stuff like that doesn't support WEBP (yet at least). 7tv uses AVIF so we could try that too maybe but ngl I dont see the benefit since it doesn't save all that much space and is barely supported by anything atm from what I could tell... I'll leave that one up to y'all since it doesn't have any benefit for making emotes, but just has to do with technical shit.

FFY00 commented 1 year ago

Yeah, WEBP should be the main format we work with. We can make a GIF version of emotes available to download on the emote page.

IZeeLikeEyeZee commented 1 year ago

That's perfect, also PNGs for static emotes ofc

IZeeLikeEyeZee commented 1 year ago

adding avif format here because I just looked into it some more and while it has less support than webp/gif, the file sizes are insanely lower and quality is better. JPEG XL seems to be the best but according to https://caniuse.com/?search=jpegxl, compatibility is extremely limited but it might be something to keep our eyes on for the future.

@FFY00 the technical shit is kinda confusing to me here but I'd like to retain as much quality as possible if its feasible.