I'm working on a PHP project where I need to resize images before storing them, I'm using this tool "Oberto/php-image-magician" [https://github.com/Oberto/php-image-magician].
The problem is that resizing small images to higher dimensions results in very bad pixelation, so i want to resize images by adding some dummy black area around the image (like facebook) not through the default resize algorithm, is there any useful plugin or naive algorithm for doing this?
example source img: http: //www.mediafire.com/convkey/c81e/1eheaa31t8zg0c7zg.jpg?size_id=3
what "Oberto/php-image-magician" makes: http: //www.mediafire.com/convkey/c361/jsgc56ji2mw7414zg.jpg?size_id=4
what i want: http: //www.mediafire.com/convkey/988e/8dd31zcvdqzjoc7zg.jpg?size_id=4
thanks in advance