maff

welcome to my web page

last.fm listening

 


 

i am just a litel babie……

 


 

how do i centre these dang images
unci fonts now!
maff.scot


my telegram channel where i post the absolute worst shit you've ever seen
badposts.t.me/

ticky
@ticky

this happens because they're doing that "lazy loading" thing with images, but the thing is

it downloads a 54kb, 3072 × 3072 JPEG 2000 image as the placeholder, and then replaces it with a 16kb, 300 × 300 PNG image

great job! you've really optimised that picture of nude Wario


maff
@maff

i love modern development


You must log in to comment.

in reply to @ticky's post:

I tested and I got PNG for both the MIME and the file on both files so either that was a typo or something REAL weird is happening with browser detection

But this raises the question of what process lead to the creation of a 3072x3072 PNG created by starting with another PNG, shrinking it and then blowing it up again?!

I guess Safari is explicitly advertising JP2 support?

In any case, it seems that they’re based on high resolution originals (you can delete a portion of the final image URL to get the full res original), the final image is asked to shrink to the proper size, but the placeholder is not assigned a proper size, so it has a pixelated effect applied but is not actually shrunk