[ 
https://issues.apache.org/jira/browse/WICKET-2192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12772070#action_12772070
 ] 

Esko Suomi commented on WICKET-2192:
------------------------------------

While all the DTD:s of HTML4 and XHTML 1.0 specify width and height as implied 
(W3C's term for optional) and you are right in a sense, the actual issue 
specifies a very common behavior within the most popular browsers. This 
enhancement is purely chrome, but sometimes chrome means a lot, especially to 
the customers and that's why this is a would-be-nice-to-have feature.

I guess I should point out that at my work we do have a custom Image (and a 
non-caching variant) component nowadays which does this very thing, however 
since it uses our internal classes for the image width/height extraction I 
can't share the code with the Wicket project. So it's doable and I can 
quarantee it'll be fast as long as you stay away from ImageIO and use 
BufferedInputStreams wisely.

> Image should automatically set width and height attributes in markup
> --------------------------------------------------------------------
>
>                 Key: WICKET-2192
>                 URL: https://issues.apache.org/jira/browse/WICKET-2192
>             Project: Wicket
>          Issue Type: Improvement
>    Affects Versions: 1.4-RC2
>            Reporter: Esko Suomi
>            Priority: Trivial
>         Attachments: ImageDocumentProcessor.java
>
>
> org.apache.wicket.markup.html.image.Image component (and all possible 
> derivates) should add width and height attributes of the image it represents 
> automatically to markup to allow for faster correct rendering of the actual 
> page. For example when rendering a table with images in table cells the table 
> cell width may vary a lot during loading of the page and its contents which 
> causes the table to jitter around while loading if image dimension attributes 
> aren't set.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to