SaaS CMS has officially launched! Learn more now.

Capturing a screenshot of web page from an API request

Vote:
 

I need to develop an endpoint that will go to a specific web page and take a screenshot. I've found that https://github.com/hardkoded/puppeteer-sharp should be able to do the job required but my main concern is would this be possible to host on the DXP platform as i know it hosted on linux machines and chromium will require some additional packages to be able to run.

#323369
Jun 10, 2024 10:21
Vote:
 

Hi Danyaal

I doubt it would work if you're talking about CMS 12 hosted on DXP Linux container. One of the prerequisites of this library is "X-server" is required, I don't think any linux container by default would have this installed and configured.

p.s. The quickest way to confirm this is either send support ticket or do a quick POC in your DXP non-production environment.

#323410
Jun 11, 2024 0:31
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.