Describe the bug
The encoding argument seems to be ignored.
To Reproduce
-
Save this image as file.png:

-
Run:
import textract
print(textract.process("file.png"), "\n")
print(textract.process("file.png", encoding="ascii"), "\n")
print(textract.process("file.png", encoding="nonexistent encoding"), "\n")
Expected behavior
I would expect the output of the above to differ. I would expect ascii to not be output as a byte string. I would expect nonexistent encoding to error or warn and ignore.
Desktop (please complete the following information):
- OS: Fedora 40
- Textract version: 1.6.5
- Python version: 3.12.4
- Virtual environment: no
Additional context
Haven't tested commandline.
Describe the bug
The
encodingargument seems to be ignored.To Reproduce
Save this image as

file.png:Run:
Expected behavior
I would expect the output of the above to differ. I would expect
asciito not be output as a byte string. I would expectnonexistent encodingto error or warn and ignore.Desktop (please complete the following information):
Additional context
Haven't tested commandline.