0

Possible Duplicate:
Crop image in PHP

How to crop a part of an image when i have the coordinates of the upper left corner and lower right corner? I can't use the imagecopyresampled function cause in only use the upper left corner as a staring point and the end of the rectangle is determined automatically not by the coordinates of the lower right corner . :( Can anyone help? pls

Community
  • 1
  • 1
Johny
  • 163
  • 1
  • 11

2 Answers2

0

http://php.net/manual/ru/function.imagecopyresampled.php

and there's a lot of examples.

Andrej Bestuzhev
  • 674
  • 6
  • 10
-1

First of all here's a tutorial that was recommended to me for a similar problem. If this doesn't help, your solution will be buried away in the GD library somewhere. Here is the API for it. Hope that's of some use to you!

As Andrej correctly pointed out, imagecopyresampled() is probably the one you're looking for.

Kaizen9001
  • 510
  • 1
  • 4
  • 11