Do we have any built in function to resize image from url or generate thumbnail image?

2025/07/27 5:31 AM

Do we have any built in function to resize image from url?

example: I've a url like this: http://localhost:9614/getContentAsset/663c1414-1291-4ea9-9be6-1f4abefcae7e/5946b7ee-dae8-494e-bd49-94d95a25d4b2/Banner-Desktop.webp
can we add any param to resize image, or have a function, when we upload image, it should generate another image with correct dimension?

I see Image variant, but I don't know how to use it, could you help give me a sample?


Environment

  • Xperience by Kentico version: [30.6.0]

  • .NET version: 9

Tags:
v30.6.0

Answers

2025/07/27 9:29 AM
Answer

You should probably look at using image variants as a starting point, natively Xperience by Kentico doesn’t handle image processing on demand through query string parameters. Images are processed and optimised on upload, or addition of a new image variants.

You create the image variants in the CMS using specific widths/heights etc, and give the variant a codename. This code name is added to the image url generated by Kentico to use the right crop.

However, if you really want the ability to use on demand image processing, you can install this community package which adds that ability for you. Ideally this would be used in combination with a CDN for caching, which as Cloudflare.

To answer this question, you have to login first.