X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: zzapper Subject: Re: Resizing images from CLI Date: Fri, 28 Apr 2006 12:49:35 +0000 (UTC) Lines: 37 Message-ID: References: <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: List-Archive: List-Post: List-Help: , 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 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/