-
|
Assume I have an
However, if I use img = fitz.open('img.png', filetype='image/png')it raises a Using |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
|
Weird - did never encounter this before. Interestingly, |
Beta Was this translation helpful? Give feedback.
-
|
Update on handling wrong file extensions with
The behavior for making |
Beta Was this translation helpful? Give feedback.
-
|
Just for your info:
|
Beta Was this translation helpful? Give feedback.
Update on handling wrong file extensions with
fitz.open:filetype.fitz.open("file.data", filetype="png"). This case can only be solved by putting the image in memory.fitz.open("type", memory)andfitz.open(stream=memory, filetype="type").The behavior for making
Pixmapobjects is more relaxed: any filename will be accepted and…