bimg icon indicating copy to clipboard operation
bimg copied to clipboard

Support RGBA in background color

Open ovaltzer opened this issue 4 years ago • 2 comments

Hi there, I couldn't find it in the code and i was wondering if it is possible to add support for

backgroundC := [4]C.double{
		C.double(background.R),
		C.double(background.G),
		C.double(background.B),
		C.double(background.A),
	}

We would like to paint the background of an image with a fully transparent color in case of resizing. Not sure if vips support it, though I was wondering if it's complicated to add? I saw that vips might support: https://stackoverflow.com/questions/32337500/how-to-convert-image-to-rgba-in-vips-tool-how-to-make-sure-two-images-have-th/32349392

Thanks

ovaltzer avatar May 10 '20 14:05 ovaltzer

Happy to help merge a PR implementing this!

h2non avatar Jun 11 '20 14:06 h2non

@ovaltzer Hey have you got the solution for this issue...or any code change that can support transparent background to image.

sonal1999 avatar Apr 06 '21 04:04 sonal1999