i want to add borders to an image which have an irregular shape. i want to dynamically add border for different shaped images during runtime using python just like cloudinary. https://res.cloudinary.com/demo/image/upload/unicorn_rainbow.png https://res.cloudinary.com/demo/image/upload/e_outline,co_red/e_outline,co_rgb:FF7F00/e_outline,co_yellow/e_outline,co_rgb:00FF00/e_outline,co_blue/e_outline,co_rgb:4B0082/e_outline,co_rgb:9400D3/e_outline,co_red/e_outline,co_rgb:FF7F00/e_outline,co_yellow/e_outline,co_rgb:00FF00/e_outline,co_blue/e_outline,co_rgb:4B0082/e_outline,co_rgb:9400D3/unicorn_rainbow.png like this. cloudinary is adding different colour borders to a unicorn image. is this possible using python. i am currently using wand library but i am open to use any other library if that solves the problem
what i currently have is rectangle border and i am cropping the image to make that a circle using wand