I wrote this application so I could resize a batch of photos all at once.

The use is very simple. You insert the input image folder and the out put folder. You enter the resizing percentage you wish and press the button.
I have implemented this using my own EasyImage for the picture resizing.
I have used Apache Pivot for the GUI.
And that is it, very easy.
- EasyImage lets you do all the basic image operations – converting, cropping, resizing, rotating, flipping…
- Plus it let’s you do some really cool affects.
- All is done super easily.
- Combining operations can produce some very cool results.
- Open image.
- Save image
- Convert image
- Re-size image
- Crop image
- Convert to black and white image
- Rotate image
- Flip image
- Add color to image
- Create image with multiple instance of the original
- Combining 2 images together
- Emphasize parts of the image
- Affine transform image
Download
JavaDoc
Click here to see full java doc.
Operations
Examples
Combining 2 pictures
Image image = new Image("c:/pics/p1.jpg");
image.combineWithPicture("c:/pics/p2.jpg");
image.saveAs("c:/pics/p1combinedWithp2.jpg");

Emphasizing parts of the image
Image image = new Image("c:/pics/p1.jpg");
image.emphasize(250, 200, 2300, 500);
image.saveAs("c:/pics/p1Emphesized.jpg");

Affine transform + combine
Image image = new Image("c:/pics/p1.jpg");
Image image2 = new Image("c:/pics/p2.jpg");
image.affineTransform(0.5, 0.0);
image2.affineTransform(-0.5, 0.0);
image2.combineWithPicture(image,Color.black);
image2.saveAs("c:/pics/affineTransformAndCombine.jpg");

Add color to image
Image image = new Image("c:/pics/p1.jpg");
image.addColorToImage(Color.red, 5);
image.saveAs("c:/pics/addColorToImage.jpg");

Add to pixel color
Image image = new Image("c:/pics/y2.jpg");
image.addPixelColor(111111);
image.resize(40);
image.crop(100, 0, -1, -1);
image.saveAs("c:/pics/addPixelColor.jpg");
![]()
Image resizing + multiplying with pixel color enhancement
Image image = new Image("c:/pics/p1.jpg");
image.resize(10);
image.multiply(5, 5, 11111);
image.saveAs("c:/pics/multiply+color.jpg");

Combine image with image without background
Image image = new Image("c:/pics/heart.gif");
image.multiply(20, 20);
Image image2 = new Image("c:/pics/p6.jpg");
image2.crop(400, 0, -1, -1);
image2.combineWithPicture(image,3,Color.white);
image2.saveAs("c:/pics/combineWithPictureWithoutBackground.jpg");

Emphasize trick
Image image = new Image("c:/pics/p1.jpg");
int width = image.getWidth();
int height = image.getHeight();
for(int i=0,c=0;i<height;c++,i+=50){
int x = width/2 - i;
int y = height/2 - i;
image.emphasize(x, y, width-1-x, height-1-y,
Color.BLACK, 12 - c/4);
}
image.saveAs("c:/pics/emphesizeTrick.jpg");

From time to time I like to make small projects that are good for nothing. This weekend I have created a small project that I call “HTML image maker”.
Description
- It’s purpose is to take existing images and to generate HTML table where each pixel is replaced by a table cell.
- It is also possible to insert text inside the cells where the color of the cell is at the background of the text or in the foreground.
- If you won’t insert input image than the program will simply create a screen shot image instead.
Used technologies
- The image manipulation is done using java’s ImageIO object.
- The user interface was built using Apache Pivot.
Screen shots
Click to enlarge.
|
|
|
|
|
|
|
Downloads
Download the sources (eclipse project)
Instructions
- No need to install.
- To start the program execute Html image maker.bat.
- Optional – Insert input image path. If you won’t insert input image than the image will be generated from the screen shot.
- Insert an output path for the Html file.
- Optional – You can enter text to be inserted inside the image. Select foreground if you would like to color the text itself instead of the background.
- Press ‘Generate HTML image’.
Warning
- This software consumes a lot of memory. You should use it on not so big images.


Recent Comments
dante on Weekend project: Bluetooth multisender
how i send image to the devices from java using bluecove?????, this is part of may final proyect please give...Karol on Android – Multithreading in a UI environment
Hi All the examples I see so far implement the Runnable object as inner class of the main...faisal on Memory Game – Android Application
Hi, You have done excellent job. Very nice. Though I tried to build it but it did not build. Could you please...Avi on How to use fiddler+firefox to download files from streaming sites.
Try searching "Mpeg layer-3" instead.ashi on How to use fiddler+firefox to download files from streaming sites.
hi, i tried above i downloaded fiddler2 and also the script editor... also pasted the code but but i have problem in step...Rui Pedrosa on Android – Multithreading in a UI environment
A simple but very useful explanation! thanks!Hui Sunray on Using Hibernate Validator to cover your validation needs
I like your examplesSridhar on Weekend project: Bluetooth multisender
Excellent work and it is sending to many bluetooth devicesjetti on Android Development – Preferences
Hi, How can I add Icon/Image to each item in ListPreference? Is it possible to add our own icons...Eric on Android – Multithreading in a UI environment
Thx, helped alot :)