Nuitka/Nuitka

Including PIL image formats causes unnecessary bloat (was: Onefile size bloat)

Open

#3,894 建立於 2026年5月23日

在 GitHub 查看
 (3 留言) (0 反應) (1 負責人)Python (10,351 star) (565 fork)batch import
enhancementhelp wanted

描述

🐛 Bug Description

Onefile size bloat in ver 4.1.1 - onefile exe size grew by 2MB

🖥️ Environment

1. Nuitka Version, Python Version, OS, and Platform

4.1.1 Commercial: None Python: 3.13.12 (tags/v3.13.12:1cbe481, Feb 3 2026, 18:22:25) [MSC v.1944 64 bit (AMD64)] Flavor: CPython Official GIL: yes Executable: C:\Program Files\Python313\python.exe OS: Windows Arch: x86_64 WindowsRelease: 10 Version C compiler: \AppData\Local\Nuitka\Nuitka\Cache\DOWNLO1\pip\private-6533d32b\Lib\site-packages\ziglang\zig.exe (zig.exe 0.16.0).

2. How Nuitka and Python were Installed

pip

3. Relevant PyPI Packages and Versions

N/A

🛠️ To Reproduce

1. "Hello World" Test (if applicable)

N/A No difference in simple hello-world onefile size...

3. Nuitka Command Line Options

call "C:\Program Files (x86)\Microsoft Visual Studio\msvc\setup_x64.bat"

python -m nuitka --onefile --msvc=latest --python-flag=-O --remove-output --windows-console-mode=disable --noinclude-dlls="*libcrypto-3.dll" --nofollow-import-to=numpy --nofollow-import-to=cryptography --onefile-tempdir-spec="{TEMP}/_testapp" --windows-icon-from-ico="testapp.ico" --output-filename="testapp" %1

📉 Expected Behavior

Nuitka ver 4.0.5 produced a 2MB smaller onefile exe. I would expect about the same size in 4.1.1, as no project changes were made.

📄 Actual Behavior & Output

File size grew by 2MB

↩️ Regression (if applicable)

Ver 4.0.5 was 2MB smaller


🚫 Unwelcome Practices (Please Read)

  • No Screenshots of Text: Do not post screenshots of code, errors, or console output unless absolutely necessary (e.g., a GUI display problem). Provide text directly so it's searchable and copyable. Reports without proper text are likely to be rejected.
  • Do Not Close Issues Yourself: We will close issues once they are resolved in a stable release. If you find your issue is invalid, you may close it, and we will tag it as invalid or even delete it later.
  • Do Not Report Against factory Branch: Unless specifically asked, avoid reporting issues found on the factory branch as it's often unstable. Discuss on Discord first.

💼 Commercial Support

Consider Nuitka commercial support for priority assistance, which also helps sustain Nuitka's development. This allows for direct code sharing or paid time for issue resolution in your environment.


PLEASE REMOVE ALL TEMPLATE TEXT (INCLUDING THIS LINE) BEFORE SUBMITTING YOUR ISSUE.

貢獻者指南