Comments (4)
Hi. Is there any particular reason you're using Pillow 9.3.0 rather than the latest version? One reason I ask if that if you don't want to upgrade, and we include a fix for this in a new version, then you won't be helped by it.
from pillow.
ImageGrab.grab(bbox=(left, top, width, height))
This is incorrect, it is actually (left, top, right, bottom)
. So if you pass in 1920 as the third parameter, you are not asking for an image of width 1920, but an image including all pixels from -100 to 1920, i.e. 1920-(-100) pixels wide.
Edit: Your code seems to be mixing up what right/width mean, perhaps you want to use the following code instead?
left, top, width, height = ...
right = left + width
bottom = top + height
bbox = (left, top, right, bottom)
from pillow.
@burning-star-x did that sufficiently explain what is happening?
from pillow.
Closing this issue as no feedback has been received.
from pillow.
Related Issues (20)
- Possible to add an IFD to an image's EXIF data? HOT 2
- Having trouble installing libraqm HOT 23
- `Image.fromqimage()` raises `TypeError` HOT 2
- `alpha_composite` works poorly with transparency
- Windows Docker / nanoserver support HOT 8
- Save GIF without loss of quality HOT 23
- scientific-python-nightly-wheels-publish triggered in fork HOT 1
- `ImageFont` claims to load font sizes in pixels but seems to use points? HOT 6
- Problems HOT 1
- Emf file is not handled correctly HOT 2
- Bitmap missing for glyph HOT 4
- ImportError: cannot import name '_imagingft' from 'PIL' HOT 7
- Cannot install Tkdesigner HOT 2
- Cannot install Tkdesigner HOT 14
- Add XMP writing HOT 4
- Add SVG Support Using PlutoSVG HOT 3
- ImageDraw.rounded_rectangle: wrong ValueError HOT 2
- Crash when using `Draw.text` with invalid type HOT 2
- ImportError: cannot import name 'PILLOW_VERSION' from 'PIL' (python3.7, PILLOW vers < 9.0) HOT 8
- Scale factor for resizing HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pillow.