Comments (2)
Hi Koen,
TwelveMonkeys ImageIO and Commons Imaging provides similar functionality, in that both provides read/write of images and metadata. They both support many of the same formats, and decodes/encodes to/from java.awt.image.BufferedImage
.
However, there is an important difference: TwelveMonkeys ImageIO provides plugins for a standard API (the javax.imageio
API). It can be extended by and is Interchangeable with other implementations. You can choose the plugins for the formats you need in your application.
While Commons Imaging provides a completely alternative API, and is limited to their own implementation.
TwelveMonkeys ImageIO have no dependencies on Commons Imaging. And there are not other dependencies between them that Iām aware of. It should be possible to use both in the same project, but I'm not sure if it makes sense, as the functionality overlaps, and client code would have to interface with two different APIs.
So to sum up: Should you? No. Would it cause any issue? Probably not, aside from more complicated code. Is it a requirement? Absolutely not. Based on your requirements, I would recommend you choose the one that supports the formats you need and pick the API you prefer to work with (I know what I would choose, but I might be a little biased in this question... š ).
from twelvemonkeys.
Thanks for the answer, it's good to be sure of things.
Looking at their code examples, it does seem one needs to import org.apache.commons.imaging.*
an access their API to work with it.
So, a separate api, as you say.
from twelvemonkeys.
Related Issues (20)
- Unable to modify a JPEGImage10Metadata comment value HOT 17
- JPEG: Preserve metadata when writing CMYK HOT 5
- The OSGi support only exports the ImageReaderSpi services and not the ImageWriterSpi services HOT 1
- BMP: Write support for more ARGB types HOT 1
- Some malformed PSD images never return from `ImageIO.read()` using 3.10.0 HOT 2
- WebP: Images decoded with yellow tint HOT 1
- Possible bug in Half.shortBitsToFloat HOT 5
- Troubleshooting with ImageIO plugin registry issue (NoClassDefFoundErrors) without web.xml file HOT 1
- YCCK JPEG from a PDF with wrong colors HOT 5
- TIFF: Support SAMPLEFORMAT_COMPLEXINT (5) HOT 3
- WebP plugin stops working when other plugins are enabled too HOT 2
- PSD: Get layer kind (type) to metadata HOT 1
- Twelvemonkeys Servlet should support Jakarta HOT 6
- JPEGImageReader read invalid image without throwing exception HOT 4
- PSD: When make PNG from PSD using TwelveMonkeys, it's different from Photoshop. HOT 4
- Change Maven GPG plugin to use Bouncy Castle signer
- Unsupported BitsPerSample for SampleFormat 3/Floating Point (expected 16/32): 64 HOT 4
- PSD: BufferOverflowException if encoder adds garbage to the end of rows
- Dynamic images in WebP format, and even ordinary GIF images, cannot read delays after using this plugin. HOT 2
- Warning system custom messages HOT 3
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 twelvemonkeys.