From 4e7085e82e7aa48b8bc404fd7926b673fc425cdf Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Tue, 17 Nov 2020 16:23:51 -0700 Subject: rework around cactus-ssg --- _posts/2018-06-23-slicing-images-gimp-python.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_posts/2018-06-23-slicing-images-gimp-python.md') 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) -- cgit v1.2.3