Blame Scripts/Functions/Render/render_mogrifyPngToComment.sh

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