From 3786e267a5e2dc21b5b10721b09c5c4483f50d60 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 19 Feb 2013 08:59:03 +0000 Subject: [PATCH] Modern versions of ImageMagick properly respects the SVG default DPI of 90, which causes unwanted scaling under ImageMagick's default 72. Force a 72 DPI to get pixel perfect matching. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5044 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- media/CMakeLists.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/media/CMakeLists.txt b/media/CMakeLists.txt index 0e70ab62..2e4833a5 100644 --- a/media/CMakeLists.txt +++ b/media/CMakeLists.txt @@ -29,28 +29,32 @@ add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/icons/tigervnc_16.png COMMENT "Generating icons/tigervnc_16.png") add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/icons/tigervnc_22.png - COMMAND ${CONVERT_EXECUTABLE} -size 22x22 xc:none -gravity center -background transparent + COMMAND ${CONVERT_EXECUTABLE} -density 72 + -size 22x22 xc:none -gravity center -background transparent ${CMAKE_CURRENT_SOURCE_DIR}/tigervnc_20.svg -composite ${CMAKE_CURRENT_SOURCE_DIR}/icons/tigervnc_22.png DEPENDS icons ${CMAKE_CURRENT_SOURCE_DIR}/tigervnc_20.svg COMMENT "Generating icons/tigervnc_22.png") add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/icons/tigervnc_24.png - COMMAND ${CONVERT_EXECUTABLE} -size 24x24 xc:none -gravity center -background transparent + COMMAND ${CONVERT_EXECUTABLE} -density 72 + -size 24x24 xc:none -gravity center -background transparent ${CMAKE_CURRENT_SOURCE_DIR}/tigervnc_20.svg -composite ${CMAKE_CURRENT_SOURCE_DIR}/icons/tigervnc_24.png DEPENDS icons ${CMAKE_CURRENT_SOURCE_DIR}/tigervnc_20.svg COMMENT "Generating icons/tigervnc_24.png") add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/icons/tigervnc_32.png - COMMAND ${CONVERT_EXECUTABLE} -size 32x32 xc:none -gravity center -background transparent + COMMAND ${CONVERT_EXECUTABLE} -density 72 + -size 32x32 xc:none -gravity center -background transparent ${CMAKE_CURRENT_SOURCE_DIR}/tigervnc_28.svg -composite ${CMAKE_CURRENT_SOURCE_DIR}/icons/tigervnc_32.png DEPENDS icons ${CMAKE_CURRENT_SOURCE_DIR}/tigervnc_28.svg COMMENT "Generating icons/tigervnc_32.png") add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/icons/tigervnc_48.png - COMMAND ${CONVERT_EXECUTABLE} -size 48x48 xc:none -gravity center -background transparent + COMMAND ${CONVERT_EXECUTABLE} -density 72 + -size 48x48 xc:none -gravity center -background transparent ${CMAKE_CURRENT_SOURCE_DIR}/tigervnc_42.svg -composite ${CMAKE_CURRENT_SOURCE_DIR}/icons/tigervnc_48.png DEPENDS icons ${CMAKE_CURRENT_SOURCE_DIR}/tigervnc_42.svg -- 2.39.5