When you upload an image in the URL bar when creating a post, where does it go? Are they hosted on the respective Instance of the community?
When you upload an image in the URL bar when creating a post, where does it go? Are they hosted on the respective Instance of the community?
When I look on my server in the volumes/pictrs folder, there are a LOT of images that I recognize from my feed. They are not from posts posted to my server but belong to posts of communities that I have subscribed to
Are they thumbnails? If not, perhaps this is configurable… I’ll check out my own images folder and see if it’s pulling them in, but it definitely shows the remote url for images when I’m viewing them on my instance.
no, a random image I just now check was 3.3mb even. But you’re right, the image source does point to the origins server location… Then why are all those images stored on the server ?
Great question! I’m gonna go digging around and see where photos come from. It could be that image federation does happen, but the URL isn’t changed in the DB. Thanks for checking on your instance, I’ll check mine out too.
OK, I’ve just realised something new - images pulled from websites as thumbnails are uploaded to the server and appear to be basically full sized, i.e.:
https://agora.nop.chat/pictrs/image/59cfdd9c-2f69-4e8d-8afc-6fbc0c1cca87.jpeg
This image is on my server, but it’s just pulled from the website as a thumbnail. This doesn’t seem to be super consistent in how it’s handled - I’m continuing to look at what’s causing it and why it doesn’t seem to happen all the time.
EDIT: Seems like there’s more on there than I expected. Gonna continue digging.
your pictrs container is able to transform images ‘on the fly’ by adding parameters to the url. So the source for a thumbnail of your image becomes for instance: https://agora.nop.chat/pictrs/image/59cfdd9c-2f69-4e8d-8afc-6fbc0c1cca87.jpeg?format=webp&thumbnail=256
play around with the format and pixel size to see what I mean
Yeah, I had to edit that url to remove the transformations. That image came from somebody on another instance posting a link to a website, I didn’t upload it at all. I’m on a single user instance at the moment, so some images are making it in and federating.
It could be that jerboa and the web app are acting differently. The web app uses websockets to communicate, but jerboa uses the rest API. Anyway, I’ll go try to figure out what the deal is and try to understand the inconcistency.