hhmx.de

Föderation EN Di 24.06.2025 10:30:03

Despite traveling, I've been working on some things for and one of them is the ability to generate web optimized images when uploading JPG/PNG files.

The end result is an Image object containing multiple URL entries to small/medium web-optimized copies, plus the original.

This still requires some work on the frontend web components to be able to select from multiple variants based on the reported width/height.

But it also allowed me to fix issues with the ability of the library to process activities that contain multiple Objects.

Föderation EN Di 24.06.2025 10:48:27

@mariusor

cool. We are also doing this in deno.
A while ago I created this standalone thing for the JS ecosystem:
github.com/redaktor/mediaproxy

When I finished it in redaktor, I will update above.
Currently I am also working a lot on deduplication. When we upload images, it creates a cid clientside and compares it with duplicates serverside. Also for IPTC and other meta. This avoids reuploading the same images again and again or writing alts again …
/ @hongminhee

Föderation EN Di 24.06.2025 11:15:38

@sl007 I don't use any proxies for my uploads. I do the most basic of upload logic: I convert the raw image bytes to base64 and stuff them in an Image.Content with the proper data URL prefix.

@hongminhee