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

Strange avatar behavior

Open dachnikrus opened this issue 8 years ago • 1 comments

Description

After assigning an avatar with app, it disappears in profile view of the app, but still shows to others in chat (both app and web). Anyway, works good on http://rocket.chat Maybe versions are different, my server has 0.69.0 from snap.

Also, while taking a photo, there are no functions like cropping or rotation. I think it depends from manufacturer, but in the simulator it is not possible.

For example, on Samsung, photo made with camera lose correct aspect ratio when show on the web version.

Devices and Versions

Your Rocket.Chat.Android version: 2.6.0 Your Rocket.Chat Server version: 0.69.0

Mobile device model and OS version: Pixel 2 simulator, Samsung Note s7

Steps to reproduce

At initial step I have no avatar at all. Go to profile in app. Click on avatar Take a photo Make photo (here it rotates, that is bad, can't rotate it to make correct angle or crop) Exit app Close it from "Opened apps" view Run again Go to profile --> Avatar disappeared

Logs

dachnikrus avatar Sep 13 '18 07:09 dachnikrus

It seems that by default, the server will resize it to 200x200 and convert it to jpeg, which causes the aspect ratio to be skewed.
Ref. https://github.com/RocketChat/Rocket.Chat/pull/631/commits/3df722b7630d23ed8b8b05d759facf0441a09dd0#diff-722a323a437a2d7cfb09cd2a6b615295L19

vwbusguy avatar Jan 30 '19 20:01 vwbusguy