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?
You can use the ImageDescriptor attribute
That didn't work for me, but let me try once more.
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?
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