mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-20 12:14:46 +03:00
Call init() in _getencoder()
This commit is contained in:
parent
dd030343b8
commit
74dbebfd1a
|
@ -403,6 +403,9 @@ def _getdecoder(mode, decoder_name, args, extra=()):
|
||||||
elif not isinstance(args, tuple):
|
elif not isinstance(args, tuple):
|
||||||
args = (args,)
|
args = (args,)
|
||||||
|
|
||||||
|
if _initialized < 2:
|
||||||
|
init()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
decoder = DECODERS[decoder_name]
|
decoder = DECODERS[decoder_name]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user