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!
Hi Tim
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.
Resize images when saving?
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!
Hi Tim 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.
Cheers
Paul
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.