Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image.transform data not well documented #7683

Closed
AlexKubiesa opened this issue Jan 2, 2024 · 2 comments
Closed

Image.transform data not well documented #7683

AlexKubiesa opened this issue Jan 2, 2024 · 2 comments

Comments

@AlexKubiesa
Copy link

The Image.transform documentation describes the data parameter as

Extra data to the transformation method.

However, the documentation doesn't mention which data needs to be provided and in what format.

I am using perspective transform in a project and I was able to reverse engineer that a 1D numpy array of 8 floats works, but as I am lacking some of the theory behind it, it was unintuitive and I'm still not sure what the best way to generate those 8 numbers is.

@nulano
Copy link
Contributor

nulano commented Jan 2, 2024

With the exception of the perspective transform, I think the others are documented here: https://pillow.readthedocs.io/en/stable/PIL.html#module-PIL.ImageTransform
However, I agree that this is not well discoverable in the documentation.
Edit: I've created #7684 to better link to the ImageTransform module.

@AlexKubiesa
Copy link
Author

@nulano thank you for updating it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants