I have an image to upload . I set the size of it. But any client can uploading any type and any size photo. my request is that, when a client send an image, then automatically compressing or resizing the sets the image size.
i sets the image size is 190X200. this is fixed size. but the client can uploading any size of file. that receiving after, without any defect of the picture, and adjusting to the 190X200 size.
We used java jdk image toolkit to compress the images(thumbnails). But make sure if you are working with web applications. If you do more compression or decompression of large images , lot of heap is used to do these kind of operations. And at one point you will be having OutOfMemory Errors.