diff options
author | Pierre Ossman <ossman@cendio.se> | 2013-02-19 08:59:03 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2013-02-19 08:59:03 +0000 |
commit | 3786e267a5e2dc21b5b10721b09c5c4483f50d60 (patch) | |
tree | 7ee4506cc2438d049bdcb0b2b9036ac3cacee1ef | |
parent | f963a44d276c647b199cc7cebeeceda221bcbe62 (diff) | |
download | tigervnc-3786e267a5e2dc21b5b10721b09c5c4483f50d60.tar.gz tigervnc-3786e267a5e2dc21b5b10721b09c5c4483f50d60.zip |
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
-rw-r--r-- | media/CMakeLists.txt | 12 |
1 files 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 |