Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/397'
Browse files Browse the repository at this point in the history
* origin/pr/397:
  Replace ImageMagick with GraphicsMagick
  • Loading branch information
marmarek committed Dec 18, 2022
2 parents e248fae + a1f4ebf commit d2aba56
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion archlinux/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ package_qubes-vm-core() {
}
release=${BASH_REMATCH[1]}.${BASH_REMATCH[2]}
depends=(qubes-vm-utils python python-xdg ntp iproute2
gnome-packagekit imagemagick fakeroot notification-daemon dconf
gnome-packagekit graphicsmagick fakeroot notification-daemon dconf
zenity qubes-libvchan qubes-db-vm haveged python-gobject
python-dbus xdg-utils notification-daemon gawk sed procps-ng librsvg
socat pacman-contrib parted
Expand Down
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Depends:
dconf-cli,
dmsetup,
gawk,
imagemagick,
graphicsmagick,
init-system-helpers,
initscripts | sysvinit-utils,
librsvg2-bin,
Expand Down
2 changes: 1 addition & 1 deletion debian/qubes-core-agent.links
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## MIME override stuff
/usr/share/GConf /usr/share/qubes/xdg-override/GConf
/usr/share/ImageMagick-6 /usr/share/qubes/xdg-override/ImageMagick-6
/usr/share/GraphicsMagick-1.4 /usr/share/qubes/xdg-override/GraphicsMagick-1.4
/usr/share/X11 /usr/share/qubes/xdg-override/X11
/usr/share/aclocal /usr/share/qubes/xdg-override/aclocal
/usr/share/alsa /usr/share/qubes/xdg-override/alsa
Expand Down
2 changes: 1 addition & 1 deletion misc/data-dirs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GConf
ImageMagick-6
GraphicsMagick-1.4
X11
aclocal
alsa
Expand Down
8 changes: 4 additions & 4 deletions qubes-rpc/qubes.GetImageRGBA
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ elif ! [ -r "${filename}" ]; then
exit 1
fi

s="$(identify -format '%w %h %m' "$filename")"
s="$(gm identify -format '%w %h %m' "$filename")"
w="$(echo "$s"|cut -d " " -f 1)"
h="$(echo "$s"|cut -d " " -f 2)"
m="$(echo "$s"|cut -d " " -f 3)"
Expand All @@ -31,16 +31,16 @@ if [ "$m" = SVG ]; then
# downscale the image if necessary
if [ -n "$forcemaxsize" ] && \
{ [ "$w" -gt "$forcemaxsize" ] || [ "$h" -gt "$forcemaxsize" ]; }; then
convert "$tmpfile2" -scale "${forcemaxsize}x${forcemaxsize}" "$tmpfile2"
gm convert "$tmpfile2" -scale "${forcemaxsize}x${forcemaxsize}" "$tmpfile2"
# read the size again, because icon may not be a square
s="$(identify -format '%w %h' "$tmpfile2")"
s="$(gm identify -format '%w %h' "$tmpfile2")"
w="$(echo "$s"|cut -d " " -f 1)"
h="$(echo "$s"|cut -d " " -f 2)"
fi
filename="$tmpfile2"
fi
echo "$w $h"
convert -depth 8 -size "${w}x${h}" "$filename" rgba:-
gm convert -depth 8 -size "${w}x${h}" "$filename" rgba:-

if [ -n "${tmpfile}" ]; then
rm -f "${tmpfile}"
Expand Down
2 changes: 1 addition & 1 deletion rpm_spec/core-agent.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ Requires: python%{python3_pkgversion}-daemon
Requires: python%{python3_pkgversion}-qubesdb
# for qubes.ShowInTerminal RPC service
Requires: socat
Requires: ImageMagick
Requires: GraphicsMagick
Requires: librsvg2-tools
Requires: zenity
Requires: dconf
Expand Down

0 comments on commit d2aba56

Please sign in to comment.