Skip to content

Book cover generator tool 5578540518674954994 - #55

Open
garfieldtool wants to merge 9 commits into
MetaVPS:mainfrom
garfieldtool:book-cover-generator-tool-5578540518674954994
Open

Book cover generator tool 5578540518674954994#55
garfieldtool wants to merge 9 commits into
MetaVPS:mainfrom
garfieldtool:book-cover-generator-tool-5578540518674954994

Conversation

@garfieldtool

Copy link
Copy Markdown

No description provided.

garfieldtool and others added 9 commits December 14, 2024 07:25
- Core layout engine in cover_engine.py for A3/A4 spread cover generation
- Support spine calculation, custom spine title (vertical/horizontal CJK), and colors
- Support prepress annotations: corner crop marks, fold lines, and 3mm bleed
- Tkinter GUI with interactive controls and real-time spread preview
- High-resolution 300 DPI image (PNG/JPG) and vector PDF export support
- PyInstaller packaging scripts (build_exe.py, build_exe.bat) for Windows EXE
- Unit tests for cover layout engine and PDF export

Co-authored-by: garfieldtool <191646942+garfieldtool@users.noreply.github.com>
…over generator

- Add automatic spine thickness calculation based on page count and paper weight/type (70g/80g offset, art paper, bulky paper)
- Add image brightness, contrast, and custom text overlays (title, subtitle, price/ISBN) to front and back covers
- Update Tkinter GUI with "页数厚度计算器" and "图片修饰与文字" control tabs
- Add unit tests for spine thickness formula, image editing, and text overlay rendering

Co-authored-by: garfieldtool <191646942+garfieldtool@users.noreply.github.com>
…, DPI check, and Presets

- Add Softcover & Hardcover (精装包壳) binding modes with wrap margins (包边 15-20mm) and hinge grooves (沟槽 6-10mm)
- Add back-cover Barcode / ISBN / QR Code generation and overlay
- Add Image Resolution & DPI Quality Checker with alert warnings for low-res input images
- Add Mirrored Bleed Extension (镜像自动出血) to prevent white borders when images lack bleed
- Add Print Shop Presets Manager for saving and loading custom JSON print template configurations
- Update Tkinter GUI with tabbed workflow and real-time preview canvas
- Update unit test suite covering hardcover dimensions, barcode generation, and DPI checks

Co-authored-by: garfieldtool <191646942+garfieldtool@users.noreply.github.com>
…r/book sizes, and custom named templates

- Distinguish Cover Paper Stock (封面用纸/卡纸: 200g-350g铜版纸, 珠光纸, 灰板纸) from Inner Page Stock (内页用纸: 双胶纸, 轻型纸)
- Expand paper sheet sizes (A3, SRA3, A3+, A4, A2, B4, B3, 8开, 4开, 16开) and finished book sizes (A4, A5, B5, 16开正度/大度, 32开正度/大度, 24开, 20开, 正方形)
- Add Custom Named Preset Template Management (save, load, edit, delete user templates in user_presets/)
- Fix DPI calculation parameter units in DPI quality checker label

Co-authored-by: garfieldtool <191646942+garfieldtool@users.noreply.github.com>
- Comprehensive documentation for Softcover vs. Hardcover binding modes and wrap margins
- Document Cover Stock vs. Inner Page paper distinctions
- Document Spine Thickness Calculator formula, Barcode/ISBN generator, DPI checker, and Mirrored Bleed Extension
- Document Custom Named Preset Templates management and PyInstaller packaging build steps

Co-authored-by: garfieldtool <191646942+garfieldtool@users.noreply.github.com>
- Rewrite README.md into a structured, step-by-step User Manual (操作小手册)
- Detail all 12+ paper spread sizes (A3, SRA3, A3+, A2, B4, B3, 8开, 4开, 16开, etc.) and 13+ finished book sizes (A5, A4, B5, 16开, 32开, 24开, 20开, 方形等)
- Detail Cover Paper Stock (200g-350g铜版/哑粉纸, 白卡纸, 特种纸, 灰板纸) vs. Inner Page Stock (双胶纸, 轻型纸, 道林纸)
- Detail Image Editing (Brightness/Contrast), Spine CJK vertical text, Title/Text overlays, Barcode/ISBN generator, Mirrored Bleed Extension, and Custom Presets
- Document PyInstaller packaging and PDF export workflow

Co-authored-by: garfieldtool <191646942+garfieldtool@users.noreply.github.com>
- Add PDF rendering support (PyMuPDF / pypdfium2) with page selection (e.g. Page 1 for Front, Last Page for Back)
- Add PDF page controls to Tkinter GUI and automatic preview refresh
- Fixed vertical text overlay variable name typo (char_imgs)
- Update README.md operator manual with PDF extraction instructions
- Add unit test for PDF page extraction and rendering

Co-authored-by: garfieldtool <191646942+garfieldtool@users.noreply.github.com>
…ator

- Add Asynchronous Background Threading (threading.Thread) to keep Tkinter GUI responsive during preview renders
- Add Debounced UI Input Triggering (150ms timer) for sliders and entry fields
- Add Low-DPI thumbnail downsampling and global image caching (_IMAGE_CACHE) for low RAM usage
- Add proactive Python garbage collection (gc.collect())
- Ensure Python 3.8.10 compatibility for Windows 7 targets
- Update PyInstaller packaging scripts and README.md manual with Win7 packaging guidelines

Co-authored-by: garfieldtool <191646942+garfieldtool@users.noreply.github.com>
@garfieldtool

Copy link
Copy Markdown
Author

update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant