Hi,
this is done by pict-rs ( the image hosting middle man that lemmy uses ) it converts every image uploaded to png. Only way of keeping a jpg is using a external image hoster ( like imgur ) and just embeding the link here.
Thanks
Welcome to the official Lemmy.world Support community! Post your issues or questions about Lemmy.world here.
This community is for issues related to the Lemmy World instance only. For Lemmy software requests or bug reports, please go to the Lemmy github page.
This community is subject to the rules defined here for lemmy.world.
You can also DM https://lemmy.world/u/lwreport or email report@lemmy.world (PGP Supported) if you need to reach our directly to the admin team.
Hi,
this is done by pict-rs ( the image hosting middle man that lemmy uses ) it converts every image uploaded to png. Only way of keeping a jpg is using a external image hoster ( like imgur ) and just embeding the link here.
Thanks
But why does it convert only when using copy and paste? Via download and upload, the jpeg stays jpeg.
The converter can see it was smaller before the conversion. Why not save the smaller jpeg? Who needs pngs, no matter how wasteful?
I'd guess Firefox takes a screenshot when I try to copy an image.
I guess if its only then thats a lemmy "feature".
Are you pasting the file or the image data?
If youβre opening the image, and copying the fileβs contents, I could imagine it becoming uncompressed bitmap data to be stored on the clipboard rather than the clipboard containing lossy compressed image data. When pasting the contents somewhere, you canβt count on the destination handling jpeg data as often/reliably as you can count a destination being able to handle bitmap data.
edit: I hit the wrong reply button, but I guess this stands alone fine as it is.
In Firefox I right-click the image and select "Copy". In the same window in the other tab I hit Ctrl-V.
Surely it sends the file from the local cache folder?
No. When you copy an image like that you're copying the image data to your clipboard, not the file.
This seems to be a Javascript thing, not a Lemmy thing. IIRC, everything that's pasted triggers the onpaste
event with a "image.png" file/blob, regardless of the source format.
What OS are you using? Perhaps itβs being converted because of limitations of the clipboard?
Linux Mint Cinnamon.
Surely all clipboards pass any file without touching the insides? That's the only easy way to make a clipboard.
Probably because a PNG takes up less storage space.
Only in simple images like graphs. Jpeg is smaller for photographs and paintings.
https://www.slashcoding.com/difference-between-jpeg-png/
The example I stated grew five times in size. The converter can see it was smaller before the conversion. Why not save the smaller jpeg?