sinerider
sinerider copied to clipboard
[FEATURE] Compress assets to maximize load speed
Description
To be done during launch week
Screenshots
No response
Additional information
No response
ImgBot is fantastic for this, CC @polytroper
@profsucrose Chris says you have a shell command that can handle this?
for images, we could use ImgBot or squoosh.app to optimize. Audio takes the majority of the client load so we can compress the audio files directly or use Cloudinary to serve the audio files (see optimize audio ). The scoring service uses Cloudinary already to save and serve the video files.
@polytroper Claire is blocked on this- not sure what action needs to be taken here.
I think the last time I ran a command like
for f in ./*.mp3; do ffmpeg -i "$f" -c:a libvorbis -q:a 4 "${f/%mp3/ogg}"; done
Needs ffmpeg installed though
πthis looks correct to me. Asset manifest will also need to be changed to load the .ogg files
@ClaireBookworm does that unblock you?
@JosiasAurel is this something you can work on?
@JosiasAurel is this something you can work on?
I could definitely help but @ClaireBookworm is giving it a try right now
Just sent a PR https://github.com/hackclub/sinerider/pull/482