Author Topic: Embedded images resized for strange reason, why?  (Read 5623 times)

kaczor

  • Jr. Member
  • **
  • Posts: 50
Embedded images resized for strange reason, why?
« on: December 18, 2013, 07:25:52 am »
Hi Kostya,

I've created a signature for my mails, where I've added an image. Image is added there using HTML tag:
Code: [Select]
<img style="width: 400px; height: 25px;" src="http://imageshack.com/a/img19/1098/kfu2.png"></img>
What worries me is that this image is enlarged when displayed in Aqua. It takes whole screen width (which is in my case 1080).

An example (zoomed out as much as possible), click for full size:


Why it is so? Could you shed some light on this issue?

Here is the userbar displayed in my mail signature:

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Embedded images resized for strange reason, why?
« Reply #1 on: December 20, 2013, 10:23:46 pm »
In your case, 1080 physical pixels is 360 logical pixels (px in HTML).

Now as to why it takes the entire width, I'm not sure... Do you have "auto-fit" enabled? Or did you double-tap to zoom in?
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

kaczor

  • Jr. Member
  • **
  • Posts: 50
Re: Embedded images resized for strange reason, why?
« Reply #2 on: December 20, 2013, 10:46:29 pm »
The signature image has width of 400px, I do not have "auto-fit" option enabled and the scren you see is when I use volume-down button to zoom out the message as far as possible (then the image is displayed fully from left to right, even with some margin).

but when 1080 physical px is 360 logical pixels in HTML - then the image is displayed in "logical pixels" size (?) - when I enter this message, I can scroll it a little bit right (then I can see missing 40px from the image).

I'm not sure if I fully understand the "logical" pixels idea, but why image is not displayed just like-is in physical size, but in "logical" one?
« Last Edit: December 20, 2013, 10:48:44 pm by kaczor »

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Embedded images resized for strange reason, why?
« Reply #3 on: December 21, 2013, 12:58:29 am »
Logical (device independent) pixels are becoming more and more common these days precisely because of high-density screens like that of your device.

1920x1080 mean very different things on a 5" smartphone display vs. a 24" desktop monitor vs. a 42" TV panel.

Android's WebView uses logical pixels, so 1080 at this density is 360px in HTML.

Feel free to send me a test message (kmansoft / at sign / gmail / dot com).
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

kaczor

  • Jr. Member
  • **
  • Posts: 50
Re: Embedded images resized for strange reason, why?
« Reply #4 on: December 24, 2013, 01:45:32 am »
done :)

chabrega

  • Newbie
  • *
  • Posts: 1
Re: Embedded images resized for strange reason, why?
« Reply #5 on: December 15, 2014, 02:53:22 pm »
Hi add a new image in HTML signature , and the orignal image has 350px  (width) and the aquamail automate resize my imagem to 245px.

I want to use an image banner full width (600pixel of width).

I'm using the PRO version with the e-mail account andre.phillips

Do you have any solution for this?

Best Regards,
Filipe Nunes

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Embedded images resized for strange reason, why?
« Reply #6 on: December 17, 2014, 01:24:18 am »
There is a complicated technical reason behind this resizing, so it's working "as intended" ("as best as it can, considering").

I would have liked to avoid it, but the "complicated technical reason" is inside Android code.

Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/