Post
Remote status
Context
1Replies
12btw pleroma-fe will by now automatically compress image uploads, so at least if people use that we won't get those 20mb pngs anymore...
https://github.com/Yonle/go-bwhero/blob/master/API.md
@lain as the result, i made a patch where avatar, and cover/banner is using the compressed version since it’s no use to put 540x540 image in such small <img>, and then disable preloading & make <video> to show thumbnail instead. This has reduced my bandwidth & our users since then.
@lain in akkoma, i made attachment.akkoma.media.avatar_preview and attachment.akkoma.media.header_preview. The same can be done on pleroma too but if that’s the case, then i will make some breaking changes between both backend. Let’s see.
Looking into hosting. Learning. Still lost. But that's ok for now. I was looking into fe, seems to have changed names?
https://codeberg.org/mkljczk/nicolex
On the note of images:
(I'm self taught, new, & may have misconceptions)
Can you use reverse proxy & intercept the url to only display the compressed images?
For full resolution could you setup an api? Have clients that respect this api call download full res?
I need to read more and learn pleroma.
I hope this wasn't just bad noise.
@rusty__shackleford @lain Nicolex is it’s own thing. different fork. I haven’t dived what’s different here but it seems like there’s some interesting patches from here.
Can you use reverse proxy & intercept the url to only display the compressed images?
you can, but then you need a backend that do the job.
For full resolution could you setup an api? Have clients that respect this api call download full res?
It will only applies in pleroma if respecting the api is the goal. You see, there’s 2 field in attachment object: url being the url of the real thing, preview_url for the thumbnail only.
but if your goal is to make it only render the compressed version on both field, then you must decide this. Either you want this to work only in pleroma fe, or both world (pleromafe and mastodon apps).