-
-
Notifications
You must be signed in to change notification settings - Fork 887
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: pict-rs transformations don't apply to proxied images #4893
Comments
Could you link the post / profile example? I'm pretty sure pictrs supports this and might just be an issue with lemmy-ui. |
Here's one image: Notice how format is set to webp and thumbnail is 48, but it still loads the full image. Lemmy-ui doesn't use these afaik (if recommend it should!), so this issue doesn't completely apply there. Every proxied image has this issue. |
@asonix is there a way to do image processing on these proxied image urls? |
It seems like we need to request proxied images via |
K, I'll get this. |
Requirements
Summary
I'm unsure if this is a
pict-rs
issue or a Lemmy issue, but looking atpict-rs
's API, I think it's more likely to be Lemmy.Many clients use pict-rs image transformations to load images more efficiently, such as
thumbnail
andformat
. Recently, as I was testing performance of my app, I noticed images were taking a ridiculous amount of bandwidth. Looking into it, images via/image_proxy
were being loaded at their full size, regardless of these arguments.This is not good for bandwidth, as this 24px avatar is being loaded in 4K.
These arguments still work fine for non proxied images, and before 0.19.4.
Steps to Reproduce
/image_proxy
?thumbnail=256&format=webp
Technical Details
The solution to this is likely to pass these parameters to pict-rs.
Version
0.19.5
Lemmy Instance URL
lemm.ee
The text was updated successfully, but these errors were encountered: