Skip to content

Commit

Permalink
Replace ImageMagick with GraphicsMagick
Browse files Browse the repository at this point in the history
  • Loading branch information
mati7337 committed Nov 30, 2022
1 parent 93f269e commit 66ae1d6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions qubes/tests/integ/mime.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def prepare_txt(self, filename):

def prepare_pdf(self, filename):
self.prepare_txt("/tmp/source.txt")
cmd = "convert text:/tmp/source.txt {}".format(filename)
cmd = "gm convert text:/tmp/source.txt {}".format(filename)
try:
self.loop.run_until_complete(
self.source_vm.run_for_stdio(cmd))
Expand Down Expand Up @@ -218,25 +218,25 @@ def prepare_pptx(self, filename):

def prepare_png(self, filename):
self.prepare_txt("/tmp/source.txt")
cmd = "convert text:/tmp/source.txt {}".format(filename)
cmd = "gm convert text:/tmp/source.txt {}".format(filename)
try:
self.loop.run_until_complete(
self.source_vm.run_for_stdio(cmd))
except subprocess.CalledProcessError as e:
if e.returncode == 127:
self.skipTest("convert not installed".format(cmd))
self.skipTest("GraphicsMagick not installed".format(cmd))
self.skipTest("Failed to run '{}': {}".format(cmd,
e.stderr.decode()))

def prepare_jpg(self, filename):
self.prepare_txt("/tmp/source.txt")
cmd = "convert text:/tmp/source.txt {}".format(filename)
cmd = "gm convert text:/tmp/source.txt {}".format(filename)
try:
self.loop.run_until_complete(
self.source_vm.run_for_stdio(cmd))
except subprocess.CalledProcessError as e:
if e.returncode == 127:
self.skipTest("convert not installed".format(cmd))
self.skipTest("GraphicsMagick not installed".format(cmd))
self.skipTest("Failed to run '{}': {}".format(cmd,
e.stderr.decode()))

Expand Down
4 changes: 2 additions & 2 deletions qubes/tests/integ/vm_qrexec_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,10 +809,10 @@ async def _test_300_bug_1028_gui_memory_pinning(self):
# choose pnm format, as it doesn't have any useless metadata - easy
# to compare
vm_image, _ = await self.testvm1.run_for_stdio(
'import -window {} rgba:-'.format(vm_winid))
'gm import -window {} rgba:-'.format(vm_winid))

dom0_image = await asyncio.get_event_loop().run_in_executor(None,
subprocess.check_output, ['import', '-window', winid, 'rgba:-'])
subprocess.check_output, ['gm', 'import', '-window', winid, 'rgba:-'])

if vm_image != dom0_image:
self.fail("Dom0 window doesn't match VM window content")
Expand Down
2 changes: 1 addition & 1 deletion rpm_spec/core-dom0.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ AutoReq: no

BuildArch: noarch

BuildRequires: ImageMagick
BuildRequires: GraphicsMagick
BuildRequires: systemd-units
BuildRequires: systemd
BuildRequires: python3-devel
Expand Down

0 comments on commit 66ae1d6

Please sign in to comment.