Resize the image stored in the db_image table

Tejaswini9
Tera Expert

Hello guys,

I have uploaded 2 images in the image(db_image) table, and i have resized the image and uploaded the image to the "db_image" table, and used these images in my approval notification, but the image clarity is not good.

find_real_file.png

The original image size is too big and is there any way i can resize the image in the mail script?

Mail Script:

var img = "/Rejects.png";
var response = "reject";
var rejectis = "I reject this request.%0D%0A%0D%0A";
var rejectreason = 'Rejection Reason: %0D%0A%0D%0A';
var emailbod = rejectis + rejectreason + '%0D%0A%0D%0A';
template.print(renderMailtoButton(img, response, emailbod));

Any suggestions will be highly appreciated!!!

Thanks

 

1 ACCEPTED SOLUTION

Pranav Bhagat
Kilo Sage

Hi 

 

You can try to upload the correct sized image or you can use the CSS like below

 

<img src="img_girl.jpg" alt="Girl in a jacket" width="500" height="600"> //Add width and Height accordingly 

 

Regards

Pranav

View solution in original post

1 REPLY 1

Pranav Bhagat
Kilo Sage

Hi 

 

You can try to upload the correct sized image or you can use the CSS like below

 

<img src="img_girl.jpg" alt="Girl in a jacket" width="500" height="600"> //Add width and Height accordingly 

 

Regards

Pranav