how to change the size of the image

zhihong
Tera Contributor

in a form, i add a image type field(Attachment Image), now  i put an image in it , but how to  change the size of the  image which i added .please help me.

find_real_file.png

find_real_file.png

1 ACCEPTED SOLUTION

Harsh Vardhan
Giga Patron

whenever you add the image in image type field it stored into the attachment table and you can not change the size. so best way would be , try to upload the high resolution image. 

 

give a try to upload the high resolution image and see if it's showing you clearly or not.

 

Note: Image resizing is defined by the CSS. Larger images are resized to 250 pixels. For most browsers, the larger of the height and width measurements is reduced to 250 pixels and the proportion of the image is maintained. For example, an image with a size of 1508 x 663 pixels is resized to 250 x 110 pixels. Some browsers resize both the height and width measurements to 250 pixels, resulting in a square image.

 

https://docs.servicenow.com/bundle/newyork-platform-administration/page/administer/field-administrat...

View solution in original post

4 REPLIES 4

Omkar Mone
Mega Sage

Hi 

As soon as you add an image there, it gets stored in db_image table of ServiceNow as well as the Attachments table(sys_attachment). We cannot edit the image height here, but if it is on portal, it can be changed.

 

Regards,

Omkar Mone

 in db_image table , I try to alter the height and width, it seems doesn't work.

If i add an image to portal, how to change the size of the image, by the CSS? I just started to learn servicenow and i don't know how to do it at all. Could you tell me more about it. If you explain it with pictures , it would be better.

Harsh Vardhan
Giga Patron

whenever you add the image in image type field it stored into the attachment table and you can not change the size. so best way would be , try to upload the high resolution image. 

 

give a try to upload the high resolution image and see if it's showing you clearly or not.

 

Note: Image resizing is defined by the CSS. Larger images are resized to 250 pixels. For most browsers, the larger of the height and width measurements is reduced to 250 pixels and the proportion of the image is maintained. For example, an image with a size of 1508 x 663 pixels is resized to 250 x 110 pixels. Some browsers resize both the height and width measurements to 250 pixels, resulting in a square image.

 

https://docs.servicenow.com/bundle/newyork-platform-administration/page/administer/field-administrat...

"Note: Image resizing is defined by the CSS."

 

What CSS is that referring to?