I am using your class to load images from different sources and formats, convert them to jpeg and save them to the server hdd.
Is there a built in possibilty to change the background color of the resulting jpeg? when converting some transparent PNGs, the background color of the jpeg changes to black.
I would create an empty "base image" with a background-color and insert the other image into this.
Image::canvas(100,100, '#b53717')->insert($img)->save('foo.jpg');
Works very nice.
Thank you.
Most helpful comment
I would create an empty "base image" with a background-color and insert the other image into this.