Try our conversational search powered by Generative AI!

ImageResizer not working in edit-mode


I'm using the module together with the ImageResizer.Plugins.EPiServerBlobReader nuget package.

In view-mode the module works just fine. However, when in edit-mode the images are not being transformed by the module. 

Anyone experiencing the same issue?

My installation is 7.5 w/ blob storage (migrated from VPP).

Sep 24, 2014 20:26

Olov seems to have had the same issue here

"I had to modify PostAuthorizeRequestStarted to get resizing in edit mode: 

protected virtual void PostAuthorizeRequestStarted(IHttpModule httpModule, HttpContext httpContext) 

var path = HttpUtility.UrlDecode(httpContext.Request.Url.AbsolutePath); 

if (path == null || !_isEditModeImageUrlRegex.IsMatch(path)) 


Config.Current.Pipeline.PreRewritePath = _isEditModeImageUrlRegex.Match(path).Groups[1].Value; 

Sep 25, 2014 14:33

Thanks, Petter!

Oct 01, 2014 9:42

You could also do like this when getting the url for the image.

@UrlResolver.Current.GetUrl(Model.ContentLink, null, new VirtualPathArguments {ContextMode = ContextMode.Default})?width=115&process=always&format=png"

Where the "new VirtualPathArguments {ContextMode = ContextMode.Default}" is the part were you get the ordinary url for the image instead of a internal episerver url.

Feb 02, 2015 15:42
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.