Hi Vincent,


On Fri, Nov 21, 2008 at 1:32 PM, Vincent Massol <[EMAIL PROTECTED]> wrote:

>
> On Nov 21, 2008, at 4:46 AM, Asiri Rathnayake wrote:
>
> > hi Vincent,
> >
> >> + same question for image height & width... I'm asking these
> >> questions
> >>> because I think that sort of information should be preserved,
> >>> otherwise the
> >>> document will look really strange after import.
> >>
> >> This is a bit tricky... The real answer (which is probably hard to
> >> implement is):
> >>
> >> * Remove height and width for images if they match the original image
> >> size
> >> * Otherwise keep them
> >>
> >
> > Well, I don't think there is an easy way to figure out the actual
> > dimensions
> > of an image without using some image manipulation code. At least
> > we'll have
> > to load the image into some kind of structure. But this can be
> > costly in
> > terms of performance specially when there are lost of images
> > embedded in the
> > document.
>
> Yes which is why I said it's tricky.
>
> Does the OO-generated HTML always specify width and height even when
> the image isn't resized?


Yes, it includes height & width attributes always.

Thanks.

- Asiri


>
>
> Thanks
> -Vincent
>
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to