November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
There is an event, but I'm a much bigger fan of doing this on-request, and storing (caching) the result. We insert the image on the page with a URL to a thumbnail script, and pass the desired width as a querystring arg. Like this:
/thumbnail.ashx?f=/my-image.jpg&w=200
Then, we resize the image, cache the result (the key is an MD5 hash of the querystring arguments), and return the image. Future requests access the same image.
We used these two:
EPiServer.Web.Hosting.UnifiedFile.UnifiedFileDeleting
EPiServer.Web.Hosting.UnifiedFile.UnifiedFileMoving
In Visual Studio, type...
EPiServer.Web.Hosting.UnifiedFile.
...and Intellisense will give you a bunch of them. There are about a dozen.
A bit late, but you should handle:
UnifiedFile.UnifiedFileChanged
UnifiedDirectory.UnifiedFileAdding
In additon to those Deane mentions above.
Hi,
I want to create a thumbnail while uploading an image.
How can this be done? Is there an event that I can use?
// Nicke