Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

Resize/Compress Images

Thread view: 
Barkster - 28 Mar 2006 23:09 GMT
Are there any resources in the form of tutorials or anything that show
how to do client side image resizing before uploading.  I'm using
thinimage and works great but I'm just interested in seeing how it is
done.  I can't find anything on it.  I know how to resize,compress
after uploading in php but would like to see how build my own small
java app to do it.  Thanks
Rhino - 29 Mar 2006 01:04 GMT
> Are there any resources in the form of tutorials or anything that show
> how to do client side image resizing before uploading.  I'm using
> thinimage and works great but I'm just interested in seeing how it is
> done.  I can't find anything on it.  I know how to resize,compress
> after uploading in php but would like to see how build my own small
> java app to do it.  Thanks

Have you looked at the Java Image I/O classes?

--
Rhino
M. Fernandez - 29 Mar 2006 01:31 GMT
> Are there any resources in the form of tutorials or anything that show
> how to do client side image resizing before uploading.  I'm using
> thinimage and works great but I'm just interested in seeing how it is
> done.  I can't find anything on it.  I know how to resize,compress
> after uploading in php but would like to see how build my own small
> java app to do it.  Thanks

Check on the Image class for the method

getScaledInstance(int width, int height, int hints)

There are some examples in the tutorial of Java2D by Sun.

good luck

Marcelo
Barkster - 29 Mar 2006 02:35 GMT
Thanks, I'll take a look into it.
Barkster - 29 Mar 2006 03:04 GMT
Are there any programs for creating java apps?
M. Fernandez - 29 Mar 2006 08:38 GMT
> Are there any programs for creating java apps?

check for eclipse, I use this one and it is just great for my tasks.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.