From arbi.informatik.uni-oldenburg.de!netcom.com!owner-pbmplus Sat Sep 17 03:05:26 1994
Return-Path: <netcom.com!owner-pbmplus@arbi.informatik.uni-oldenburg.de>
Received: by faramir.Informatik.Uni-Oldenburg.DE (Smail3.1.22.1)
        id <m0qloDU-0005Gfa>; Sat, 17 Sep 94 03:05 CES
Received: by arbi.informatik.uni-oldenburg.de (smail3.1.18 + xalias);
        Sat, 17 Sep 94 03:05 CES
Received: by mail.netcom.com (8.6.9/Netcom)
        id UAA20870; Fri, 16 Sep 1994 20:43:31 -0700
Received: from arbi.informatik.uni-oldenburg.de by mail.netcom.com (8.6.9/Netcom)
        id UAA20678; Fri, 16 Sep 1994 20:41:19 -0700
Received: by arbi.informatik.uni-oldenburg.de (smail3.1.18 + xalias);
        Sat, 17 Sep 94 02:45 CES
Received: by faramir.Informatik.Uni-Oldenburg.DE (Smail3.1.22.1)
        id <m0qlnSN-0005GfC>; Sat, 17 Sep 94 02:16 CES
Message-Id: <m0qlnSN-0005GfC@faramir.Informatik.Uni-Oldenburg.DE>
Subject: some useful new options for pnmscale
To: pbmplus@netcom.com (PBMPlus Mailinglist)
Date: Sat, 17 Sep 94 2:16:40 CES
From: Ingo Wilken <Ingo.Wilken@arbi.informatik.uni-oldenburg.de>
X-Mailer: ELM [version 2.3 PL11]
Precedence: bulk
Status: RO

Hello,

this patch adds several new options to pnmscale:

  -minxsize <x>, -minysize <y>, -minxysize <x> <y>:
     as the options without "min", but do not scale if the size of the input
     file is already larger than specified (read: the resulting picture has
     a minimum size of ...)
  -maxxsize <x>, -maxysize <y>, -maxxysize <x> <y>:
     as the options without "max", but do not scale if the size of the input
     file is already smaller than specified (read: the resulting picture has
     a maximum size of ...)
  -size, -maxsize, -minsize:
      synonyms for -xysize/-maxxysize/-minxysize

The main use of this is to be able to scale pictures that are larger than
some maximum size but leave smaller pictures as they are, for example
    ... | pnmscale -maxsize 800 600 | ...
fits a picture into 800x600 (keeping the aspect ratio), but does not enlarge
pictures that are already smaller than 800x600.


Regards,
Ingo
--
Ingo Wilken, CS Student, Univ.of Oldenburg, FRG | You mean I really did all of
wilken@uniol.uucp (..!uunet!unido!uniol!wilken) | dat stuff? Now dat explains
Ingo.Wilken@arbi.informatik.uni-oldenburg.de    | why my head hurts an' why I
wilken@uniol.zer   IRC:Nobody   OL:ingo@faramir | feel so bad!  -Snarf

