Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • thank you for your answer but your code gives an error "Parse error: syntax error, unexpected '$imageObj'..." Commented Oct 16, 2014 at 11:57
  • 1
    @ktsixit now try with edited code;and dont just copy paste it Please type it. Commented Oct 16, 2014 at 12:01
  • The error is fixed now but the images are not being cropped. f.e if an image's original dimensions is 148x205, getResizedImage(100,100) gives a thumb with dimensions: 72x100. I'd like to get cropped square images. Commented Oct 16, 2014 at 12:22
  • 1
    keepframe(true) will help you Commented Oct 16, 2014 at 13:05