Lines Matching refs:image_height
155 def _remove_border(self, image, image_width, image_height): argument
167 while offset[border] < image_height / 3.5:
169 y_range = borders[border](image_height, offset[border], slice_size)
179 slice_size = min(image_height / 20, 10)
181 section = image.crop((x_range[0], 0, x_range[1], image_height))
188 image_height - offset['bottom']))
192 def _entropy_crop(self, image, geometry_width, geometry_height, image_width, image_height): argument
196 while image_width / image_height > geometry_ratio:
200 right = image.crop((image_width - slice_width, 0, image_width, image_height))
201 left = image.crop((0, 0, slice_width, image_height))
204 image = image.crop((slice_width, 0, image_width, image_height))
206 image = image.crop((0, 0, image_height - slice_width, image_height))
211 while image_width / image_height < geometry_ratio:
213 slice_height = min(image_height - geometry_height, 10)
215 bottom = image.crop((0, image_height - slice_height, image_width, image_height))
219 image = image.crop((0, 0, image_width, image_height - slice_height))
221 image = image.crop((0, slice_height, image_width, image_height))
223 image_height -= slice_height