dcx 0.76.0__tar.gz → 0.78.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dcx-0.76.0/src/dcx.egg-info → dcx-0.78.0}/PKG-INFO +1 -1
- {dcx-0.76.0 → dcx-0.78.0}/pyproject.toml +1 -1
- {dcx-0.76.0 → dcx-0.78.0}/src/dcx/__main__.py +41 -37
- {dcx-0.76.0 → dcx-0.78.0/src/dcx.egg-info}/PKG-INFO +1 -1
- {dcx-0.76.0 → dcx-0.78.0}/LICENSE +0 -0
- {dcx-0.76.0 → dcx-0.78.0}/README.md +0 -0
- {dcx-0.76.0 → dcx-0.78.0}/setup.cfg +0 -0
- {dcx-0.76.0 → dcx-0.78.0}/src/dcx/__init__.py +0 -0
- {dcx-0.76.0 → dcx-0.78.0}/src/dcx.egg-info/SOURCES.txt +0 -0
- {dcx-0.76.0 → dcx-0.78.0}/src/dcx.egg-info/dependency_links.txt +0 -0
- {dcx-0.76.0 → dcx-0.78.0}/src/dcx.egg-info/requires.txt +0 -0
- {dcx-0.76.0 → dcx-0.78.0}/src/dcx.egg-info/top_level.txt +0 -0
|
@@ -488,47 +488,51 @@ def process_report(logbasedir_):
|
|
|
488
488
|
pdf.page(the_page).text(61,10, "_"*52 + " [ after ] " + "_"*52)
|
|
489
489
|
|
|
490
490
|
# IN screenshot###################################################################################
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
491
|
+
try:
|
|
492
|
+
png = REPORT['viewports_in'][report_i]
|
|
493
|
+
jpg = "%s.jpg" % png
|
|
494
|
+
png_ = PIL.Image.open(png)
|
|
495
|
+
jpg_ = png_.convert("RGB")
|
|
496
|
+
jpg_.save(jpg)
|
|
497
|
+
jpg_width, jpg_height = jpg_.size
|
|
498
|
+
jpg_landscape = jpg_width >= jpg_height
|
|
499
|
+
image_params = []
|
|
500
|
+
if jpg_landscape:
|
|
501
|
+
# bring to maximal width (DIN A3 Port = 250mm)
|
|
502
|
+
jpg_ratio = float(jpg_width) / float(jpg_height) # 1.XXXX
|
|
503
|
+
calclulated_height = int(float(screenshot_w_default_mm) / jpg_ratio)
|
|
504
|
+
image_params = [25, 185, screenshot_w_default_mm, calclulated_height, jpg]
|
|
505
|
+
else:
|
|
506
|
+
#TODO: porttrait mode
|
|
507
|
+
pass
|
|
508
|
+
pdf.page(the_page).image_manual_mm(*image_params)
|
|
509
|
+
except IndexError:
|
|
506
510
|
pass
|
|
507
|
-
pdf.page(the_page).image_manual_mm(*image_params)
|
|
508
511
|
|
|
509
512
|
# OUT screenshot##################################################################################
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
513
|
+
|
|
514
|
+
# screenshot maybe missing
|
|
515
|
+
|
|
516
|
+
try:
|
|
517
|
+
png = REPORT['viewports_out'][report_i]
|
|
518
|
+
jpg = "%s.jpg" % png
|
|
519
|
+
png_ = PIL.Image.open(png)
|
|
520
|
+
jpg_ = png_.convert("RGB")
|
|
521
|
+
jpg_.save(jpg)
|
|
522
|
+
jpg_width, jpg_height = jpg_.size
|
|
523
|
+
jpg_landscape = jpg_width >= jpg_height
|
|
524
|
+
image_params = []
|
|
525
|
+
if jpg_landscape:
|
|
526
|
+
# bring to maximal width (DIN A3 Port = 250mm)
|
|
527
|
+
jpg_ratio = float(jpg_width) / float(jpg_height) # 1.XXXX
|
|
528
|
+
calclulated_height = int(float(screenshot_w_default_mm) / jpg_ratio)
|
|
529
|
+
image_params = [25, 5, screenshot_w_default_mm, calclulated_height, jpg]
|
|
530
|
+
else:
|
|
531
|
+
#TODO: porttrait mode
|
|
532
|
+
pass
|
|
533
|
+
pdf.page(the_page).image_manual_mm(*image_params)
|
|
534
|
+
except IndexError:
|
|
525
535
|
pass
|
|
526
|
-
pdf.page(the_page).image_manual_mm(*image_params)
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
536
|
|
|
533
537
|
the_page += 1
|
|
534
538
|
i+=1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|