Image resizing generates small images

Vote:
 

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?

[ScaffoldColumn(false)]
[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 });



#112375
Oct 28, 2014 11:09
Vote:
 

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

You should check out this blog: http://www.markeverard.com/2014/02/13/image-resizing-in-episerver-7-5-cms/

It might just be exactly what you need

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

Admin -> Scheduled jobs -> Clear Thumbnail Properties

#112487
Oct 29, 2014 9:25
Vote:
 
Great, thank you both.
#112531
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.