1

I am trying to build a PHP library that will resize an image down to a specific size, but am coming across a few issues which I can't quite work out.

I am trying to make it so that it will resize and crop an image in the following way (all scaling is kept to the aspect ratio of the image):

enter image description here

topherg
  • 4,203
  • 4
  • 37
  • 72
  • 1
    Possible duplicate? http://stackoverflow.com/questions/1855996/crop-image-in-php – Jordan Richards Oct 24 '12 at 16:00
  • @JordanRichards possibly, gonna try with that and if it works, sorted :D – topherg Oct 24 '12 at 16:02
  • That's all well and good but, next time before you post a question, make sure that question has not already been asked on Stackoverflow. – Jordan Richards Oct 24 '12 at 16:04
  • @JordanRichards I did have a look, but my focus was on titles around resizing, not just cropping – topherg Oct 24 '12 at 16:05
  • no problem. Now remember what I said, remember to check for the question already on SOF incase you make a duplicate. Anyway, at least you've learnt a lesson. – Jordan Richards Oct 24 '12 at 16:24
  • 1
    Here is how we do it in c#, check my answer to this post: http://stackoverflow.com/questions/18014365/c-sharp-crop-image-from-center/27164374#27164374 – h3n Nov 27 '14 at 06:37

0 Answers0