bin/diff-pdf-page.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit 139997e4b37d805b9257de2d3a7b17a40e41012d Author: Justin Luth <[email protected]> AuthorDate: Tue Oct 22 18:54:14 2024 -0400 Commit: Miklos Vajna <[email protected]> CommitDate: Fri Oct 25 09:22:25 2024 +0200 diff-pdf-page.py: remove intermediate composite step One convert step can be eliminated, which should help with performance. Change-Id: I860c90fec7f178b456b942d8ad4e4ec5d0412e05 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175467 Reviewed-by: Justin Luth <[email protected]> Tested-by: Jenkins Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175564 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Miklos Vajna <[email protected]> diff --git a/bin/diff-pdf-page.py b/bin/diff-pdf-page.py index 81bf472d95a7..fced5c84da77 100755 --- a/bin/diff-pdf-page.py +++ b/bin/diff-pdf-page.py @@ -36,9 +36,7 @@ def main(): b_png = tempfile.NamedTemporaryFile(suffix=".png") b_pdf = args.b_pdf + "[" + args.page + "]" run([CONVERT_CMD, "-density", args.density, b_pdf, "-colorspace", "RGB", "-transparent", "white", b_png.name]) - composite_png = tempfile.NamedTemporaryFile(suffix=".png") - run([CONVERT_CMD, a_png.name, b_png.name, "-composite", composite_png.name]) - run([CONVERT_CMD, composite_png.name, "-background", "white", "-flatten", args.diff_png]) + run([CONVERT_CMD, a_png.name, b_png.name, "-composite", "-background", "white", "-flatten", args.diff_png]) if __name__ == "__main__": main()
