question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Screenshot has a little bit of background attached

See original GitHub issue

Hey, I’m using Appium with WinAppDriver with Visual Studio 2015 Community Edition to Test a UWP application.

I was doing some screenshots for documentation with

var img = mySession.GetScreenshot();
img.SaveAsFile("D:\\myfile.jpg", ImageFormat.Png);

and after opening the file, there was some parts of the background (maybe 3-10 pixels) over the App border in the image. I don’t know, whether this is related to Appium or WinAppDriver, but is there a way to fix this? A workaround might be to crop the image myself with an Image Tool, like IrfanView, but I would like to avoid that.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
miniksacommented, Mar 31, 2017

A fix to this issue should be coming in v0.8.

1reaction
khouzamcommented, Aug 25, 2016

We’re looking at improving the way screenshots are implemented.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I remove the background from my image screenshot?
In order to get rid of background in few seconds use FOCOCLIPPING in order to allow your image looks more attractive and good....
Read more >
iOS takes a screenshot of App every time it is sent to ...
Here is the path where the screenshot is being stored when my App gets backgrounded. Even more critical scenario will be if user...
Read more >
Window Screenshot background black - Ask Different
1 Answer. This happens when you switch screenshot file type to jpg. Switching back to default (png) solves the problem.
Read more >
How to remove the shadow effect from screenshots on Mac
Hold the Option key and click on the window with the camera icon to take a screenshot without the shadow effect. Remove the...
Read more >
Visual Studio Code problem (attached screenshot)
I almost have it working but there's something I must have mis-clicked which is causing the webpage to not display the background or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found