Comments (2)
Once again, thank you for your suggestion.
I'm trying to think of an exact use case for this function.
Perhaps, passing a pre-tranformed `Graphics2D` object to which the thumbnail
should be drawn on?
Internally, the smallest unit used for processing is a `BufferedImage` object,
and any drawing is done by first obtaining an `Graphics2D` object from the
`BufferedImage` rather than passing around `Graphics` objects. (Reworking the
internals to pass around `Graphics` objects would be a very large endeavor
which I feel doesn't have a good return on investment.)
Therefore, a hypothetical `Builder.drawTo(Graphics g)` method would just be a
method which internally draws the `BufferedImage` onto the given `Graphics`
object.
If that's all that's needed, it shouldn't be too difficult to add to the
`Builder` class, but I feel that's something that could be done just as simply
outside of the Thumbnailator API:
Graphics g = getGraphicsFromSomewhere();
BufferedImage img =
Thumbnails.of("path/to/image")
.size(100, 100)
.asBufferedImage();
g.drawImage(img, 0, 0, null);
Original comment by [email protected]
on 26 Nov 2011 at 8:09
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from thumbnailator.
This issue has been open for more than 6 months without much interest (only a
single star has been given), and I find it difficult to find an use case for
this addition, so I'll be closing this issue without additional action.
Original comment by [email protected]
on 9 Jun 2012 at 6:40
- Changed state: WontFix
from thumbnailator.
Related Issues (20)
- Jigsaw modules support HOT 5
- No suitable ImageReader found for source data(jpeg Picture format) HOT 2
- How to ensure the GIF dynamic effect after compression HOT 1
- Do you have plans to support WebP, AVIF? HOT 1
- Thumbnail not properly generating from PNG images HOT 2
- Image color loss during conversion HOT 3
- Define an Automatic-Module-Name HOT 1
- the image format webp is not support HOT 5
- No suitable ImageReader found for source data errors HOT 1
- After resize the image is rotated HOT 3
- 300dpi tiff image changed to 96pi jpg but pixel does not chage HOT 1
- Incorrect cropping when specifying sourceRegion and an image that has exif orientation HOT 2
- Multi-threaded processing of images with large pixel width and height leads to memory OutOfMemoryError
- the .pict file is not supported HOT 1
- javax.imageio.IIOException: Invalid JPEG file structure: two SOF markers HOT 1
- Add crop method usage to examples HOT 2
- How to make the image width fixed when the image is scaled HOT 1
- Does the thumbnailator support generating thumbnails for png images? HOT 1
- Conversion error caused by image reading failure
- Native image service unable to compress image
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.