Whenever a content node of the correct type is published, execute your create barcode image code and save the resultant file to /images/barcode/{id}.jpg where id is the content node id of the new content.
Then whenever you wish to render the bar code, you know its called /images/barcode/{id}.jpg
This means that only when the content node changes do you create a new barcode, so for all page requests the barcode image is 'cached'.
Store dynamic images ( barcode renders ) into a cache folder
Hi all,
for a project we need to print a coupon page that contains barcode image that is rendered based on the company name.
Now every time the coupon page is called to print the rendering takes place.
Now we want to store the rendered image so that it doesn't have to do this everytime.
Can we use some umbraco cache technology to store images and remove them when the name is changed in the backoffice?
Any ideas or suggestions?
/Michaël
Hi,
Most of my ideas involve hooking into the publishing event.
So for example:-
Whenever a content node of the correct type is published, execute your create barcode image code and save the resultant file to /images/barcode/{id}.jpg where id is the content node id of the new content.
Then whenever you wish to render the bar code, you know its called /images/barcode/{id}.jpg
This means that only when the content node changes do you create a new barcode, so for all page requests the barcode image is 'cached'.
Cheers
is working on a reply...