So I want to splice an image into two, for which I wrote this code.
from wand.image import Image
from wand.display import display
with Image(filename="test.png") as im :
im.trim(color=None,fuzz=0)
x,y = im.size
xh,yh = int(x/2),int(y/2)
print(x,y,xh,yh)
im1 = im[0:xh,0:y]
print(im1.size)
display(im1)
The size of image is (1156,242) and hence the spliced image should be (578,242), but it's (553,235) instead. Anyone knows why? Here is the test image.