You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Paul Lindner <pl...@linkedin.com> on 2010/05/27 16:27:30 UTC
Re: Is ImageUtils.getSacledInstance() LGPL license?
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
Re: Is ImageUtils.getSacledInstance() LGPL license?
Posted by Chris Campbell <ch...@gmail.com>.
I no longer have that source bundle in hand, but I'm quite sure it was BSD licensed (like all my other demos).
Chris
On May 27, 2010, at 7:27 AM, Paul Lindner 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
>
Re: Is ImageUtils.getSacledInstance() LGPL license?
Posted by Han Nguyen <hn...@us.ibm.com>.
opps, it was Chirag who mentioned GraphicsUtilities
https://swingx.dev.java.net/files/documents/2981/149644/swingx-2010_04_18-src.zip
.
I'm jumping around emails :-). Thanks all for taking a look!
Han
From: Chirag Shah <ch...@gmail.com>
To: dev@shindig.apache.org
Cc: chrispcampbell@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 <pl...@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
>
Re: Is ImageUtils.getSacledInstance() LGPL license?
Posted by Han Nguyen <hn...@us.ibm.com>.
Thank you very much!
From: Paul Lindner <pl...@linkedin.com>
To: dev@shindig.apache.org
Cc: chrispcampbell@gmail.com
Date: 05/29/2010 05:20 AM
Subject: Re: Is ImageUtils.getSacledInstance() LGPL license?
Sent by: lindner@inuus.com
I don't think we need to change anything.
* I see no reference to GPL/LGPL on the original page.
* We have an email from the original author asserting BSD license.
On Thu, May 27, 2010 at 9:43 AM, Han Nguyen <hn...@us.ibm.com> wrote:
> 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 <ch...@gmail.com>
> To: dev@shindig.apache.org
> Cc: chrispcampbell@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 <pl...@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
> >
>
>
Re: Is ImageUtils.getSacledInstance() LGPL license?
Posted by Paul Lindner <pl...@linkedin.com>.
I don't think we need to change anything.
* I see no reference to GPL/LGPL on the original page.
* We have an email from the original author asserting BSD license.
On Thu, May 27, 2010 at 9:43 AM, Han Nguyen <hn...@us.ibm.com> wrote:
> 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 <ch...@gmail.com>
> To: dev@shindig.apache.org
> Cc: chrispcampbell@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 <pl...@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
> >
>
>
Re: Is ImageUtils.getSacledInstance() LGPL license?
Posted by Han Nguyen <hn...@us.ibm.com>.
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 <ch...@gmail.com>
To: dev@shindig.apache.org
Cc: chrispcampbell@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 <pl...@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
>
Re: Is ImageUtils.getSacledInstance() LGPL license?
Posted by Chirag Shah <ch...@gmail.com>.
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 <pl...@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
>