The Dillo user v4hn recently sent a message to this list regarding incorrect image scaling. She or he expresses exactly what I have on my mind: http://lists.dillo.org/pipermail/dillo-dev/2015-July/010596.html I use Dillo 3.0.4 from the Debian stable repositories and I experience the ugly image scaling on many sites, for instance on the two largest news (paper) sites here in Sweden: http://www.dn.se http://www.svd.se I can imagine that most people trying out Dillo will find the stretched-out images very off-putting. Changing the aspect ratio of an image is something you almost never want do do, and changing the aspect ratio of a photo is a big no-no. What's your view on this? Do you use Dillo with CSS disabled? Actually, I think it would be better if image scaling was not implemented at all, rather than broken like this. I'm not familiar with the Dillo code base but I'm a programmer proficient with C and I know some C++, so if I (with some hints) can help I would be more than glad to. Regards, August
On 2015-07-28 17:34, August Karlstrom wrote:
Changing the aspect ratio of an image is something you almost never want do do, and changing the aspect ratio of a photo is a big no-no. What's your view on this? Do you use Dillo with CSS disabled? Actually, I think it would be better if image scaling was not implemented at all, rather than broken like this.
Apparently some (or most?) browsers, Firefox for instance, do uniform scaling when only one of the width or height attribute is set on an img element. Dillo does non-uniform scaling and changes only the specified dimension. Here is what the reference has to say about it: "When the object is an image, it is scaled. User agents should do their best to scale an object or image to match the width and height specified by the author." http://www.w3.org/TR/html401/struct/objects.html#edef-IMG It seems to be a question of interpretation. -- August
Apparently some (or most?) browsers, Firefox for instance, do uniform scaling when only one of the width or height attribute is set on an img element.
Yes, this is the right thing to do and is the only way images should generally be used on the web (since you always want uniform scaling and don't get it when setting both width and height, so only one of width or height should ever be set).
participants (2)
-
fusionfile@gmail.com
-
singpolyma@singpolyma.net