A lot of our product images do not have the ratio 4:3. Many have other ratios for instance 6:2. Examples: 275x577 or 486x576 or 455x123.
We need a tiny php script that changes all images in a specified map into ratio 4:3 without cutting parts of the original images.
When an image is to small:
To get the right width it has to fill the needed extra width with a background color as variable. For instance #FFFFFF.
When an image is to wide:
To get the right height it has to fill the needed extra height with a background color as variable. For instance #FFFFFF.
The script should run with : php -f [url removed, login to view]