-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
PyEncoder doesn't exist #4059
Comments
This was added in #1938. Looking at the thread, it seems that this was simply not implemented yet. |
I'm interested in this as well, since I'd like to write a DXT compression plugin but don't know where to begin with writing the encoder |
@drewcassidy I managed to get an encoder working by manually implementing the encoder class. The required public methods are You can check my work and hopefully adapt it to your image format. Good luck. |
I've created PR #6069 to add PyEncoder. |
What did you do?
Attempted to implement a Python based encoder for an image plugin.
What did you expect to happen?
From the documentation of 'register_encoder', I expected ImageFile.PyEncoder to exist.
What actually happened?
It does not exist in any namespace that I can find. Is this an oversight or is there a new way to implement Python based encoders suitable for addition to register_encoder?
What are your OS, Python and Pillow versions?
The text was updated successfully, but these errors were encountered: