How to speed up thumbnail generation?

General discussions about GdPicture.NET.
Post Reply
accudave
Posts: 16
Joined: Tue May 12, 2015 6:07 pm

How to speed up thumbnail generation?

Post by accudave » Thu Jul 13, 2017 3:39 am

Hey there,
I am generating thumbnails by using GdPictureImaging.GetThumbnailHQ, but it is pretty slow. This is quite noticeable on larger documents (e.g 30 pages takes over 3-4 seconds). The non-HQ method is not much faster.

Is there a way to use parallel processing? I have attempted this, but it appears that this cannot be done due to the underlying stream being accessed by multiple threads at the same time. Appears GdPicture cannot handle this scenario. I can open a new stream for each page on each core, but that is slower due to having to open the file each time.

Using ThumbnailEx for WinForms or WPF is not really an option at the moment. Are there any techniques that can be applied using just the API you provide? Or am I stuck here?

(This would be for both TIF and PDF, though right now I'm testing on TIF documents)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest