Skip to content

Commit f033b35

Browse files
committed
Make a similar fix in Make_Movie
1 parent 2da5cb1 commit f033b35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

omero/export_scripts/Make_Movie.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def reshape_to_fit(image, sizeX, sizeY, bg=(0,0,0)):
321321
# scale
322322
print "scale...from ", image.size, " to ", sizeX, sizeY
323323
ratio = min(float(sizeX) / image_w, float(sizeY) / image_h)
324-
image = image.resize(map(lambda x: x*ratio, image.size), Image.ANTIALIAS)
324+
image = image.resize(map(lambda x: int(x*ratio), image.size), Image.ANTIALIAS)
325325
print ratio, image.size
326326
# paste
327327
bg = Image.new("RGBA", (sizeX, sizeY), (0,0,0)) # black bg

0 commit comments

Comments
 (0)