Re: Images in news mails - Mailing list pgsql-www

From Tobias Bussmann
Subject Re: Images in news mails
Date
Msg-id 4C210077-20E5-415C-8A69-B82331A42B9A@gmx.net
Whole thread Raw
In response to Re: Images in news mails  ("Jonathan S. Katz" <jkatz@postgresql.org>)
Responses Re: Images in news mails
List pgsql-www
Am 05.09.2025 um 20:23 schrieb Jonathan S. Katz <jkatz@postgresql.org>:
> This has plagued me for years, and I'm so happy you tracked this down!

I'm happy to hear, I'm not the only one seeing this. Glad to help!


> The patch looks good; have you tested in a few other mail clients? I haven't had a chance to test yet.

I haven't tried other mail clients myself, but as the style definition is just redundant to the img attributes, I
wouldn'texpect any regression by this. But HTML emails are full of miracles ;) 

Litmus.com has become quite expensive for render previews, so I looked for alternatives. I found Testi.at, which offers
somefree tests at least. Unfortunately, I was unable to provide the full MIME structure there and thus could not
simulatethe CID-referenced image that causes the problem in Apple Mail. When I experimented with an externally hosted
image,the result looked good in the provided previews. However, I visually identified another issue: Outlook does not
seemto support the 'float' style attribute [1 footnote 1]. In the v2 patch, I implemented a workaround to duplicate the
'float'style using an 'align' img attribute. Previews of the resulting rendering can be found at [2]. 

Best
Tobias

[1]: <https://www.caniemail.com/search/?s=float>
[2]: <https://testi.at/proj/7oveul95szn3cz5as6>


Attachment

pgsql-www by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Upcoming Events on front page
Next
From: Magnus Hagander
Date:
Subject: Re: Images in news mails