wagtail / Willow

A wrapper that combines the functionality of multiple Python image libraries into one API
https://willow.wagtail.org/
BSD 3-Clause "New" or "Revised" License
273 stars 53 forks source link

Feature: Support opening images by path #108

Open RealOrangeOne opened 1 year ago

RealOrangeOne commented 1 year ago

Currently, Willow requires a file-like object to construct an image. Pillow itself (and Willow when using the Pillow backend) support opening files by path, which can be much more convenient.

Pistonamey commented 1 year ago

Hello, Myself Amey Shinde, I have previously worked with Willow and Pillow. I would like to work on this issue. However, I had a question: Do we not want to open the image (path) as a Pillow object, convert it to a Willow object and then perform willow operations on the converted willow object?

I have written a program that takes a path, opens the image as a pillow object, and then converts it to a willow object. I also perform some willow operations like resizing the image using the converted willow object and saving the file, which works successfully.

I would like to work on the issue. So, I request you assign this issue to me.

Original Image (1920x1080): Screenshot (1718)

Image after resizing (400x400): Screenshot (1719)

With regards, Amey Shinde.