Developer forum

Forum » CMS - Standard features » Thumbnails being recreated

Thumbnails being recreated

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

I have a folder with about 10K images. I configured thumbnails as follows:

 

While creating the thumbs the site recycled and the creation process stopped. I then copied an existing image in the hopes it would restart the process. It did, but it starts from scratch: recreating thumbs that already existed. 

Not sure if this is caused by copying the file, or visiting the folder.

The issue seems simiar to this one https://doc.dynamicweb.com/forum/cms-standard-features/cms-standard-features/image-setting-effect-on-performance except that we do store them in a sub folder called Thumbs.

Any idea what's going on?

Imar


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

10000 images is a lot. And if they are big, it will take a lot of memory to load and resize each image. So if the IIS app pool reaches the memory limit and is set to recycle, this could happen. Image handling is done by an unmanaged library, so there is some latency on the GC of the memory so it will not be suitable for these sizes of operations.

So it might be a good idea to split the images to subfolders, resize before upload or use getimage.

In Dynamicweb 10 this feature is deprecated.

BR Nicolai

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Yeah, I agree that 10K is a lot. It won't be easy to update it to sub folders but we may have to do that anyway.

The problems seems slightly different though. It seems that every time I visit the main folder it recreates all thumbs:

I just clicked on the main PIM folder and then on Thumbs and all thumbs have a created date of now.

Is that by design? If so, I should completely rethink my strategy as I need to keep track of when images were created the first time so we can provide the right data to an external party.

Imar

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi,

Reproduced. The image settings should track date-time of thumbnail creating/updating by LastApply parameter. And it use that date to determine if it is needed to make an update.
Although, this parameter seems not to be updated now - looks like valid bug. I've created task #14356 against this. Thanks.
 
BR, Oleg QA
 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Imar

Bug #14356 now fixed and released in Dynamicweb version 9.15.10

https://doc.dynamicweb.dk/downloads/dynamicweb-9

Kind Regards
Dynamicweb Care Support
Kristian Kirkholt

 

You must be logged in to post in the forum