mirror of
				https://github.com/ivanch/tcc.git
				synced 2025-10-31 01:17:37 +00:00 
			
		
		
		
	blur nativo
This commit is contained in:
		| @@ -37,9 +37,12 @@ class ImageService: | ||||
|  | ||||
|     def box_blur_image(self, img, radius): | ||||
|         with Image(blob=img) as image: | ||||
|             blurred_image = box_blur_image_separable(image, radius, 0) | ||||
|             blurred_image = box_blur_image_separable(blurred_image, 0, radius) | ||||
|             return blurred_image.make_blob() | ||||
|             image.gaussian_blur(radius, radius) | ||||
|             return image.make_blob() | ||||
|  | ||||
|             # blurred_image = box_blur_image_separable(image, radius, 0) | ||||
|             # blurred_image = box_blur_image_separable(blurred_image, 0, radius) | ||||
|             # return blurred_image.make_blob() | ||||
|  | ||||
|     def get_simple_image(self): | ||||
|         with open("./static/small-image.png", "rb") as file: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user