-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
saving file as png saves the contents as jpg #203
Comments
this method doesn't strip out the leading dot in the file extension. the format will always be Jpeg
|
i figured it out . see pull request #204 |
@basimc4 thanks, I will take a look on you PR |
I just wanted to add that WebDriver on .NET Core only supports PNG image format. Since PNG files are being unintentionally saved as JPEG image format, that causes WebDriverException every time. Workaround is to bypass BrowserSession and use native WebDriver ITakesScreenshot functionality. |
@basimc4 |
@obstar can this issue please be reopened? I also just ran into it too. I'm using Coypu in a .NET Core test suite which only supports PNG files. I have my file extension listed as .png, but am getting the following error:
This is just like @basimc4 described.
Coypu's ImageFormatParse.AreEqual() function is:
|
@berckoi ok, I will go back to it with proper .net core project |
@berckoi @basimc4 |
Thanks for the quick turn around @obstar! I updated to Coypu 3.1.1 and can confirm that my screenshots are generating flawlessly! |
@berckoi np |
in coypu v3
when calling SaveScreenshot with filename sample.png, the contents of the file are actual jpg ie the mime type is image/jpg instead of image/png
The text was updated successfully, but these errors were encountered: