From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9ea8b15ff49a68b8ac5d908202c8757d@hamnavoe.com> To: 9fans@9fans.net From: Richard Miller <9fans@hamnavoe.com> Date: Wed, 9 Sep 2009 17:08:15 +0100 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] nice quote Topicbox-Message-UUID: 6b9b7848-ead5-11e9-9d60-3106f5b1d025 > anyone written any software recently? Now you mention it, I've recently written a 'resize' command which is a bit like resample(1) for impatient people: term% time resample -x 1600 -y 1200 glenda.pic >/dev/null 36.07u 0.01s 36.21r resample -x 1600 -y 1200 ... term% time resize -b -s 1600 1200 glenda.pic >/dev/null 0.91u 0.02s 1.06r resize -b -s 1600 1200 ... The -b option is for bilinear interpolation. Without that, it goes a bit faster but you get jaggies. term% time resize -s 1600 1200 glenda.pic >/dev/null 0.56u 0.03s 0.71r resize -s 1600 1200 glenda.pic ... It's in /n/sources/contrib/miller/resample.c Warning: only works on 24bpp images at present.