Erster Commit: nativer Linux-Port aus macOS-Bytecode
Läuft die Voice Acoustic VA-Remotecontrol (AllDSP AllControl) nativ unter Linux auf echtem wxGTK 3.0 — ohne Wine und ohne dekompilierten App-Code. Ausgeführt wird das unveränderte Python-2.7-Bytecode aus dem macOS-.app; C-Extensions (wxGTK/numpy/ scipy/PortAudio) kommen nativ aus Debian stretch. Enthält: va/ (Original-.pyc + pure-Python-Libs + Assets + launch.py mit den drei Linux-Fixes), Dockerfile/run.sh/entrypoint.sh, reference/ (dekompilierter Quellcode zum Debuggen) und README/STATUS. img.cache (378 MB, regenerierbar) ist per .gitignore ausgeschlossen. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"Test jpeg image embedding"
|
||||
|
||||
# Note: img_cmyk.jpg has no color profile, PDF rendering may vary
|
||||
|
||||
#PyFPDF-cover-test:format=PDF
|
||||
#PyFPDF-cover-test:fn=jpeg.pdf
|
||||
#PyFPDF-cover-test:hash=eb8db8f336226f6de671a3e515b9cc61
|
||||
#PyFPDF-cover-test:res=img_gray.jpg
|
||||
#PyFPDF-cover-test:res=img_rgb.jpg
|
||||
#PyFPDF-cover-test:res=img_cmyk.jpg
|
||||
|
||||
import common # test utilities
|
||||
from fpdf import FPDF
|
||||
|
||||
import sys
|
||||
|
||||
def dotest(outputname, nostamp):
|
||||
pdf = FPDF()
|
||||
if nostamp:
|
||||
pdf._putinfo = lambda: common.test_putinfo(pdf)
|
||||
|
||||
pdf.add_page()
|
||||
pdf.set_font('Arial', '', 14)
|
||||
|
||||
pdf.text(10, 57, 'DeviceGray')
|
||||
pdf.image("img_gray.jpg", 55, 5)
|
||||
|
||||
pdf.text(10, 157, 'DeviceRGB')
|
||||
pdf.image("img_rgb.jpg", 55, 105)
|
||||
|
||||
pdf.text(10, 257, 'DeviceCMYK')
|
||||
pdf.image("img_cmyk.jpg", 55, 205)
|
||||
|
||||
pdf.output(outputname, 'F')
|
||||
|
||||
if __name__ == "__main__":
|
||||
common.testmain(__file__, dotest)
|
||||
|
||||
Reference in New Issue
Block a user