Tsarpf / Tsatter

An old Angular 1.x / Node / MongoDB / Docker project where real-time chat meets imageboards
4 stars 0 forks source link

save discovery page images locally #80

Closed Tsarpf closed 9 years ago

Tsarpf commented 9 years ago

Convert gifs to webm and make smaller thumbnails of images. This should decrease discovery page load a lot

Tsarpf commented 9 years ago

actually just show first frame of gifs on disco. mouseover to start playing gif from original website

Tsarpf commented 9 years ago

initial tests of converting png and jpg formats:

png -> convert Big\ Ben.png -colors 256 -quality 90 -depth 8 bigben.png jpg -> convert -strip -interlace Plane -gaussian-blur 0.05 -quality 85% source.jpg result.jpg

they decreased some test picture sizes by at least half. good enough methinks.

This was using imagemagicks commandline command convert

use this in the actual implementation http://aheckmann.github.io/gm/

Tsarpf commented 9 years ago

mostly done in image-download branch (except for gif mouseover playing)

Tsarpf commented 9 years ago

https://github.com/Tsarpf/Tsatter/issues/77 and gif-mouseover-play has it's own issue