Using CEF for HTML page thumbnail generation

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Re: Using CEF for HTML page thumbnail generation

Postby magreenblatt » Fri Feb 19, 2016 9:50 pm

There's no "done loading" state for arbitrary dynamic content. If you control the content then you could execute a JS callback when you know that it's done loading.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Using CEF for HTML page thumbnail generation

Postby Mayhew » Wed Feb 24, 2016 5:31 pm

Okay, I just wanted to be sure there wasn't any callback API I was missing.

My solution was to wait for OnPaint calls to settle down. After a set number of calls or a specific amount of time expires, I just invalidate and wait for the next OnPaint and process the buffer. This seems to work pretty well.
Mayhew
Expert
 
Posts: 303
Joined: Mon Apr 18, 2011 8:02 pm

Re: Using CEF for HTML page thumbnail generation

Postby costander » Tue Jun 18, 2019 3:29 am

Hi, I am in need of the thumbnail generation. Did you find any callback we can listen to for this purpose? As per my understanding, the onpaint callback gets called multiple times and we wont be knowing when to generate the thumbnail. Did you get any solution for this problem?
costander
Newbie
 
Posts: 1
Joined: Tue Jun 18, 2019 2:03 am

Previous

Return to CEF Discussion

Who is online

Users browsing this forum: Google [Bot] and 23 guests