wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes How can I split an Image ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How can I split an Image ?" Watch "How can I split an Image ?" New topic
Author

How can I split an Image ?

Shreya Menon
Ranch Hand

Joined: Jul 31, 2001
Posts: 285
Hi all,
I have an image in .gif format. How can I spli that image into 2 ? Any free downloadables for doing that ???
Thanks,
Maya
Connie Boyd
Ranch Hand

Joined: Feb 22, 2001
Posts: 73
If you have Microsoft PhotoEditor, you should just be able to crop your image and save each piece as its own image. You could probably also do it in Paint, but I don't think it has rulers, so you might not get an exact slice.
Shreya Menon
Ranch Hand

Joined: Jul 31, 2001
Posts: 285
Hi Connie,
Thanks for the response.
I do have PhotoEditor installed, I am trying to open my image with the photoeditor.. Some how it is taking some time..
Maya
Shreya Menon
Ranch Hand

Joined: Jul 31, 2001
Posts: 285
Connie,
I am trying to crop the image.
But it is giving an alert box showing that
Resulting image must be atleast 1x1 pixels.
How can I do the crop ?
Thanks,
Maya
Connie Boyd
Ranch Hand

Joined: Feb 22, 2001
Posts: 73
Hi Maya ... here goes ...
1. Open your image. (Say, Image1.gif)
2. View --> Rulers
3. Assume my image is 2 inches tall and 5 inches wide.
4. I want two images, 2 inches tall and 2.5 inches wide.
5. Go to Image-->Crop
6. For Crop Margins enter, Left: 0 , Top 0, Right, 2.5, Bottom 2.
7. Save image as Image1_slice1.gif
8. Open original image again.
9. Go to Image-->Crop
10. This time enter, Left 2.5, Top 0, Right 5, Bottom 2.
11. Save this image as Image1_slice2.gif
PhotoEditor is not the most intuitive program in the world. If you had photoshop, you could just draw a select box around the image and crop. Hope this helps!
Shreya Menon
Ranch Hand

Joined: Jul 31, 2001
Posts: 285
Connie,
Thanks for the well formatted help. Appreciated.
But my image is behaving strangely.
I think I have to try with Photoshop now.
Thanks ,
Maya
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How can I split an Image ?
 
Similar Threads
inserting image
Create Image object
Image in JFrame ???
awt
BASE64