|
|
 Rank: Aficionado
Joined: 10/31/2007 Posts: 109 Location: Birmingham (UK)
|
I'm using an alternative image thumbnailer because I needed a few extra functions (filling backgrounds etc) anyway I was just wondering if anyone could talk me through how the ImageGen copes with new/updated media? By storing the cached thumbnail in the media's folder is it automatically deleted by Umbraco when the media item is updated? If that's the case I'll ensure the save location is there in my code... Tim
Managing Director at The Site Doctor Ltd - My personal blog is here - Umbraco Newbie ;)
|
|
 Rank: Umbracoholic
Joined: 9/8/2006 Posts: 1,256 Location: KY, USA
|
Hi, Tim, I don't completely follow what you're asking. Let me make a stab at it and you can tell me if I've missed the target :o) First of all, ImageGen is not the tool used within umbraco to create the thumbnail images you see in the media section. Rather, ImageGen is a package you install to resize images from within your templates and macros. ImageGen can create images with background colors, and tons of other options, as explained in the documentation. ImageGen creates resized images when they are requested, and then caches them for later re-use and to ease the cpu burden on the server. You can delete the cached folder(s) at any time and ImageGen will recreate the requested image(s) the next time. cheers, doug.
MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
|
|
 Rank: Aficionado
Joined: 10/31/2007 Posts: 109 Location: Birmingham (UK)
|
Thanks Doug, sorry I wasn't clear. Yes I'm aware of what ImageGen is and what it does however it doesn't do what I need to do and we already have an image manipulator that I can use in it's place however when a user uploads/overwrites an old media item with a new one, I need to re-create the cached copy (which is currently stored elsewhere on the server) and I'm wondering how ImageGen handles that -does it store a file cache, if so where and how does it identify changes in the file? Does it add a file cache dependancy? Tim
Managing Director at The Site Doctor Ltd - My personal blog is here - Umbraco Newbie ;)
|
|
 Rank: Umbracoholic
Joined: 9/8/2006 Posts: 1,256 Location: KY, USA
|
ImageGen compares the requested image settings to those in the cache to see if it already has a version to simply send to the user. If not, it creates the resized image according to its specs, saves the image to the cache folder, sends the file to the user, and updates the cache log file. If the original file is different (date, size, etc) a new version of the resized image will be created. There is a trade-off, obviously, between how many ways you can check to see if the original/master file has been updated and how long it takes to make that determination. Hope that helps. I'd be interested to know what features you needed that ImageGen didn't provide. Perhaps I could add them to a future update. cheers, doug.
MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
|
|
 Rank: Newbie
Joined: 5/12/2008 Posts: 9 Location: Wallowing in self-pity
|
I'm also interested in the cache handling characteristics of ImageGen...
I have two site both using the same xslt to generate text based images for the navigation - both use exactly the same code but one site appears to cache the files and loads them instantly ( handy for rollovers ) and the other site seems to regenerate them every time you hit a page.
This is somehwat curious and i'm wondering if there is anything I need to do to the ImageGen cache...
Ok I simply deleted everything in the data/cached folder and now it runs sweetly :)
|
|
 Rank: Aficionado
Joined: 7/19/2006 Posts: 154 Location: NYC
|
I have only seen 2 problems with ImageGen: 1) If you have a massive number of images in a directory, the index.xml that ImageGen uses also gets massive, and you can see problems like x's showing up instead of your nice images. Mind you, this was a directory with with something like 10k(!) images. 2) Once, and only once, I saw an issue where the index.xml file got corrupted. Deleting the file fixed the problem. - Mark, a big ImageGen fan, and processor of _many_ files with ImageGen. Manhattan Heavy Industries“Algorithms are small but beautiful”, Dr. Karp observed.
|
|
Rank: Aficionado
Joined: 7/21/2006 Posts: 168 Location: Salerno - Italy
|
Is it possible to use ImageGen into ASP.NET site without umbraco? If yes, How?
Red Consulting s.a.s - Umbraco from v1.0
|
|
 Rank: Umbracoholic
Joined: 9/8/2006 Posts: 1,256 Location: KY, USA
|
Yes, ImageGen works without umbraco. You will still need to have asp.net on the server. Just copy the dll into the /bin folder (make a /bin folder if it isn't already there). Then copy the .aspx file to some folder on your site (it could be the /cgi-bin or root folder, or any other). Calling ImageGen for your images is just the same as in the documentation except the path to the .aspx file would be different, depending on where you placed that file. cheers, doug.
MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
|
|
|
Guest |