Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Disable uploaded image resampling

Open stevenhfotofix opened this issue 10 years ago • 2 comments

Your Rocket.Chat version: 0.29.0

When sending JPEG images over Rocket.Chat, it seems that the file is being resampled and downsized by the time it reaches the other user. When dealing with photography, this is an extremely undesirable outcome - requiring us to zip a file before sending it to the other user.

Is there a way to disable image downsizing and keeping them untouched by an image software when the other user downloads them?

An example JPEG started out at 1,309,444 bytes, and was downloaded by the other user at 277,826 bytes - losing a lot of data long that trip. Attached is an image comparison showing the areas where the image was significantly changed, and why we don't want the chat system to change the files along the way.

A PNG was also transferred, starting off at 3,036,528 bytes, and ending up 3,063,159 bytes. So there is something being done with PNG files as well, but it does not lose data (though it is still something we don't desire to happen - we want a file sent to another user to remain as untouched as possible)

planetexpressship 1920x1080

planetexpressship 1920x1080-transferred

image

stevenhfotofix avatar May 05 '16 15:05 stevenhfotofix

I think admins should have the option of enabling/disabling downsampling for the sake of their disk space, but I agree this should be an option, especially for the photography-concerned communities.

marceloschmidt avatar May 06 '16 14:05 marceloschmidt

@marceloschmidt is this still relevant now that we have removed imagemagik?

docsncode avatar Mar 12 '18 16:03 docsncode