💾 Archived View for bbs.geminispace.org › s › Bubble › 536 captured on 2023-06-14 at 14:25:49. Gemini links have been rewritten to link to archived content

View Raw

More Information

➡️ Next capture (2023-07-10)

-=-=-=-=-=-=-

Not really an issue, just a request for tips. I wanted to post a photo, but the only format that went small enough was HEIC which doesn't seem to be supported here? I must be doing something wrong. Are there tips for making low-res photos that fit in the small-web?

Posted in: s/Bubble

🐵 cquenelle

2023-05-19 · 4 weeks ago

4 Comments ↓

🐻 moddedBear

Easiest way is to just use some sort of image editor to shrink the dimensions. With imagemagick I usually use this command or similar.

convert [input] -resize 30% -strip [output]

A more fun way is to use something like this tool to dither the image. (Though it looks like they've added ads recently so maybe there's an alternative)

— https://doodad.dev/dither-me-this/

🚀 skyjake

I also use ImageMagick, and have a little shell script like this:

#!/bin/sh
INPUT=$1
OUTPUT=$2
NCOLS=255
convert "${INPUT}" -resize 50% +dither \
    -colors ${NCOLS} -type PaletteAlpha -channel A \
    -threshold 80% "${OUTPUT}"

The 50% reduction in size because I'm on a Mac and they have HiDPI screens, so half-sized is usually more reasonable to share. You can change the options there to your liking, like enable dither (which is disabled above). The output is a paletted image with NCOLS colors, so basically an 8-bit .png is a good output format.

🍵 michaelnordmeyer

I currently use max. 1440px wide .webp at 80 to 85 % quality rate, which results in 40 to 140 KB images. So even 2x or 3x displays can show detailed images.

Because it was only a dozen images or so, I first resized the original and then used an online converter.

🐵 cquenelle

Thanks for the tips, people. I’ll give them a shot.

2023-05-20 · 4 weeks ago