That’s not just converting Python to Elixir code, you also need an image processing library.
This thread has a few references: Image processing library
Though I’d probably prefer the one described here: Image - an image processing library based upon Vix
…and by the same author, it even mentions eVision: GitHub - kipcole9/image: Image processing for Elixir