How can I take image URL to a particular format?

hi,
I have taken dummy image with .jpg format, it generates this type of image http://dummyimage.com/142x233.png/ff4444/ffffff .

is there any way if i can trim the URL till ‘.jpg’ as i don’t want "/ff4444/ffffff " after .jpg

e.i. I only get URL like ‘http://dummyimage.com/142x233.png’ instead of ‘http://dummyimage.com/142x233.png/ff4444/ffffff

@mockaroo plz reply

tasminkhan95

One way you can do this is by setting the formula on your url field. You can use this

this.sub!(/.{14}$/,'')

Here is a sample:

Rich

@rich.bateman

Thanks alot, i have been looking for this too long !!!