ponty / pyscreenshot

Python screenshot library, replacement for the Pillow ImageGrab module on Linux.
BSD 2-Clause "Simplified" License
502 stars 88 forks source link

Enabling cropped screenshot to save as file #37

Closed viveksb007 closed 7 years ago

viveksb007 commented 7 years ago

I passed bbox to grab_to_file() of some backends enabling them to save some part of screenshot as file. Its working for ImageMagik.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-2.4%) to 43.606% when pulling f2e9a87fe64b5ad2b204aa90063dcbfe3ce97aa5 on viveksb007:master into 3aca610af2e659e1370a5643212b54b3739b4503 on ponty:master.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-2.4%) to 43.606% when pulling f2e9a87fe64b5ad2b204aa90063dcbfe3ce97aa5 on viveksb007:master into 3aca610af2e659e1370a5643212b54b3739b4503 on ponty:master.

ponty commented 7 years ago

Thanks. The public interface hasn't changed, so the functionality is the same as before.

ponty commented 7 years ago

I added warning if bbox is not implemented and removed unnecessary "if" in this patch.