Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meltingice/camanj
Java port of the CamanJS image manipulation library
https://github.com/meltingice/camanj
Last synced: 24 days ago
JSON representation
Java port of the CamanJS image manipulation library
- Host: GitHub
- URL: https://github.com/meltingice/camanj
- Owner: meltingice
- License: bsd-3-clause
- Created: 2011-04-05T08:15:46.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-04-12T02:32:12.000Z (over 13 years ago)
- Last Synced: 2024-04-13T01:54:11.897Z (7 months ago)
- Language: Java
- Homepage: http://meltingice.github.com/CamanJ
- Size: 484 KB
- Stars: 8
- Watchers: 5
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CamanJ
This is an early port of the JS image manipulation library CamanJS to Java. There is still a lot of room for improvement and not all functionality has been ported over yet; however, CamanJ is quickly improving in speed and memory management.
Both suggestions and contributions are welcome!
## Latest Benchmarks
All benchmarks are run against an image of size 3872x2592 using the Example.java program.
### Mac OSX
* Test CPU: Intel Core i7 2.66GHz (dual-core with hyperthreading)
* Render time: ~1880ms### Windows 7
* Test CPU: Intel Core i7 2.75GHz (quad-core with hyperthreading)
* Render time: ~1100ms## Example Usage
// Load CamanJ with our image
CamanJ caman = new CamanJ("images/example1.jpg");
// Apply the brightness and contrast filters
caman.filter("brightness").set(30);
caman.filter("contrast").set(10);
// Apply a preset too if you want
caman.preset("lomography");
// Output the modified image to a new file
caman.save("output/example1.jpg");## Goals
* Similar interface to the original CamanJS library
* Very simple to use for image manipulation
* Extremely fast with the ability to handle very large images
* Android compatibility
* Easily extensible with new funcitonality (e.g. with JARs and ServiceLoader)