From owner-freebsd-questions Thu Oct 24 19:42: 1 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CFF1D37B401; Thu, 24 Oct 2002 19:41:59 -0700 (PDT) Received: from cypress.adhesivemedia.com (cypress.adhesivemedia.com [207.202.159.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3552E43E65; Thu, 24 Oct 2002 19:41:59 -0700 (PDT) (envelope-from philip@adhesivemedia.com) Received: from cypress.adhesivemedia.com (localhost [127.0.0.1]) by cypress.adhesivemedia.com (8.12.3/8.12.3) with ESMTP id g9P2fkFk098490; Thu, 24 Oct 2002 19:41:46 -0700 (PDT) (envelope-from philip@adhesivemedia.com) Received: from localhost (philip@localhost) by cypress.adhesivemedia.com (8.12.3/8.12.3/Submit) with ESMTP id g9P2fjN5098487; Thu, 24 Oct 2002 19:41:45 -0700 (PDT) X-Authentication-Warning: cypress.adhesivemedia.com: philip owned process doing -bs Date: Thu, 24 Oct 2002 19:41:45 -0700 (PDT) From: Philip Hallstrom To: Adam Weinberger Cc: Nathan Vidican , Subject: Re: OT: Looking for command-line jpg editor that could be modified In-Reply-To: <20021025004641.GG68583@vectors.cx> Message-ID: <20021024193836.Y98425-100000@cypress.adhesivemedia.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG netpbm can do more than convert formats... jpegtopnm foo.jpeg | pnmscale -width 200 | pnmtojpeg -quality=80 > thumb.jpeg is perfectly valid... It's been a long time (maybe a year ago) since I did the test, but netpbm's output is a lot better and file size is a lot smaller than ImageMagick... worth checking them both out though. -philip On Thu, 24 Oct 2002, Adam Weinberger wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > netpbm is more for converting images to different formats. The > originator is looking for ImageMagick, which is in the ports tree. > Install the port and read the manpage for convert(1) and mogrify(1). > > You're on your own for making the CGI script. Check out www/gallery if > you want something that will autogenerate an entire image gallery > website. Tonight I'm going to commit www/kallery, which has a spiffy KDE > frontend. > > - -Adam > > > >> (10.24.2002 @ 1703 PST): Philip Hallstrom said, in 1.4K: << > > take a look at the netpbm package... you'll probably want to pre-generate > > the thumbnails as it's not super fast (ie, not fast enough to power a > > website, but fast enough)... > > > > -philip > > > > On Thu, 24 Oct 2002, Nathan Vidican wrote: > > > > > I am looking to try and make a CGI application which can take in a single > > > argument (the particular image to open), and return an image after scaling > > > it down to a specific size. All images are the same size, and will all be > > > scaled down proportionally. Here's the scenario: > > > > > > We've got a website, where a lot of pictures are frequently posted from one > > > of about ten digital cameras. Fortunately all pictures are of the same size, > > > but unfortunately that's 2048x1563 pixels and around 2Mb jpg to begin with. > > > We'd like the viewers of the site to be able to selectively download any one > > > of these high-res pictures, but generate thumbnails of each of the images > > > and send them out on the pages. So basically I need a program which can > > > proportionally scale down and return an image (in jpg format). I'd like to > > > find something preferably written in either C/C++ or PERL. Any ideas or > > > suggestions would be greatly appreciated. > >> end of "Re: OT: Looking for command-line jpg editor that could be modified" from Philip Hallstrom << > > > - -- > Adam Weinberger > adam@vectors.cx > adamw@FreeBSD.ORG > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.0 (FreeBSD) > > iD8DBQE9uJRxo8KM2ULHQ/0RAjWRAJ9ZszJzdBccZ+y3/f5qBwHz9uyrKQCgyA4C > gBODGzv5W6//4csZuNNiSgM= > =eWl4 > -----END PGP SIGNATURE----- > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message