delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/04/28/08:50:13

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: zzapper <david AT tvis DOT co DOT uk>
Subject: Re: Resizing images from CLI
Date: Fri, 28 Apr 2006 12:49:35 +0000 (UTC)
Lines: 37
Message-ID: <Xns97B38CA43A097zzappergmailcom@80.91.229.5>
References: <Xns97B35CFBEFF95zzappergmailcom AT 80 DOT 91 DOT 229 DOT 5> <445206FF DOT 80109 AT ateb DOT com>
User-Agent: Xnews/5.04.25
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Reid Thompson <reid DOT thompson AT ateb DOT com> wrote in news:445206FF.80109
@ateb.com:

> zzapper wrote:
>> From the talk NG I got this info for CLI image manipulation
>>
>> requires ImageMagick installed and in path
>>
>> # from imageMagick
>>
>> convert -sample 80x40 abbeyparkarch.gif s_abbeyparkarch.gif
>> lsimg abbeyparkarch.gif s_abbeyparkarch.gif
>>
>> What I'd like now is to resize an image but preserve it's aspect ratio
>>
>> how do?
>>
>>   
> see the imageMagick homepage
> read the convert man page
> 
http://www.imagemagick.org/script/convert.php

In fact 
convert -sample 80x40 abbeyparkarch.gif s_abbeyparkarch.gif
automatically respects ratio, so only the y dimension is guaranteed

convert -resize 80  abbeyparkarch.gif s_abbeyparkarch.gif
respects ratio width 80

convert -resize x40  abbeyparkarch.gif s_abbeyparkarch.gif
respects ratio height 40



-- 
http://successtheory.com/tips/ Vim, Zsh, MySQL Tips


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019