cancel
Showing results for 
Search instead for 
Did you mean: 

how to change image size in HTML

Former Member
0 Kudos

Hi there,

      I am tring to change image size retrieved from internet, which is displayed in a blank cell , my HTML is as follows:

="<a
href=\"../../opendoc/openDocument.jsp?iDocID=olWSm_EAAMkZGwUASgyFpxegGDU&sIDType=CUID&sType=wid&sReportName=Report
4&sRefresh=N\" title=\"\" target=\"_blank\"
nav=\"doc\"><img src=\https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRporK4UiTbFrJvEIcjIg-bKPdo-2OI2JIhCo85vCXM762e...
height=10 width=10></a>"

    above sytax is correct to display image in blank cell, but its size can't be adjusted by 'height=10 width=10 '. could you please help how to do this size change of the image?  I have checked the forum, but can't find answere anywhere.

Accepted Solutions (1)

Accepted Solutions (1)

former_member207052
Active Contributor
0 Kudos

I think the issue is because you are not enclosing the size within double quotes.

The syntax should be something like : .. width="100" height="50"

Former Member
0 Kudos

narash,I have tried double quotation, but it should syntax error, if remove double quotation, then no sytax error.

former_member207052
Active Contributor
0 Kudos

of course, you need to use escape character while embedding the HTML code.

width=\"100\" height=\"50\"

Former Member
0 Kudos

thanks narash, syntax correct now, but still no change of the image. so I suppose this sizing doesn't work for webi formula.

Answers (2)

Answers (2)

shravan_kumar24
Explorer
0 Kudos

Hi Zhang,

HTML syntax will not help changing the size of image, you need to change the size of the cell.

You need to play with transparent background images & work out with different sizes.

Thanks,

Shravan

Former Member
0 Kudos

Shravan, as this is web image, it can't appropriately change by change cell size.

CdnConnection
Active Contributor
0 Kudos

Bo,

      The best way to do this changes the cell settings to stretch and then adjust the Height & Width of cell, see below

Then go to Layout to change size of CELL.

Regards,

Ajay

Former Member
0 Kudos

Ajay, the image used is not from local, it is web image, it can't be streched in that way.

CdnConnection
Active Contributor
0 Kudos

Bo,

      Any reason why the Image is hyper-linked?   Does the source image change ?

If the image is the same, I would suggest save the image locally and then add it to the WebI cell.

Ajay