I just released a new package that allows image cropping at the page/block level. You can choose from two editors:
Image Rerence (Single Image)
Image Reference List (Galleries)
You can also define crop ratio for each editor:
Nuget repository: https://nuget.episerver.com/package/?id=ITMeric.ImageCrop
Really look forward to hearing your thoughts/comments.
Thanks for creating it Maciej, it looks great!
It's worth creating a blog to share this. It's super easy to blog straight on World from here: https://world.episerver.com/manage-your-blogs/
Thanks for the kind words :)
I would love to gather some feedback from the fellow devs so all the bugs/issues can be fixed upon sharing with the community.
interesting. does it just crop or resize as well?
It does resize too - it extends ImageResizer.Plugins.EPiServerBlobReader helper methods :)
ex: Model.CurrentPage.Image.GetCropUrl(width: 100, height: 100)
Model.CurrentPage.Image.GetCropUrl(width: 100, height: 100)
I see, nais! what is a bit conflicting (for me at least) that there are couple of packages sovling the same issue (see Ted's promo video - https://youtu.be/pVifzJIImz8). thinking - maybe it's time to unite and create single (but the most awesome) package all together?! :)
In the short term aim for this package is to support rich media as well (mp4, youtube, vimeo etc).
If you have had a chance to look at it, I would really appreciate your thoughts.
I no developer :D what could old guy say about foreign code..
Very nice add-on! I did some tests with your code and my ImageProcessor.Web.Episerver add-on and it worked without any code changes (except for changing references of course). Would you be interested in releasing an ImageProcessor compatible version? And if not, would you mind me building something based on your code?
An ImageProcessor compatible version of the package has now been released. See https://world.episerver.com/blogs/vincent-baaij/dates/2019/1/episerver-and-imageprocessor-new-crop-addition/
Apologies, somehow missed your initial message.
As I will be brining some updates to the package in due course, it would be ideal if you could submit changes as a pull request.