Try our conversational search powered by Generative AI!

Image resizing generates small images


I have an ImageFile from wich I'd like to generate 300px wide images. The problem is that the images that I get, they sure is 300px wide, but most of the image is wite space. The image itself is just about a ten pixels wide. Does anyone know what could cause this?

[ImageDescriptor(Width = 300)]
public virtual Blob Image300 { get; set; }


var routeValues = new RouteValueDictionary();
routeValues["action"] = "Image300";
var imagePath = _urlResolver.Service.GetVirtualPath(media.AssetLink, null, new VirtualPathArguments() { RouteValues = routeValues });

Oct 28, 2014 11:09

You'll need to specify height as well, or the height will default to 48 px.

You should check out this blog:

It might just be exactly what you need

Oct 28, 2014 11:34
I see, I installed the ImageDataExtensions. Do you know if I can rebuild all the images somehow?
Oct 29, 2014 8:29

Admin -> Scheduled jobs -> Clear Thumbnail Properties

Oct 29, 2014 9:25
Great, thank you both.
Oct 29, 2014 16:20
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.