[eluser]Dam1an[/eluser]
If you want to make a thumbnail, why are you cropping it instead if just scaling?
If you want the middle 140x140 of any size image all you need to do is
- Get the width and height from the database (which you stored when the image was uploaded)
- Do (height - 140) / 2 for the y axis crop
- Do (width - 140) / 2 for the x axis crop
- Do the rest as normal
Or am I totally missing something (having never used the IMC, quite probably)