#!/bin/sh #---------------------------------------------------------------------------- # /var/spool/hylafax/mimeconverters/image/bmp - bmp2ps converter # # Creation: 2011-17-23 hb # Last Update: $Id$ # # Copyright (c) 2007-@@YEAR@@ Holger Bruenjes, holgerbruenjes(at)gmx(dot)net # # Mime type: image/bmp # Comment: Converts BMP attachments to PS # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version.. #---------------------------------------------------------------------------- mime_path=/var/spool/hylafax/mimeconverters if [ ${#} -gt 0 ] then if [ -f /usr/bin/bmptopnm ] then /usr/bin/bmptopnm ${1} | /usr/bin/pnmtops -noturn -scale=0.8 2>/dev/null | /usr/bin/gs -q -dNOPAUSE -dBATCH \ -sDEVICE=ps2write -sPAPERSIZE=a4 -sOutputFile=- - else # error ${mime_path}/no-converter-mail "image/bmp" "/usr/bin/bmptopnm" fi else # show usage echo "Usage: ${0} filename" fi