[eluser]d1a8lo24[/eluser]
When it comes to image manipulation just a simple upload and re-size can become a large block of code.
In one of my apps i have over 50 lines of code so i can upload, optimize(re-size, crop, quality), store in a database and save it in its own folder.
That's just to get the image uploaded, to manipulate the image over 100 lines of code and more than 6 functions this is to focus, rotate, re-crop, re-size, watermark, update the database with all this parameter and finally output to the browser.
But writing this much code helps minimize different functions kind of like a library or model you write a lot of code so you can then use small pieces to manipulate data/files/images.
In this case your benefit is that the image is uploaded and re-size and all a user had to do is click upload.