I want to change .webp
image width or height to a higher value, and add some transparent area to the image.
For example, imagine I have a width:512*height:312
webp
image, I need two steps:
1- Add 512*200
transparent area to my image.
2- Transform my image to the center of the new image.
OR
1- Add 512*100
transparent area to the top of my image.
2- Add 512*100
transparent area to the bottom of my image.
The final result I want, a 512*512
.webp
image without any scale on my original image.
How can I do this with the PHP language?
Consider using Imagick extension.