Comments (5)
Thank you for the suggestion (and for the report that Thumbnailator is working
with Java 7!)
As much as it would be neat if chaining `size` and the `toFile` methods,
Thumbnailator's internals have been designed to perform one-to-one processing,
and would probably require quite a bit of effort to efficiently create multiple
thumbnails in a single pass.
Therefore, at the moment, I will not be addressing this issue.
However, this is definitely an interesting idea, so I'll keep this issue open
for others to comment on, or star, in order to gauge interest.
--------------
Hypothetically, the API could be something like this:
Thumbnails.of("path/to/image")
.size(200, 200, "path/to/medium-thumbnail")
.size(100, 100, "path/to/small-thumbnail")
.size(50, 50, "path/to/tiny-thumbnail")
.execute();
or,
Thumbnails.of("path/to/image")
.size(200, 200, "path/to/medium-thumbnail")
.size(100, 100, "path/to/small-thumbnail")
.size(50, 50)
.toFile("path/to/tiny-thumbnail");
Original comment by [email protected]
on 10 Apr 2012 at 1:57
- Changed state: Accepted
- Added labels: Priority-Low, Type-Enhancement
- Removed labels: Priority-Medium, Type-Defect
from thumbnailator.
just came across thumbnailator, and the first thing I thought was, how do I
create multiple thumbnails of a single image?
Sounds like this is in progress, so, given current state of the application,
how does one create multiple thumbnails based on single source image?
Original comment by [email protected]
on 22 Apr 2012 at 4:47
from thumbnailator.
Actually the developer stated that there is no plan to address this. I was
hoping it would help give somewhat of an increase in performance (the
performance is already good but I process a *lot* of files).
I just do them sequentially. What I do is create the biggest thumbnail first,
then create all the subsequent thumbnails from the big thumbnail to avoid
loading the original 5+mb images more than once.
Original comment by [email protected]
on 26 Apr 2012 at 12:19
from thumbnailator.
[deleted comment]
from thumbnailator.
Yes, this will be useful for us. We generate 4 thumbnails for each image.
Thanks [email protected]. I think i will try this approach as well (us
the 1st thumbnail to generate others).
Original comment by [email protected]
on 22 May 2013 at 3:26
from thumbnailator.
Related Issues (20)
- Watermark position incorrect for images re-oriented using EXIF metadata HOT 3
- Move to GitHub (and transition to a Git repository) HOT 5
- Change build from Ant to Maven HOT 4
- Google Project Hosting will drop support for Downloads HOT 3
- Using JAI library? HOT 1
- Thumbnailing problem for a specific JPEG image HOT 1
- OutOfMemoryError: Java heap space / Builder.asBufferedImage HOT 3
- Exception on opening nested folder HOT 5
- Recursively process images in nested directories
- Low quality when resizing a GIF image HOT 2
- Unexpected behaviour when using toFile without an extension matching output format HOT 1
- Support animated GIFs HOT 2
- Javadoc on Thumbnailator class has unclear remark on OutOfMemoryError HOT 3
- Implement a workaround for common OutOfMemoryError cases HOT 15
- java.lang.OutOfMemoryError: Java heap space after adding thumbnailator-feature-oom-workaround-SNAPSHOT.jar file HOT 6
- Please retain debug information in published JAR HOT 3
- forceSize Not maintaining the Aspect Ratio of thr original image HOT 5
- "Image cannot be null" when using `Thumbnails.of(BufferedImage...)` HOT 2
- Use embedded thumbnail from large JPEG images HOT 1
- SVG not supported
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thumbnailator.