ThumbHash: A better compact image placeholder hash
11–20 of 123 posts
Re: ThumbHash: A better compact image placeholder hash
#12This may be a super dumb question but... how is this better than using progressive jpegs?
IMO I don't really care for a 75%-loaded progressive JPEG. Half the image being pixelated and half not is just distracting.
Re: ThumbHash: A better compact image placeholder hash
#13Re: ThumbHash: A better compact image placeholder hash
#14This may be a super dumb question but... how is this better than using progressive jpegs?
With this: You call an API -> it returns some json with content and links to images and a few bytes for the previews -> you immediately show these while firing off requests to get the full version.
So I'm thinking quicker to first draw of the blurry version? And works for more formats as well.
Re: ThumbHash: A better compact image placeholder hash
#15What I’ve seen instagram and slack do is create a really small jpg and inline that in the API response. They then render it in the page and blur it while the full size image loads. Placeholder image ends up being about 1KB vs the handful of bytes here but it looks pretty nice Everything is a trade off of course, if you’re looking to keep data size to a minimum then blurhash or thumbhash are the way to go
Isn’t that optimizing for load speed at the expense of data size?
I mean the data size increase is probably trivial, but it’s the full image size + placeholder size and a fast load vs. full image size and a slower load.
Re: ThumbHash: A better compact image placeholder hash
#16This may be a super dumb question but... how is this better than using progressive jpegs?
2. These are usually delivered embedded in the HTML response, and so can be rendered all at once on first reflow. Meanwhile, if you have a webpage that has an image gallery with 100 images, even if they're all progressive JPEGs, your browser isn't going to start concurrently downloading them all at once. Only a few of them will start rendering, with the rest showing the empty placeholder box until the first N are done and enough connection slots are freed up to get to the later ones.
Re: ThumbHash: A better compact image placeholder hash
#17I hate these blurry image thumbnails, much prefer some sort of hole, and just wait for a better thumbnail (look at youtube for this, or basically any site). I'd much rather see engineers spending more time making the thumbnails load faster (improving their backend throughput, precache thumbnails, better compression, etc). The blurry thumbnails have 2 issues 1) trick person into thinking they're loaded, especially if…
Re: ThumbHash: A better compact image placeholder hash
#18Cool tech, but i feel that for all even remotely modern connection types placeholders like this are obsolete and do nothing but slow down showing the real thing.
Travel to some far flung parts of the world, and see if your hypothesis holds true.
Re: ThumbHash: A better compact image placeholder hash
#19This may be a super dumb question but... how is this better than using progressive jpegs?
- you can preload the placeholder but still lazy load the full size image
- placeholders can be inlined as `data:` URLs to minimize requests on initial load, or to embed placeholders into JSON or even progressively loaded scripts
- besides placeholder alpha channel support, it also works for arbitrary full size image formats