browserstack / api

Spec of latest BrowserStack JavaScript testing api
https://www.browserstack.com/javascript-testing-api
119 stars 36 forks source link

Screenshots stored as JPEG but the url ends in .png #33

Open gka opened 5 years ago

gka commented 5 years ago

When I create screenshots using the /worker/:id/screenshot.json endpoint the API returns a url to a PNG image which in fact is a JPEG image. Is there a way to return a real PNG image? I was planning to use the screenshot for automatic frontend testing (using pixel matching) and would rather not have JPEG compression artefacts in the screenshots.

example response: https://s3.amazonaws.com/testautomation/54f41127df9733579bb00bf009cda30b3295cbfa/js-screenshot-1551970472.png

kalamcs commented 5 years ago

Hi @gka

We will soon look into it and get this resolved.

Thanks for pointing out the issue.

regards