Welcome Guest!
Please login
If you do not have an account yet on The Web Squeeze forums, please Register! It’s FREE and there are many benefits:
- Receive Fast Advice
- Learn Programming Languages
- Get Professional Website Reviews
- Quick Troubleshooting Assistance
|
|
Cropping Images With Jscropper
This is a discussion on Cropping Images With Jscropper, within the PHP section. This forum and the thread "Cropping Images With Jscropper" are both part of the Programming Your Website category.
![]() ![]() |
Apr 11 2008, 10:57 AM
Post
#1
|
|
![]() Squeezing ![]() ![]() ![]() Group: Members Posts: 70 Joined: 14-February 08 From: Las Vegas, NV Member No.: 122 |
Hey guys. This isn't so much a specific PHP question, but rather a question as to how to go about something. I would like to use a javascript cropping tool called jscropper (created by David Spurr - pretty nice, check it out here). This tool does not have any way of saving the images, however, just previewing them. So I'm gonna give it a shot, but I'm not too familiar with image editing in PHP. The only way I can think of how to do it right now is to use GDLibrary to crop the image based on the coordinates the javscript provides. I'm by no means familiar with GDLibrary, but I'm sure I can figure that part out with a bit of research. My question is, is this the best way to go about it?
This post has been edited by paintingtheweb: Apr 11 2008, 11:00 AM -------------------- |
|
|
Apr 11 2008, 11:04 AM
Post
#2
|
|
![]() Squeeze Machine ![]() ![]() ![]() ![]() ![]() Group: Administrators Posts: 643 Joined: 13-February 08 From: Catching the squeezed drips downunder. Member No.: 13 |
Well, it will be server side regardless so yes I would say PHP would be the way to go about it.
It would simply be a matter of taking the JS coordinates and sending them as a POST request with the image, then use the GD tools to crop accordingly. What are you planning on using it for? I'm just trying to think of a time where I might use such a method -- I guess for avatars and the like it would be good. -------------------- |
|
|
Apr 11 2008, 11:12 AM
Post
#3
|
|
![]() Squeezing ![]() ![]() ![]() Group: Members Posts: 70 Joined: 14-February 08 From: Las Vegas, NV Member No.: 122 |
Well, it will be server side regardless so yes I would say PHP would be the way to go about it. It would simply be a matter of taking the JS coordinates and sending them as a POST request with the image, then use the GD tools to crop accordingly. What are you planning on using it for? I'm just trying to think of a time where I might use such a method -- I guess for avatars and the like it would be good. I'm using it for a blog/news/editorial admin. One of the great things about the cropper tool is that you can set ratios so the layouts will always remain the same. This way people can upload any image they want without having to through an image editing program to crop it to the right size. They don't even have to know what the right size is, just use the tool to do all that for them. Make sense? -------------------- |
|
|
If you found The Web Squeeze to be helpful, please donate so we can keep this site FREE, FRESH, and fortified with Web Design & Development info!
![]() ![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
10 | Popje | 341 | 4th April 2008 - 10:07 PM Last post by: Popje |
|||
![]() |
6 | LivingDeadBeat | 240 | 20th March 2008 - 11:15 AM Last post by: JustinStudios |
|||
![]() |
2 | JustinStudios | 159 | 20th March 2008 - 05:02 PM Last post by: JustinStudios |
|||
![]() |
11 | jamesicus | 348 | 12th April 2008 - 01:48 PM Last post by: jamesicus |
|||
![]() |
5 | rewake | 197 | 8th April 2008 - 03:01 PM Last post by: Rakuli |
|||






Apr 11 2008, 10:57 AM









