I am working on an email integration. I know that the div tag are not well interpreted on various platform (some outlook version, some webmails, etc).
My problem : I want to crop unkown size image... Without using the div tag (so with table...) ! Do you think it is possible ?
Thanks ! Stef
Since this question is specific to email. There is no way to do this across email clients, unless you are only supporting clients like Apple Mail, which of course is not a good idea.
Outlook Desktop client will ignore any size adjustment on an image and show its actual size. I think Outlook.com does this too.
If you're pulling in an unknown image, is this email being generated by a script or RSS? If so, there might be ways to adjust the image before it gets to the email using PHP or other languages that support image manipulation. But that is beyond the scope of this question.
Bottom line, it's not possible to do this in HTML Email. Like others have said, if you can, just crop the image to the size you need before putting it in the email.