Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
We have users who insist on uploading huge images despite advice to the contrary. Is there any package or code that enables us to resize them on save (and not save the large version). I installed Aspose (https://our.umbraco.org/projects/collaboration/automatically-resize-images-on-save-using-aspose-image-resizer-for-umbraco/) but that didn't seem to do anything - suspect it's not for v7 Umbraco.
In the past I have written plugins to resize the image on save (in another , non IIS CMS) to multiple (pre-configured) sizes to be used for responsive images, so something like that would be even better!
I would check out ImageProcessor and ImageProcessor.Web
I used them recently when creating dynamic PDFs which needed me to resize the images on the fly. I would then hook into the media saving event and use the ImageProcessor code to resize it.
I'm going to have to do this for my own website soon, so if you haven't done it by then you can use my code. Or if you do it before then it would be great to see your code.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted