I am using php imagemagick to generate thumbnail image.
- If i give bestfit true and size is 50×50 it generating 36×50 size image(good quality)
- if i give bestfit false and size is 50×50 it generating 50×50 size image(bad quality)
I need a solution that whatever the image size(minimum i will upload 200X200) i give
it need to give 50×50 with good quality and techniques there in ImageMAgick ??
Take a look at PHP Thumb (MIT license).
It supports Adaptive Resizing.
What it does is resize the image to get as close as possible to the desired dimensions, then crops the image down to the proper size from the center.
PHP Thumb Github WIKI