Skip to content

Commit 5929cfa

Browse files
committed
Disable PIL's large image size warning (character sprite A1T1 has exceeded the default threshold)
1 parent 8e179b1 commit 5929cfa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/preppipe/assets/assetmanager.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import collections
2828
import yaml
2929
import shutil
30+
import PIL.Image
3031
import PIL.ImageFont
3132
from ..language import *
3233
from ..exceptions import *
@@ -37,6 +38,8 @@
3738
from ..util.nameconvert import *
3839
from .. import __version__
3940

41+
PIL.Image.MAX_IMAGE_PIXELS = None # 取消对大图的警告;现在有的立绘素材已经比默认值大了
42+
4043
@dataclasses.dataclass
4144
class AssetManifestObject:
4245
program_version : str

0 commit comments

Comments
 (0)