예제 #1
0
             halign="center",
             valign="middle",
             focal_points=[],
             crop_left=0,
             crop_top=14,
             crop_right=200,
             crop_bottom=125),

    # tests with focal points
    TestData(source_width=200,
             source_height=200,
             target_width=100,
             target_height=100,
             halign="center",
             valign="middle",
             focal_points=[fp(100, 100, 1)],
             crop_left=None,
             crop_top=None,
             crop_right=None,
             crop_bottom=None),
    TestData(source_width=400,
             source_height=200,
             target_width=100,
             target_height=100,
             halign="center",
             valign="middle",
             focal_points=[fp(100, 100, 1)],
             crop_left=50.0,
             crop_top=0,
             crop_right=250.0,
             crop_bottom=200),
     valign="middle",
     focal_points=[],
     crop_left=0,
     crop_top=3,
     crop_right=200,
     crop_bottom=114,
 ),
 # tests with focal points
 TestData(
     source_width=200,
     source_height=200,
     target_width=100,
     target_height=100,
     halign="center",
     valign="middle",
     focal_points=[fp(100, 100, 1)],
     crop_left=None,
     crop_top=None,
     crop_right=None,
     crop_bottom=None,
 ),
 TestData(
     source_width=400,
     source_height=200,
     target_width=100,
     target_height=100,
     halign="center",
     valign="middle",
     focal_points=[fp(100, 100, 1)],
     crop_left=50.0,
     crop_top=0,