diff options
Diffstat (limited to '_posts/2018-06-23-slicing-images-gimp-python.md')
-rw-r--r-- | _posts/2018-06-23-slicing-images-gimp-python.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/_posts/2018-06-23-slicing-images-gimp-python.md b/_posts/2018-06-23-slicing-images-gimp-python.md index 1ad3514..83264b8 100644 --- a/_posts/2018-06-23-slicing-images-gimp-python.md +++ b/_posts/2018-06-23-slicing-images-gimp-python.md @@ -70,7 +70,7 @@ def crop(image, x, width, y, height): ``` The next step is to figure out the filename for this specific tile; here we're getting an index back from the offsets and width and height. -```python +```python x_idx = x / width + 1 y_idx = y / width + 1 filename = pdb.gimp_image_get_filename(image) |