Forums Register Login

image resizing using java

+Pie Number of slices to send: Send
Hi,
I was looking for a free online tool(api) to capture and resize the images and store them on the hard drive. I cam to know about Jmagick and JAI . I wanted to know if there are others and which one among these would be the best.
Can some body help me with this.
Thanks,
Samanth.
+Pie Number of slices to send: Send
What exactly do you mean with "free online tool", do you mean a free program you can download, or do you mean an online application / web application?

Also, what exactly do you mean by "capturing" images?

Do you just need a tool to resize images, does it need to be in Java, do you want the source code too?

IrfanView is a very popular and useful image viewer which has a lot of other functions too, you can also resize images with it, but it's not a Java program and the source code is not available.

Here are some examples of Java code to resize images (you can do this with classes in the standard Java API, you don't need extra libraries such as Jmagick or JAI):

Load an image, scale it to thumbnail size and save it as JPEG
Mindprod.com - lots of info on working with images in Java
The Java Tutorial - 2D Graphics
[ June 14, 2007: Message edited by: Jesper Young ]
+Pie Number of slices to send: Send
Jesper,
Thanks for your reply, What I exactly want is that I need to grab a picture from the jsp page and I need to resize the image and display it on the webpage again. I wanted to make use of a java class or a package that is already existing for this purpose.
I appreciate your help.

Thanks,
Samanth.
+Pie Number of slices to send: Send
hi,

I am looking for the same.

thanks,
sridhar
+Pie Number of slices to send: Send
Sridhar,
I started using Jmagick, it is good but it has not much of documentation and you might not be able to get a lot of help.

Samanth.
+Pie Number of slices to send: Send
Hi,

Why not read the file from the jsp page and use html attributes to resize it?

<img src=xxx width=XXX height=XXX>
+Pie Number of slices to send: Send
That way you change the way you display the image but not the actual image file size. It looks a little weired too.

Samanth.
+Pie Number of slices to send: Send
Hi, ok so you don't want to use the HTML attributes.

I am writing a commercial application in which I have the ability to
scale images. Here is the method to do this, with this said you will have to write logic to get the scaled height and width. This is easily done since you could get the attributes from the Image.

+Pie Number of slices to send: Send
Hi Thomas,
Thanks a lot.

Samanth.
No matter. Try again. Fail again. Fail better. This time, do it with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2126 times.
Similar Threads
help with images!!!
Calling of a PHP file in JSP
gif to jpg help needed
J2ME Server & Image Size
help for image jmagick
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 22:45:27.