Hacker News new | ask | show | jobs
by yaix 5459 days ago
When you have a million JPEG images, you would need to generate a sprite on-the-fly every time a random subset of those images is requested. You have to decode the images and encode the sprite each time. That sounds really slow.

Better convert them to Base64 and just concatenate the ASCII strings. Store each Base64 string text file next to the image file.

I agree however that they should use JPEG for their Base64 sprites.