You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way of getting the file extensions supported by the library?
Usually it's a good practice to expose the supported types or extensions, specially in libraries that handle files, so the consumer can have a way to obtain or check its target extensions based on the ones provided by the library
I'm not very familiar with Pillow's code but this method in Image.py should do the trick:
defregistered_extensions():
""" Returns a dictionary containing all file extensions belonging to registered plugins """ifnotbool(EXTENSION):
init()
returnEXTENSION
Anyway, it's just a suggestion so you shall take it with a grain of salt. Keep up the good work on this fork
The text was updated successfully, but these errors were encountered:
From my understanding, preinit() should not be necessary when immediately followed by init(). It's just a version of init() that aims to be faster by only covering the most popular formats.
Is there any way of getting the file extensions supported by the library?
Usually it's a good practice to expose the supported types or extensions, specially in libraries that handle files, so the consumer can have a way to obtain or check its target extensions based on the ones provided by the library
I'm not very familiar with Pillow's code but this method in Image.py should do the trick:
Anyway, it's just a suggestion so you shall take it with a grain of salt. Keep up the good work on this fork
The text was updated successfully, but these errors were encountered: