Thanks Chris and Paul for helping. According to Shindig javadoc, the ImageUtils.getSacledInstance() method was adapted from this article http://today.java.net/pub/a/today/2007/04/03/perils-of-image- getscaledinstance.html and it looks like the code is LGPL? if so could we reference org.jdesktop.swingx.graphics.GraphicsUtilities#createThumbnail to provide dual license like Chris mentioned? Could you please take a look? Thanks much!
/** * Convenience method that returns a scaled instance of the * provided {...@code BufferedImage}. * * NOTE: Adapted from code at * http://today.java.net/pub/a/today/2007/04/03/perils-of-image- getscaledinstance.html * * @param img the original image to be scaled * @param targetWidth the desired width of the scaled instance, * in pixels * @param targetHeight the desired height of the scaled instance, * in pixels * @param hint one of the rendering hints that corresponds to * {...@code RenderingHints.KEY_INTERPOLATION} (e.g. * {...@code RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR}, * {...@code RenderingHints.VALUE_INTERPOLATION_BILINEAR}, * {...@code RenderingHints.VALUE_INTERPOLATION_BICUBIC}) * @param higherQuality if true, this method will use a multi-step * scaling technique that provides higher quality than the usual * one-step technique (only useful in downscaling cases, where * {...@code targetWidth} or {...@code targetHeight} is * smaller than the original dimensions, and generally only when * the {...@code BILINEAR} hint is specified) * @return a scaled version of the original {...@code BufferedImage} */ public static BufferedImage getScaledInstance(BufferedImage img, int targetWidth, int targetHeight, Object hint, boolean higherQuality, int imageType) { ...... } From: Chirag Shah <chiragsh...@gmail.com> To: dev@shindig.apache.org Cc: chrispcampb...@gmail.com Date: 05/27/2010 11:33 AM Subject: Re: Is ImageUtils.getSacledInstance() LGPL license? org.jdesktop.swingx.graphics.GraphicsUtilities#createThumbnail is very similar and is LGPL/BSD. GraphicsUtilities is referenced in the article and can still be found here: https://swingx.dev.java.net/files/documents/2981/149644/swingx-2010_04_18-src.zip Thanks, Chirag On Thu, May 27, 2010 at 7:27 AM, Paul Lindner <plind...@linkedin.com> wrote: > good question.. > > It appears that the original source code in the zip file is not downloadable > anymore. > > I did a search on codesearch.google.com and found the same code included in > a many projects, all without attribution. > > Cc:ing the original author -- Chris can you help us out here? Thanks! > > > On Thu, May 27, 2010 at 7:05 AM, Han Nguyen <hn...@us.ibm.com> wrote: > >> Hello, >> What is the license of the below method adapted from >> >> http://today.java.net/pub/a/today/2007/04/03/perils-of-image-getscaledinstance.html >> ? is it a LGPL license? >> >> org.apache.shindig.gadgets.rewrite.image.ImageUtils.getSacledInstance( >> BufferedImage img, >> int targetWidth, >> int targetHeight, >> Object hint, >> boolean higherQuality, >> int imageType); >> >> Thanks, >> Han >