Image size problem?

Hi ,

I am converting html to doc using Aspose.words for java( latest version 4.2 ). I cannot able to retain image size after conversion.

Here is my simple html :

<html>
    <body>
        <img  src="test.jpg" width="100px" height="100px">
    </body>
</html>

after conversion i am getting only original image size . Why ? It is working well in Aspose 3.1.1.1 version only not on later version .

Do help me or suggest some snippet to solve this .

Regards,
Anbu Chezhian.S

Hi

Thanks for your inquiry. In height and width attributes of IMG tag, you cannot specify measurement units. Height and width can be specified in pixels (without any units) and in percents (like this height=’100%’). Please see HTML specification for more information:
http://www.w3schools.com/tags/tag_IMG.asp
Best regards.