Blame Scripts/Functions/Render/Svg/svg_mogrifyPngSharpen.sh

86a1ac
#!/bin/bash
86a1ac
#
86a1ac
# render_mogrifyPngToSharpen.sh -- This function provides
86a1ac
# post-rendition action to sharpen PNG base-rendition output.
86a1ac
#
86a1ac
# Copyright (C) 2009, 2010, 2011 The CentOS Project
86a1ac
#
86a1ac
# This program is free software; you can redistribute it and/or modify
86a1ac
# it under the terms of the GNU General Public License as published by
86a1ac
# the Free Software Foundation; either version 2 of the License, or (at
86a1ac
# your option) any later version.
86a1ac
#
86a1ac
# This program is distributed in the hope that it will be useful, but
86a1ac
# WITHOUT ANY WARRANTY; without even the implied warranty of
86a1ac
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
86a1ac
# General Public License for more details.
86a1ac
#
86a1ac
# You should have received a copy of the GNU General Public License
86a1ac
# along with this program; if not, write to the Free Software
86a1ac
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
86a1ac
#
86a1ac
# ----------------------------------------------------------------------
86a1ac
# $Id$
86a1ac
# ----------------------------------------------------------------------
86a1ac
86a1ac
function render_mogrifyPngToSharpen {
86a1ac
86a1ac
    # Verify PNG base-rendition output.
86a1ac
    cli_checkFiles "${FILE}.png"
86a1ac
86a1ac
    # Execute mogrify action.
86a1ac
    mogrify -sharpen "$FLAG_SHARPEN" ${FILE}.png
86a1ac
86a1ac
}