aboutsummaryrefslogtreecommitdiff
path: root/_posts/2018-06-23-slicing-images-gimp-python.md
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2020-11-17 16:23:51 -0700
committerMelody Horn <melody@boringcactus.com>2020-11-17 16:23:51 -0700
commit4e7085e82e7aa48b8bc404fd7926b673fc425cdf (patch)
tree0f2d01cc638c86f799e5e5652ea1f3f420ab4fbc /_posts/2018-06-23-slicing-images-gimp-python.md
parent4bd4d8dab61993b7d24ee1ca147264ad761dfc68 (diff)
downloadboringcactus.com-4e7085e82e7aa48b8bc404fd7926b673fc425cdf.tar.gz
boringcactus.com-4e7085e82e7aa48b8bc404fd7926b673fc425cdf.zip
rework around cactus-ssg
Diffstat (limited to '_posts/2018-06-23-slicing-images-gimp-python.md')
-rw-r--r--_posts/2018-06-23-slicing-images-gimp-python.md2
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)