Multiple media picker / image cropper combinations?
Hi everybody,
In v7.x the Media picker / image cropper combination was introduced. Meaning the "image" media type is now an image cropper. So that images are both 'cropped' and available in the media section.
I'm currently working on a project with a lot of different image crop definitions. For example; a news item has very different sizes than a rectangle banner.
I was wondering if there is a way to have multiple Media picker / image cropper combinations? That way i can have both the crops per doctype and have the images available in the media section.
Multiple media picker / image cropper combinations?
Hi everybody,
In v7.x the Media picker / image cropper combination was introduced. Meaning the "image" media type is now an image cropper. So that images are both 'cropped' and available in the media section.
I'm currently working on a project with a lot of different image crop definitions. For example; a news item has very different sizes than a rectangle banner.
I was wondering if there is a way to have multiple Media picker / image cropper combinations? That way i can have both the crops per doctype and have the images available in the media section.
Any help would be appreciated! Thanks in advance!
Dave
Anyone?
Hi Dave,
Hopefully, this can help someone.
You can find this in the image-cropper documenation.
Use the code below and call in the node id from the multiple media picker.
@Umbraco.Media(1234).GetCropUrl("banner")
is working on a reply...