From sanselan-dev-return-453-apmail-incubator-sanselan-dev-archive=incubator.apache.org@incubator.apache.org Wed Jul 01 01:45:01 2009 Return-Path: Delivered-To: apmail-incubator-sanselan-dev-archive@minotaur.apache.org Received: (qmail 22819 invoked from network); 1 Jul 2009 01:45:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Jul 2009 01:45:01 -0000 Received: (qmail 26434 invoked by uid 500); 1 Jul 2009 01:45:11 -0000 Delivered-To: apmail-incubator-sanselan-dev-archive@incubator.apache.org Received: (qmail 26388 invoked by uid 500); 1 Jul 2009 01:45:11 -0000 Mailing-List: contact sanselan-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: sanselan-dev@incubator.apache.org Delivered-To: mailing list sanselan-dev@incubator.apache.org Received: (qmail 26378 invoked by uid 99); 1 Jul 2009 01:45:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2009 01:45:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2009 01:45:08 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2C29F234C004 for ; Tue, 30 Jun 2009 18:44:47 -0700 (PDT) Message-ID: <783230168.1246412687167.JavaMail.jira@brutus> Date: Tue, 30 Jun 2009 18:44:47 -0700 (PDT) From: "Charles Matthew Chen (JIRA)" To: sanselan-dev@incubator.apache.org Subject: [jira] Closed: (SANSELAN-24) ArrayIndexOutOfBoundsException with GIF In-Reply-To: <342302553.1246256567570.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SANSELAN-24?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Charles Matthew Chen closed SANSELAN-24. ---------------------------------------- Resolution: Fixed * Fixed a bug in which gifs have incorrect size information in the the Logical Screen Descriptor. This appears to be a bug in how Microsoft Office writes gifs. The Image Descriptor has the correct value. Its a lengthy commit but all of the relevant changes are in the GifImageParser.java class. > ArrayIndexOutOfBoundsException with GIF > --------------------------------------- > > Key: SANSELAN-24 > URL: https://issues.apache.org/jira/browse/SANSELAN-24 > Project: Sanselan > Issue Type: Bug > Reporter: Holger Veltrup > Attachments: test.gif > > > I try to get a BufferedImage: > import java.io.File; > import java.awt.image.BufferedImage; > import org.apache.sanselan.Sanselan; > public class BufferedImageTest { > public static void main(String[] args) throws Exception { > BufferedImage img = Sanselan.getBufferedImage(new File(args[0])); > } > } > This throw a ArrayIndexOutOfBoundsException if I use a special gif (test.gif is attached) > This GIF was created by PowerPoint > Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 96000 > at org.apache.sanselan.formats.gif.GifImageParser.getBufferedImage(GifImageParser.java:795) > at org.apache.sanselan.Sanselan.getBufferedImage(Sanselan.java:1264) > at org.apache.sanselan.Sanselan.getBufferedImage(Sanselan.java:1231) > at BufferedImageTest.main(BufferedImageTest.java:6) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. From sanselan-dev-return-454-apmail-incubator-sanselan-dev-archive=incubator.apache.org@incubator.apache.org Wed Jul 01 01:48:58 2009 Return-Path: Delivered-To: apmail-incubator-sanselan-dev-archive@minotaur.apache.org Received: (qmail 24527 invoked from network); 1 Jul 2009 01:48:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Jul 2009 01:48:58 -0000 Received: (qmail 27421 invoked by uid 500); 1 Jul 2009 01:49:09 -0000 Delivered-To: apmail-incubator-sanselan-dev-archive@incubator.apache.org Received: (qmail 27372 invoked by uid 500); 1 Jul 2009 01:49:09 -0000 Mailing-List: contact sanselan-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: sanselan-dev@incubator.apache.org Delivered-To: mailing list sanselan-dev@incubator.apache.org Received: (qmail 27360 invoked by uid 99); 1 Jul 2009 01:49:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2009 01:49:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2009 01:49:07 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2E5F8234C004 for ; Tue, 30 Jun 2009 18:48:47 -0700 (PDT) Message-ID: <530045294.1246412927175.JavaMail.jira@brutus> Date: Tue, 30 Jun 2009 18:48:47 -0700 (PDT) From: "Charles Matthew Chen (JIRA)" To: sanselan-dev@incubator.apache.org Subject: [jira] Closed: (SANSELAN-23) NullPointerException(Sanselan.java:323) In-Reply-To: <1593053667.1242934965530.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SANSELAN-23?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Charles Matthew Chen closed SANSELAN-23. ---------------------------------------- Resolution: Fixed * Fixed a possible NPE in Sanselan.getICCProfile pointed out by Jon Weygandt. Thank you Jon. > NullPointerException(Sanselan.java:323) > --------------------------------------- > > Key: SANSELAN-23 > URL: https://issues.apache.org/jira/browse/SANSELAN-23 > Project: Sanselan > Issue Type: Bug > Reporter: Jon Weygandt > > Static code analysis reveals that IccProfileParser.getICCProfileInfo can return a null value. > Sanselan.getICCProfile(line 323) uses info, which can be null, without checking for the value. > There is a test case in Shindig, JPEGOptimizerTest.testBadICC4, where the ICC count is too large. On some JVMs (like Sun) you get an OutOfMemory error, on other like IBM null is returned from getICCProfileInfo, resulting in a NPE. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. From sanselan-dev-return-455-apmail-incubator-sanselan-dev-archive=incubator.apache.org@incubator.apache.org Wed Jul 01 12:34:01 2009 Return-Path: Delivered-To: apmail-incubator-sanselan-dev-archive@minotaur.apache.org Received: (qmail 8576 invoked from network); 1 Jul 2009 12:34:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Jul 2009 12:34:01 -0000 Received: (qmail 13606 invoked by uid 500); 1 Jul 2009 12:34:11 -0000 Delivered-To: apmail-incubator-sanselan-dev-archive@incubator.apache.org Received: (qmail 13563 invoked by uid 500); 1 Jul 2009 12:34:11 -0000 Mailing-List: contact sanselan-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: sanselan-dev@incubator.apache.org Delivered-To: mailing list sanselan-dev@incubator.apache.org Received: (qmail 13553 invoked by uid 99); 1 Jul 2009 12:34:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2009 12:34:11 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of avoinemt@gmail.com designates 209.85.222.177 as permitted sender) Received: from [209.85.222.177] (HELO mail-pz0-f177.google.com) (209.85.222.177) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2009 12:34:00 +0000 Received: by pzk7 with SMTP id 7so447489pzk.32 for ; Wed, 01 Jul 2009 05:33:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=87354TN1I+0Xa7o9kBDyWEt1NcfeU6j/eqR9OQqdF1w=; b=h0sA8baV3arJTSOFAExOfzfLMpGVJ7r7+TkFwRgmjJ0j74Qd64hP3pxWe3C4EObchz B/6OXqUwo13VzGOtByhbab3DBHIXvomFBACcQXO+TNTpD10AktEnlHaWb6nktk94CTaJ KuigMH0fbQZprXg7U1X/VMrtrelZL4prYnshA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=Lcue6lG00IDdHTKSJau+OZkKV/vvL0vmpAFdl6CY2uopq7miNQZPp7HSCEHFulz/7G iZtDNu1mwrU+KzDyRsZQC5X+lMEd/TfzN/g3/XWVt/YOGjkABszISM5d+15fQZCOT3tu iy0cx7fG/tuGTxk+aj/fd0kQoSYFWDm7Jc8tw= Received: by 10.142.52.2 with SMTP id z2mr929622wfz.228.1246451619506; Wed, 01 Jul 2009 05:33:39 -0700 (PDT) Received: from ?192.168.0.27? ([222.221.242.181]) by mx.google.com with ESMTPS id 20sm3944308wfi.0.2009.07.01.05.33.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 01 Jul 2009 05:33:38 -0700 (PDT) Message-ID: <4A4B5783.5020502@gmail.com> Date: Wed, 01 Jul 2009 20:33:07 +0800 From: Mathieu Avoine User-Agent: Thunderbird 2.0.0.9 (X11/20071031) MIME-Version: 1.0 To: sanselan-dev@incubator.apache.org Subject: question *slightly* off topic Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I have a question which is not directly related to Sanselan and for that I apologize. However, the question is "imaging related" and I do use Sanselan for reading metadata :) (by the way, would thumbnail creation fit well as a feature in Sanselan?) I am developing a photo manager and I have some issues with the creation of thumbnails. It takes a very long time to generate them. I use Java standard stuff (ImageIO) to do a scaled down version of the image this so: Image scaledImage = originalImage.getScaledInstance(clip.width, clip.height, Image.SCALE_SMOOTH); Then, if the image requires a rotation, I then use Graphics2D.drawImage with an AffineTransform like this: AffineTransform transform = new AffineTransform(); // prepare the rotation transform ... thumbnailImage = new BufferedImage(thumbWidth, thumbHeight, BufferedImage.TYPE_INT_RGB); thumbnailImage.createGraphics().drawImage(scaledImage, transform, null); This takes a LONG time... I run it on a weak computer so it's understandable to some extent but other imaging softwares prepare thumbnails many times faster so I must be doing something wrong here... Any ideas or suggestions? Thanks! Math From sanselan-dev-return-456-apmail-incubator-sanselan-dev-archive=incubator.apache.org@incubator.apache.org Wed Jul 01 12:42:12 2009 Return-Path: Delivered-To: apmail-incubator-sanselan-dev-archive@minotaur.apache.org Received: (qmail 10150 invoked from network); 1 Jul 2009 12:42:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Jul 2009 12:42:12 -0000 Received: (qmail 25970 invoked by uid 500); 1 Jul 2009 12:42:22 -0000 Delivered-To: apmail-incubator-sanselan-dev-archive@incubator.apache.org Received: (qmail 25937 invoked by uid 500); 1 Jul 2009 12:42:22 -0000 Mailing-List: contact sanselan-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: sanselan-dev@incubator.apache.org Delivered-To: mailing list sanselan-dev@incubator.apache.org Received: (qmail 25927 invoked by uid 99); 1 Jul 2009 12:42:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2009 12:42:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.9] (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 01 Jul 2009 12:42:20 +0000 Received: (qmail 10090 invoked from network); 1 Jul 2009 12:41:46 -0000 Received: from localhost (HELO ?127.0.0.1?) (127.0.0.1) by localhost with SMTP; 1 Jul 2009 12:41:46 -0000 Message-ID: <4A4B5993.6050605@apache.org> Date: Wed, 01 Jul 2009 14:41:55 +0200 From: Carsten Ziegeler User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; de; rv:1.8.1.22) Gecko/20090605 Lightning/0.9 Thunderbird/2.0.0.22 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: sanselan-dev@incubator.apache.org, Jakarta Commons Developers List Subject: Sanselan Graduation Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, finally we have passed all votes successfully to graduate Sanselan to commons. Thanks for everyone helping! So, what are the next steps? As mailing list etc is already in place, I guess we just have to move the svn and website and then close the sanselan incubator stuff, right? Regards Carsten -- Carsten Ziegeler cziegeler@apache.org From sanselan-dev-return-457-apmail-incubator-sanselan-dev-archive=incubator.apache.org@incubator.apache.org Thu Jul 02 02:15:01 2009 Return-Path: Delivered-To: apmail-incubator-sanselan-dev-archive@minotaur.apache.org Received: (qmail 4728 invoked from network); 2 Jul 2009 02:15:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Jul 2009 02:15:01 -0000 Received: (qmail 53416 invoked by uid 500); 2 Jul 2009 02:15:12 -0000 Delivered-To: apmail-incubator-sanselan-dev-archive@incubator.apache.org Received: (qmail 53372 invoked by uid 500); 2 Jul 2009 02:15:12 -0000 Mailing-List: contact sanselan-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: sanselan-dev@incubator.apache.org Delivered-To: mailing list sanselan-dev@incubator.apache.org Received: (qmail 53362 invoked by uid 99); 2 Jul 2009 02:15:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jul 2009 02:15:12 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of charlesmchen@gmail.com designates 72.14.220.156 as permitted sender) Received: from [72.14.220.156] (HELO fg-out-1718.google.com) (72.14.220.156) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jul 2009 02:15:02 +0000 Received: by fg-out-1718.google.com with SMTP id l27so1360879fgb.3 for ; Wed, 01 Jul 2009 19:14:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=FWAZCP2iES2aT/DigfOQtfamzXMdbtTnl3NMyXt25R0=; b=daRcRg6JKJySwG8huujkyY3W2omQq460iAskm20qix0vhYUVorJxItWzpyqFmlQq/O 4VzLWtplb1uyDzL9td7dcV9YzWaeOXhS/rr3aBEiBTnNeCYBIpSmuBXQN0U6ONOWiBJz cqCRredaL5SXpU5u5IJGqYOv+ZUNer9iBqreQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=wuYcTLfzT9ozKN3xbIRigtmKJGreQaaQ+1smyGwskBzvEXc73lmXz0w5eVoejdT0lj YpPOQHA1tUPaJJTPmHriJUegrTUBr1cLMMCwcyZjc2crfHHS21w2Ei1NrACcyMKmkHTS PTHsWBmvfRHBdUcRlqpIPZNplHR97xmyPjZYI= MIME-Version: 1.0 Received: by 10.239.172.3 with SMTP id y3mr915917hbe.74.1246500882338; Wed, 01 Jul 2009 19:14:42 -0700 (PDT) In-Reply-To: <4A4B5783.5020502@gmail.com> References: <4A4B5783.5020502@gmail.com> Date: Wed, 1 Jul 2009 22:14:42 -0400 Message-ID: Subject: Re: question *slightly* off topic From: Charles Matthew Chen To: sanselan-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org This is pretty out of scope for this mailing list, but here are some brief thoughts: I know of no simple solution - I expect that the performance of Image IO is going to be insufficient. I suggest you look at JAI (java advanced imaging) and native solutions (JNI, etc.). Your requirements are going to be an important factor in finding a good solution. Do you need these thumbnails written to disk (as image files) or in memory (as, say, BufferedImages)? Are the source images on disk or in memory? How many different file formats do you need to support? Can you depend on native code or JAI? Charles Matthew On Wed, Jul 1, 2009 at 8:33 AM, Mathieu Avoine wrote: > Hi all, > > I have a question which is not directly related to Sanselan and for that = I > apologize. However, the question is "imaging related" and I do use Sansel= an > for reading metadata :) > (by the way, would thumbnail creation fit well as a feature in Sanselan?) > > I am developing a photo manager and I have some issues with the creation = of > thumbnails. It takes a very long time to generate them. I use Java standa= rd > stuff (ImageIO) to do a scaled down version of the image this so: > > =A0 =A0 =A0 =A0 =A0 Image scaledImage =3D > =A0 =A0 =A0 =A0 =A0 =A0 =A0 originalImage.getScaledInstance(clip.width, c= lip.height, > Image.SCALE_SMOOTH); > > Then, if the image requires a rotation, I then use Graphics2D.drawImage w= ith > an AffineTransform like this: > > =A0 =A0 =A0 =A0 =A0 AffineTransform transform =3D new AffineTransform(); > =A0 =A0 =A0 =A0 =A0 // prepare the rotation transform ... > =A0 =A0 =A0 =A0 =A0 thumbnailImage =3D new BufferedImage(thumbWidth, thum= bHeight, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 BufferedImage.TYPE_INT_RGB); > =A0 =A0 =A0 =A0 =A0 thumbnailImage.createGraphics().drawImage(scaledImage= , transform, > null); > > This takes a LONG time... I run it on a weak computer so it's understanda= ble > to some extent but other imaging softwares prepare thumbnails many times > faster so I must be doing something wrong here... > > Any ideas or suggestions? > Thanks! > > Math > > From sanselan-dev-return-458-apmail-incubator-sanselan-dev-archive=incubator.apache.org@incubator.apache.org Thu Jul 02 05:57:24 2009 Return-Path: Delivered-To: apmail-incubator-sanselan-dev-archive@minotaur.apache.org Received: (qmail 89450 invoked from network); 2 Jul 2009 05:57:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Jul 2009 05:57:24 -0000 Received: (qmail 26525 invoked by uid 500); 2 Jul 2009 05:57:35 -0000 Delivered-To: apmail-incubator-sanselan-dev-archive@incubator.apache.org Received: (qmail 26475 invoked by uid 500); 2 Jul 2009 05:57:34 -0000 Mailing-List: contact sanselan-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: sanselan-dev@incubator.apache.org Delivered-To: mailing list sanselan-dev@incubator.apache.org Received: (qmail 26465 invoked by uid 99); 2 Jul 2009 05:57:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jul 2009 05:57:34 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fmeschbe@gmail.com designates 209.85.198.243 as permitted sender) Received: from [209.85.198.243] (HELO rv-out-0708.google.com) (209.85.198.243) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jul 2009 05:57:25 +0000 Received: by rv-out-0708.google.com with SMTP id k29so501672rvb.0 for ; Wed, 01 Jul 2009 22:57:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=BZmedEzcO0bboWQaD9sn1n/5Sa5Tt8s20vTLODloUPQ=; b=AbuERCp8khf/402nggN/pMaFabWrEQJLQ5+GuitkMKNabq4dx3vOl5Qihs7DFJ0IJ6 m7zQsbp1jaF1vBwZOosM51pKFGlBaesPdNt86byqOsfGm0GsbEUPFaWe94tf00d3VksC go66aJbIrwj6BbTHiG03kuQBzLDmNrk0V4PmA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=V1FXghpqMjXMO+KuN/U2ZGfxWSuS8Y2v9FcUuNEy854nJp5YAnB14AXjFfCNq0dUV5 RycbPixntXIkcVg6Uyy3TgOs22bK9gfxMyDfrz4031k8ODLZiaMh6/QAtm6P2OJCwMEK LVV3DOriAAJpvLhOQzGsJ/To2tsWDR4HMCbs8= Received: by 10.141.29.16 with SMTP id g16mr3993171rvj.188.1246514224938; Wed, 01 Jul 2009 22:57:04 -0700 (PDT) Received: from ?10.0.0.60? (bsl-rtr.day.com [62.192.10.254]) by mx.google.com with ESMTPS id k37sm8809500rvb.18.2009.07.01.22.57.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 01 Jul 2009 22:57:03 -0700 (PDT) Message-ID: <4A4C4C2B.8060209@gmail.com> Date: Thu, 02 Jul 2009 07:56:59 +0200 From: Felix Meschberger User-Agent: Thunderbird 2.0.0.22 (X11/20090608) MIME-Version: 1.0 To: sanselan-dev@incubator.apache.org Subject: Re: question *slightly* off topic References: <4A4B5783.5020502@gmail.com> In-Reply-To: <4A4B5783.5020502@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, How about applying a single AffineTransformOp on the BufferedImage loaded with ImageIO ? An AffineTransformOp can combine scaling and rotation based on an AffineTransform. Regards Felix Mathieu Avoine schrieb: > Hi all, > > I have a question which is not directly related to Sanselan and for that > I apologize. However, the question is "imaging related" and I do use > Sanselan for reading metadata :) > (by the way, would thumbnail creation fit well as a feature in Sanselan?) > > I am developing a photo manager and I have some issues with the creation > of thumbnails. It takes a very long time to generate them. I use Java > standard stuff (ImageIO) to do a scaled down version of the image this so: > > Image scaledImage = > originalImage.getScaledInstance(clip.width, clip.height, > Image.SCALE_SMOOTH); > > Then, if the image requires a rotation, I then use Graphics2D.drawImage > with an AffineTransform like this: > > AffineTransform transform = new AffineTransform(); > // prepare the rotation transform ... > thumbnailImage = new BufferedImage(thumbWidth, thumbHeight, > BufferedImage.TYPE_INT_RGB); > thumbnailImage.createGraphics().drawImage(scaledImage, > transform, null); > > This takes a LONG time... I run it on a weak computer so it's > understandable to some extent but other imaging softwares prepare > thumbnails many times faster so I must be doing something wrong here... > > Any ideas or suggestions? > Thanks! > > Math > > From sanselan-dev-return-459-apmail-incubator-sanselan-dev-archive=incubator.apache.org@incubator.apache.org Mon Jul 06 17:33:47 2009 Return-Path: Delivered-To: apmail-incubator-sanselan-dev-archive@minotaur.apache.org Received: (qmail 34349 invoked from network); 6 Jul 2009 17:33:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jul 2009 17:33:47 -0000 Received: (qmail 92906 invoked by uid 500); 6 Jul 2009 17:33:57 -0000 Delivered-To: apmail-incubator-sanselan-dev-archive@incubator.apache.org Received: (qmail 92861 invoked by uid 500); 6 Jul 2009 17:33:57 -0000 Mailing-List: contact sanselan-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: sanselan-dev@incubator.apache.org Delivered-To: mailing list sanselan-dev@incubator.apache.org Received: (qmail 92851 invoked by uid 99); 6 Jul 2009 17:33:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2009 17:33:57 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.9] (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 06 Jul 2009 17:33:54 +0000 Received: (qmail 32642 invoked from network); 6 Jul 2009 17:33:22 -0000 Received: from localhost (HELO Scrat.local) (127.0.0.1) by localhost with SMTP; 6 Jul 2009 17:33:22 -0000 Message-ID: <4A52356B.4070805@apache.org> Date: Mon, 06 Jul 2009 19:33:31 +0200 From: Carsten Ziegeler User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; de; rv:1.8.1.22) Gecko/20090605 Lightning/0.9 Thunderbird/2.0.0.22 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: sanselan-dev@incubator.apache.org Subject: Re: svn commit: r791548 - /incubator/sanselan/ References: <20090706173032.8BAF223888E3@eris.apache.org> In-Reply-To: <20090706173032.8BAF223888E3@eris.apache.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org As we have graduated, the new location for our code is commons/proper. Carsten cziegeler@apache.org wrote: > Author: cziegeler > Date: Mon Jul 6 17:30:32 2009 > New Revision: 791548 > > URL: http://svn.apache.org/viewvc?rev=791548&view=rev > Log: > Move graduated Sanselan to commons > > Removed: > incubator/sanselan/ > > -- Carsten Ziegeler cziegeler@apache.org From sanselan-dev-return-460-apmail-incubator-sanselan-dev-archive=incubator.apache.org@incubator.apache.org Tue Jul 07 20:03:09 2009 Return-Path: Delivered-To: apmail-incubator-sanselan-dev-archive@minotaur.apache.org Received: (qmail 38598 invoked from network); 7 Jul 2009 20:03:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jul 2009 20:03:09 -0000 Received: (qmail 60876 invoked by uid 500); 7 Jul 2009 20:03:19 -0000 Delivered-To: apmail-incubator-sanselan-dev-archive@incubator.apache.org Received: (qmail 60832 invoked by uid 500); 7 Jul 2009 20:03:19 -0000 Mailing-List: contact sanselan-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: sanselan-dev@incubator.apache.org Delivered-To: mailing list sanselan-dev@incubator.apache.org Received: (qmail 60822 invoked by uid 99); 7 Jul 2009 20:03:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2009 20:03:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.9] (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 07 Jul 2009 20:03:16 +0000 Received: (qmail 38474 invoked from network); 7 Jul 2009 20:02:42 -0000 Received: from localhost (HELO Scrat.local) (127.0.0.1) by localhost with SMTP; 7 Jul 2009 20:02:42 -0000 Message-ID: <4A53A9EB.6010205@apache.org> Date: Tue, 07 Jul 2009 22:02:51 +0200 From: Carsten Ziegeler User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; de; rv:1.8.1.22) Gecko/20090605 Lightning/0.9 Thunderbird/2.0.0.22 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: sanselan-dev@incubator.apache.org Subject: Sanselan has graduated - please use Commons Mailing List from now on! Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, we finally graduated - I already moved svn to Apache Commons, final steps are mailing lists and our website. Now, for the mailing lists I just requested to close our lists (they keep being archived of course). So please everyone interested in Sanselan subscribe to dev@commons.apache.org and from now one send mails to that location. Our new website is http://commons.apache.org/sanselan Goodbye incubator :) Regards Carsten -- Carsten Ziegeler cziegeler@apache.org From sanselan-dev-return-461-apmail-incubator-sanselan-dev-archive=incubator.apache.org@incubator.apache.org Thu Jul 09 05:30:52 2009 Return-Path: Delivered-To: apmail-incubator-sanselan-dev-archive@minotaur.apache.org Received: (qmail 54838 invoked from network); 9 Jul 2009 05:30:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Jul 2009 05:30:52 -0000 Received: (qmail 88639 invoked by uid 500); 9 Jul 2009 05:31:02 -0000 Delivered-To: apmail-incubator-sanselan-dev-archive@incubator.apache.org Received: (qmail 88592 invoked by uid 500); 9 Jul 2009 05:31:02 -0000 Mailing-List: contact sanselan-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: sanselan-dev@incubator.apache.org Delivered-To: mailing list sanselan-dev@incubator.apache.org Received: (qmail 88582 invoked by uid 99); 9 Jul 2009 05:31:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2009 05:31:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.9] (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 09 Jul 2009 05:31:00 +0000 Received: (qmail 54618 invoked from network); 9 Jul 2009 05:30:30 -0000 Received: from localhost (HELO Scrat.local) (127.0.0.1) by localhost with SMTP; 9 Jul 2009 05:30:30 -0000 Message-ID: <4A558080.7080908@apache.org> Date: Thu, 09 Jul 2009 07:30:40 +0200 From: Carsten Ziegeler User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; de; rv:1.8.1.22) Gecko/20090605 Lightning/0.9 Thunderbird/2.0.0.22 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: sanselan-dev@incubator.apache.org Subject: Re: Sanselan has graduated - please use Commons Mailing List from now on! References: <4A53A9EB.6010205@apache.org> In-Reply-To: <4A53A9EB.6010205@apache.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org And at Commons we now have a user and a developer list - so please choose the users list for user question and the developer list...well...for developer questions :) Regards Carsten Carsten Ziegeler wrote: > Hi, > > we finally graduated - I already moved svn to Apache Commons, final > steps are mailing lists and our website. > > Now, for the mailing lists I just requested to close our lists (they > keep being archived of course). > > So please everyone interested in Sanselan subscribe to > dev@commons.apache.org and from now one send mails to that location. > > Our new website is http://commons.apache.org/sanselan > > Goodbye incubator :) > > Regards > Carsten -- Carsten Ziegeler cziegeler@apache.org