deltachat / deltachat-desktop

Email-based instant messaging for Desktop.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wrong aspect ratio for images shown in quotes

r10s opened this issue · comments

when quoting a message with an image, the quote gets enriched with the original image, which is great!

however, the quoted image is always force to be a square, without respecting the aspect ratio:

 

instead, either:

  1. display the whole image - however, the height should still not be larger than the quote. the image can be wider, however. displaying the whole image is also what desktop does otherwise, maybe one can reuse some code

  2. crop the image. this is done on mobile, as anyways already done for the normal image display (due to smaller screen and for $reasons). in case of desktop, however, i would show the image as its original, so go for 1.

all in all, this is a minor issue with low priority

probably could be solved by only setting height

yes, that would probably be totally fine