Try our conversational search powered by Generative AI!

How to add more blobs like Thumbnail


Hey, I've been trying to add another dimension similar to Thumbnail and I do get it saved as blob, but the naming is wrong (it just has a new GUID).

The simplified code is the following:

img = img.CreateWritableClone() as ImageFile;
var contentIdentifier = img.BinaryDataContainer;
img.TabletImage = blobFactory.CreateBlob(contentIdentifier, ".jpg");

I would expect to have the new image named oldimage.jpg/tabletimage. How do I achieve this?


Feb 11, 2014 16:44

You can use the ImageDescriptor attribute


Feb 11, 2014 21:29

That didn't work for me, but let me try once more.

Feb 12, 2014 9:07

I see now, no need to generate anything, just to decorate it with proper width and height. Thx so much!

What happens with quality, can you somehow override the default resizing behavior - ie. could you crop the image instead of scaling it?

Edited, Feb 12, 2014 9:27

I've just written a blog about this very feature, and I've written a Nuget package that allows a more better ability to scale the image and handle aspect ratios. It still can't do cropping, but there is the native ImageService in EPiServer which does allow that


Feb 13, 2014 11:14
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.