RetroFed Forum
Your home away from modern life.
It's janky AF
Post Reply
AuthorMessage
cm0002 infosec.pub cm0002@infosec.pub
Joined: 2025-10-21
Quote

103   Original
Sarah Valentine (she/her) lemmy.blahaj.zone SarahValentine@lemmy.blahaj.zone
Joined: 2026-01-15
#2 · Quote Reply

I don't know what "image proxying" is. Can someone give me the q&d?

25
Widdershins lemmy.world Widdershins@lemmy.world
Joined: 2025-04-04
#3 · Quote Reply

I don't know what "image proxying" is. Can someone give me the q&d?

Is it the "?format= " at the end of a url that usually turns a quick download of a .jpg or .gif into a .webp or .webm download?

5
Sarah Valentine (she/her) lemmy.blahaj.zone SarahValentine@lemmy.blahaj.zone
Joined: 2026-01-15
#4 · Quote Reply

Is it the "?format= " at the end of a url that usually turns a quick download of a .jpg or .gif into a .webp or .webm download?

I fuckin hate webp format. Pointless format given the use case coverage between jpg and png.

8
cm0002 infosec.pub cm0002@infosec.pub
Joined: 2025-10-21
#5 · (edited) Quote Reply

I don't know what "image proxying" is. Can someone give me the q&d?

It's a feature of Lemmy where your instance will proxy image links for you, it can be useful in some cases to do things like bypass regional censorships (If you can access your home instance from your country, but not instance lemmy.example.com your home instance can proxy the image from lemmy.example.com so you can still see it (text is handled by federation already, so no proxy required for just text)) or to cache images in case an instance goes down

But it seems to be poorly implemented where it's end user experience is a pain at best, and the more aggressive it's set the more annoying it is.

Take for example this instance I'm currently on, infosec.pub, they seem to have it set to aggressively replace all image links including in comments no matter what.

So now my attempt to reply to this comment https://infosec.pub/comment/20590443 is utterly broken because the image service just doesn't like it despite me just wanting to link to the off-site gif link manually typing the markdown instead.

This is what that gif looks like proxied:

https://infosec.pub/api/v3/image_proxy?url=https%3A%2F%2Fi.ibb.co%2F8gHKNsT1%2Fmichael-scott-why.gif

25
Pommes_für_dein_Balg feddit.org mech@feddit.org
Joined: 2025-10-06
#6 · Quote Reply

It's a feature of Lemmy where your instance will proxy image links for you, it can be useful in some cases to do things like bypass regional censorships (If you can access your home instance from your country, but not instance lemmy.example.com your home instance can proxy the image from lemmy.example.com so you can still see it (text is handled by federation already, so no proxy required for j...

I was wondering why your reply shows up empty on my instance.

4
Sarah Valentine (she/her) lemmy.blahaj.zone SarahValentine@lemmy.blahaj.zone
Joined: 2026-01-15
#7 · Quote Reply

It's a feature of Lemmy where your instance will proxy image links for you, it can be useful in some cases to do things like bypass regional censorships (If you can access your home instance from your country, but not instance lemmy.example.com your home instance can proxy the image from lemmy.example.com so you can still see it (text is handled by federation already, so no proxy required for j...

Neither of those links display an image for me. One shows a tiny empty box in your comment and the other lands me on a weird little error page about "msg too wide"

5
cm0002 infosec.pub cm0002@infosec.pub
Joined: 2025-10-21
#8 · (edited) Quote Reply

Neither of those links display an image for me. One shows a tiny empty box in your comment and the other lands me on a weird little error page about "msg too wide"

Yeah, because the proxy has decided it doesn't like it

This is what I actually wanted to link to/embed

Well actually I originally tried with a direct tenor link

But it didn't like that either

9
Widdershins lemmy.world Widdershins@lemmy.world
Joined: 2025-04-04
#9 · Quote Reply

I fuckin hate webp format. Pointless format given the use case coverage between jpg and png.

I usually change the url to ".jpeg?format=jpeg" just in case that formatting takes any extra computing on their end. They want to use a boondoggle I'm gonna use the boondoggle.

6
Sarah Valentine (she/her) lemmy.blahaj.zone SarahValentine@lemmy.blahaj.zone
Joined: 2026-01-15
#10 · Quote Reply

Yeah, because the proxy has decided it doesn't like it This is what I actually wanted to link to/embed Well actually I originally tried with a direct tenor link But it didn't like that either

Tenor in particular is shitty like that too. If I directly link to a tenor gif on discord, people have to click the link and open a webpage to view the gif. To embed it in discord I have to save it and upload it.

8
Mike piefed.chrisco.me michael@piefed.chrisco.me
Joined: 2025-12-11
#11 · Quote Reply

It's a feature of Lemmy where your instance will proxy image links for you, it can be useful in some cases to do things like bypass regional censorships (If you can access your home instance from your country, but not instance lemmy.example.com your home instance can proxy the image from lemmy.example.com so you can still see it (text is handled by federation already, so no proxy required for j...

Interesting, I can comment on piefed (just did a test) to the comment above. But I get a new tab when I try to see the proxy link.

2
OwOarchist pawb.social OwOarchist@pawb.social
Joined: 2026-02-13
#12 · Quote Reply

I fuckin hate webp format. Pointless format given the use case coverage between jpg and png.

Yep. And most damning, a lot of my image viewing or editing apps don't like the webp format.

5
Thorry feddit.org Thorry@feddit.org
Joined: 2025-08-30
#13 · Quote Reply

Is it the "?format= " at the end of a url that usually turns a quick download of a .jpg or .gif into a .webp or .webm download?

I especially hate it when the source is already the same as whatever the target is, but it still breaks the image. Removing the format parameter suddenly makes the image work again, it's so dumb.

3
AeronMelon lemmy.world aeronmelon@lemmy.world
Joined: 2023-12-26
#14 · Quote Reply

It's a feature of Lemmy where your instance will proxy image links for you, it can be useful in some cases to do things like bypass regional censorships (If you can access your home instance from your country, but not instance lemmy.example.com your home instance can proxy the image from lemmy.example.com so you can still see it (text is handled by federation already, so no proxy required for j...

The proxy link returns a funny error; “too wide.”

4
StellarExtract lemmy.zip StellarExtract@lemmy.zip
Joined: 2025-06-15
#15 · Quote Reply

It's a feature of Lemmy where your instance will proxy image links for you, it can be useful in some cases to do things like bypass regional censorships (If you can access your home instance from your country, but not instance lemmy.example.com your home instance can proxy the image from lemmy.example.com so you can still see it (text is handled by federation already, so no proxy required for j...

A good thing about proxying is that it prevents auto-loading of resources from potentially malicious domains. For instance, I could make an image comment containing an image link to a server I control. When you reply to my comment, since you clearly have seen my comment, I can now look at my server logs and see the IP addresses of everyone who viewed my image. I now know that your IP address is in that list.

18
in_my_honest_opinion piefed.social in_my_honest_opinion@piefed.social
Joined: 2026-01-21
#16 · Quote Reply

Yeah, because the proxy has decided it doesn't like it This is what I actually wanted to link to/embed Well actually I originally tried with a direct tenor link But it didn't like that either
  "code": "validate-width",
  "msg": "Too wide"
}```

stripped the headers, your image didn't make it through the infosec.pub proxy. 

X-Firefox-Spdy: h2
access-control-expose-headers: vary, date, content-length, content-encoding, content-type
cache-control: public, max-age=60
content-encoding: br
content-type: application/json
date: Fri, 27 Feb 2026 02:10:57 GMT
server: nginx
vary: accept-encoding, Origin, Access-Control-Request-Method, Access-Control-Request-Headers

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Encoding: gzip, deflate, br, zstd
Accept-Language: en-US,en;q=0.5
Connection: keep-alive
DNT: 1
Host: infosec.pub
Priority: u=0, i
Referer: https://piefed.social/
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: cross-site
Sec-Fetch-User: ?1
Sec-GPC: 1
TE: trailers
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0

1
in_my_honest_opinion piefed.social in_my_honest_opinion@piefed.social
Joined: 2026-01-21
#17 · Quote Reply

A good thing about proxying is that it prevents auto-loading of resources from potentially malicious domains. For instance, I could make an image comment containing an image link to a server I control. When you reply to my comment, since you clearly have seen my comment, I can now look at my server logs and see the IP addresses of everyone who viewed my image. I now know that your IP address is...

Exactly this.

5
usualsuspect191 lemmy.ca usualsuspect191@lemmy.ca
Joined: 2023-06-06
#18 · Quote Reply

The proxy link returns a funny error; “too wide.”

It's a gif of OP's mom

3
lazynooblet lazysoci.al lazynooblet@lazysoci.al
Joined: 2023-06-20
#19 · Quote Reply

I like it because it protects my privacy.

pict-rs (the proxy software) is using ffmpeg in the background to recompile the image which will crash and burn it the image has even the slightest issue/corruption.

Pict-rs has options to specify maximum width etc which need adjusting else it blocks too much

2
cm0002 infosec.pub cm0002@infosec.pub
Joined: 2025-10-21
#20 · Quote Reply

I like it because it protects my privacy. pict-rs (the proxy software) is using ffmpeg in the background to recompile the image which will crash and burn it the image has even the slightest issue/corruption. Pict-rs has options to specify maximum width etc which need adjusting else it blocks too much

Yea I know there are certainly tangible benefits like privacy, censorship bypass, caching etc

But the crux of the issue

using ffmpeg in the background to recompile the image which will crash and burn it the image has even the slightest issue/corruption.

Does it really need to do all that? IMO it's a proxy and it should just proxy things, not mess with things. Some basic checks at the most to just verify the image is an image and reject non-images, but that's it. If there's a need to also manipulate images then it should be handled separately

2
lazynooblet lazysoci.al lazynooblet@lazysoci.al
Joined: 2023-06-20
#21 · Quote Reply

Yea I know there are certainly tangible benefits like privacy, censorship bypass, caching etc But the crux of the issue using ffmpeg in the background to recompile the image which will crash and burn it the image has even the slightest issue/corruption. Does it really need to do all that? IMO it's a proxy and it should just proxy things, not mess with things. Some basic checks at the most to ju...

The idea is that by saving the image and thumbnail it saves on processing and bandwidth is the server hosting the proxy.

Pict-rs is the same image store used by Lemmy for it's own embedded images.

I agree with you that there are improvements to be made. I've spent too long troubleshooting images on lazysoci.al.

2
SorteKanin feddit.dk SorteKanin@feddit.dk
Joined: 2023-04-27
#22 · Quote Reply

A good thing about proxying is that it prevents auto-loading of resources from potentially malicious domains. For instance, I could make an image comment containing an image link to a server I control. When you reply to my comment, since you clearly have seen my comment, I can now look at my server logs and see the IP addresses of everyone who viewed my image. I now know that your IP address is...

I've heard this security concern before, but I'm a bit confused about the real attack vector here. I mean let's say you do this - you post an image to some random Lemmy instance and behind the scenes, you gather all the IPs which fetch the image. What malicious thing could you do with that? Genuinely curious.

3
MrNobody quokk.au MrNobody@quokk.au
Joined: 2025-11-11
#23 · Quote Reply

I've heard this security concern before, but I'm a bit confused about the real attack vector here. I mean let's say you do this - you post an image to some random Lemmy instance and behind the scenes, you gather all the IPs which fetch the image. What malicious thing could you do with that? Genuinely curious.

Hack their Gibson of course.

2
Hirom beehaw.org Hirom@beehaw.org
Joined: 2023-03-02
#24 · Quote Reply

Does any client supports proxying images or links? If that's a client settings, users would control whether to use proxy or not, maybe even which proxy to use.

1
Post Reply
Back to top