Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 30688 invoked from network); 6 Jan 2006 22:52:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Jan 2006 22:52:12 -0000 Received: (qmail 18380 invoked by uid 500); 6 Jan 2006 22:52:11 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 18342 invoked by uid 500); 6 Jan 2006 22:52:11 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 18329 invoked by uid 99); 6 Jan 2006 22:52:10 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jan 2006 14:52:10 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [65.77.211.84] (HELO www2.kc.aoindustries.com) (65.77.211.84) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jan 2006 14:52:10 -0800 Received: from fo2.kc.aoindustries.com (www2.kc.aoindustries.com [65.77.211.84]) by www2.kc.aoindustries.com (8.13.1/8.13.1) with ESMTP id k06MpmvL017589 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 6 Jan 2006 16:51:48 -0600 Received: from localhost (localhost [[UNIX: localhost]]) by fo2.kc.aoindustries.com (8.13.1/8.13.1/Submit) id k06Mplro017503 for dev@forrest.apache.org; Fri, 6 Jan 2006 16:51:47 -0600 X-Authentication-Warning: fo2.kc.aoindustries.com: indexgeo set sender to crossley@apache.org using -f Date: Sat, 7 Jan 2006 09:51:39 +1100 From: David Crossley To: dev@forrest.apache.org Subject: Re: photogallery plugin thoughts Message-ID: <20060106225139.GC18103@igg.indexgeo.com.au> References: <499888440601060506o3a6587b2u2e0b967bcdd8e79c@mail.gmail.com> <43BE6F02.4000300@Sun.COM> <43BE9226.1040209@greenjaguar.com> <499888440601060803l167304c6y8f4a190471bb2bc2@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <499888440601060803l167304c6y8f4a190471bb2bc2@mail.gmail.com> User-Agent: Mutt/1.4i X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Tim Williams wrote: > Helena Edelson wrote: > > > > Just wondering since Java was mentioned, will you be coding this in xml for Forrest or do you need something in Java for Cocoon? > > something using JPEGCodec, JPEGImageEncoder, MediaTracker, Graphics2D, Resize, etc? > > > > My experience is that uploading the full images and using software/code to generate the thumbnail on the server is memory intensive, although I am not familiar with the readers mentioned by Tim. I know of a dll that resizes on the server on upload but who runs windoz servers anyway. Helena, Cocoon already has various compoments for handling images. See some basic demos here ... http://cocoon.zones.apache.org/demos/release/samples/imagereader/ Tim, there is a patch for a new "imageop" block sitting in Cocoon Jira which might be of interest. http://issues.apache.org/jira/browse/COCOON-1301 -David > Hi Helena, > Yeah, I was talking about extending the ImageReader, which already > handles the resizing, to just write the newly resized image to disk. > I want this because of the memory intensiveness you've mentioned. It > turns it into essentially a one-time (hopefully non-cached) cost, then > subsequent requests are read straight from disk instead of resizing > yet again. I think this is a reasonable medium between pre-generating > everything and dynamically generating everything. > --tim