• 1 Post
  • 126 Comments
Joined 1 year ago
cake
Cake day: June 21st, 2023

help-circle
  • You can make nearly all images small enough to upload and still look good without dropping colour depth. There are 3 ways to achieve it basically:

    • Resize it to a lower resolution (1280 x whatever looks just fine on a screen)
    • Reduce the quality
    • Change to lossy (JPG) from non-lossy (PNG)

    The resizing is usually enough.

    The quality reduction is something that google pagespeed focuses on too. For most apps that means choosing a lower “quality” when converting to jpg or saving as a new jpg. 85% of original is good.

    If you happen to have imagemagick installed, I have a little script that I use called “resize_to_pagespeed.sh”. The jist of it is this:

    convert inputfile.jpg -filter Lanczos -resize 1280x1280 -sampling-factor 4:2:0 -strip -quality 85 outputfile.jpg

    I just ran this on a 2.4MB photo (below) and it came out at 186KB. That’s a 13x reduction. Right click -> open in new tab to see it full size.

    If the image isn’t square, imagemagick is smart enough to figure out correct dimensions.
















  • khannie@lemmy.worldtoPeople Twitter@sh.itjust.worksCulture shock
    link
    fedilink
    English
    arrow-up
    16
    ·
    edit-2
    3 months ago

    I mean, it’s still a largely rural country

    Not so. Wikipedia has a decent article but here’s the crux of it:

    By the end of 2023, China had an urbanization rate of 66.2% and is expected to reach 75-80% by 2035

    The cities are massive and really densely populated. Shenzhen and Guangzhou are about 90 minutes apart by car if memory serves and account for about 35M people. Hong Kong is an hour south of Shenzhen by train and that’s another ~8M.


  • I’ve spent a decent bit of time there on a few work trips. Never saw differentiation of eggs in supermarkets (or restaurants). Eggs be eggs.

    A huge number of folks are just coming into non-poverty since the turn of the century so it would seem entirely plausible to me that chicken comfort wouldn’t be a thing there just like it wasn’t in the west until comparatively recently and still isn’t for a huge part of the population.

    Apart from that it’s really very different culturally. They just view things through an entirely different (and interesting) lens.