You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
how much effort would it be to add embedColor([hex|rgba|rgba]) to the API?
Use case 1: Say I have an input portrait image 100 x 200 px and I would like the output image to be a square 200x200. So the remaining (empty) parts of the input image would be filled with a color of a choice.
Use case 2: Say I have the same input portrait image 100 x 200 px but this time I would like to have it resized by half 50 x 100px and embedded on a canvas of 200x200px. This way my input image would be centered in the canvas with a color of a choice.
Thanks for the suggestion @matylla. This looks like a feature to add at the same time #86 is worked on as both modify the behaviour of the existing embed* methods.
Activity
lovell commentedon Sep 16, 2014
Thanks for the suggestion @matylla. This looks like a feature to add at the same time #86 is worked on as both modify the behaviour of the existing embed* methods.
Allow embed with rgba background #86 #89
lovell commentedon Oct 2, 2014
Hi @matylla, are you able to verify the new
backgroundandembedmethods on thealphabranch meet your needs?lovell commentedon Oct 13, 2014
This feature is now is master.
lovell commentedon Oct 17, 2014
This feature is in v0.7.0, now available via npm.