Jframeye / thumbnailator

Automatically exported from code.google.com/p/thumbnailator
Other
0 stars 0 forks source link

Encountering a problem when using the "Thumbnails.of" method #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have the next code line..

BufferedImage thumbnail = Thumbnails.of(input)
                        .size(200, 200)
                        .rotate(90)
                        .asBufferedImage();

were input is a BufferedImage object but i have an error that say me....

the method of(String[]) that exist into the Thumnails is not aplicable to args 
BufferedImage.

Sorry but i don´t speak english languaje, but i understand more or less 
jejeje. 

Original issue reported on code.google.com by javierav...@gmail.com on 10 Jun 2013 at 10:10

GoogleCodeExporter commented 9 years ago
In your page, you show an example that use this code...

BufferedImage originalImage = ImageIO.read(new File("original.png"));

BufferedImage thumbnail = Thumbnails.of(originalImage)
        .scale(0.25f)
        .asBufferedImage();

But, why have an error with the method  Thumbnails.of()... ??
Can be my library? I tried with other version of the library...

Original comment by javierav...@gmail.com on 10 Jun 2013 at 10:15

GoogleCodeExporter commented 9 years ago
Hi, 

Could you add the actual errors that you're receiving?

A copy-and-paste of the actual error message that you're receiving will be 
useful in trying to find out what is actually happening.

Also, could you please also mention the versions of the following that you're 
using:

  * Thumbnailator
  * Java Delevopment Kit
  * Operating System

Thank you!

Original comment by coobird...@gmail.com on 11 Jun 2013 at 1:38

GoogleCodeExporter commented 9 years ago
I'm closing this issue as there has been no response in over 6 months.

Original comment by coobird...@gmail.com on 21 Dec 2013 at 11:05