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 :

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

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

Do help me or suggest some snippet to solve this .

Anbu Chezhian.S


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:
Best regards.