Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

image resizing

Status
Not open for further replies.

akgta

Programmer
Jul 18, 2007
42
CA
i want the end user to open an image, resize that image (crop also if possible) and then save that image.

is it possible as a combination javascript and php?

thanks in advance
 
Yes - yuo'd need two things:

1. A PHP graphics library that can accept an image and crop data, and perform the actual crop, and

2. A JS library to let the user drag some sort of bounding rectangle over the image, and submit this data back to the PHP.

WRT 1, you'd need to ask in the PHP forum.

WRT 2, you'd either need to write one (not very hard these days, especially with tools such as Prototype & Scriptaculous), or find one that already exists.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top