Esempio n. 1
0
def get_pixel_image():
    # Get the arguments sent from the client to the picture
    params = request.args.to_dict()

    grandma_project(params['image'], params['height'], params['width'],
                    params['size'])

    image_path = './Image2.jpg'

    return {'img': url_for('static', filename=image_path)}
Esempio n. 2
0
 def test_general_2(self):
     grandma_project("B.jpeg", 30, 30, 10)
Esempio n. 3
0
 def test_general_1(self):
     grandma_project("A.jpg", 30, 30, 10)
Esempio n. 4
0
 def test_image_not_exist(self):
     grandma_project("dddd.jpeg", 10, 100, 7)
Esempio n. 5
0
 def test_general_4(self):
     grandma_project("B.jpeg", 10, 100, 7)
Esempio n. 6
0
 def test_general_3(self):
     grandma_project("A.jpg", 300, 500, 50)