appium / appium-for-mac

[deprecated] Application for automating a mac app with JSON wire protocol
Apache License 2.0
193 stars 70 forks source link

Screenshots for appium for mac #52

Closed kimjunte closed 4 years ago

kimjunte commented 5 years ago

The image file is not readable within Ubuntu 18.04 when you save the screen shot to a file. Seems like a faulty png

kimjunte commented 5 years ago

32

kimjunte commented 5 years ago

I have attached one of the 'screenshots' it does for mac.

michael-caffrey commented 5 years ago

Having a very similar issue. Any update on this?

Jiurong-Yang commented 5 years ago

You can open it with gimp. But maybe not other image viewer software. I think it has to do with weird color schema used by Mac OS

KazuCocoa commented 4 years ago

This screenshot is by below native screenshot command by macOS. Potentially, their PNG format is wrong or need to use other image viewers. (Probably nothing we can do for now. Or re-write this logic with another way...?) https://github.com/appium/appium-for-mac/blob/6a60be0bdc67a05146dc00696a4855ae7f966526/AppiumForMac/Server/Controller/AfMSessionController.m#L1832-L1846