WycliffeAssociates / jdenticon-kotlin

19 stars 8 forks source link

fix padding behavior in toSvg() #7

Open bseib opened 3 years ago

bseib commented 3 years ago

The padding value passed to toSvg() seems to "scale" the image rather than add a padding border around the image.

The output from calling Jdenticon.toSvg("Alice", 100):

image

The output from calling Jdenticon.toSvg("Alice", 100, 1.5f):

image

I haven't investigated anything yet. I did notice that the API for the javascript lib has a whole set of options that can be passed, and not just padding. Could just fix the padding issue, or could try to bring parity to the APIs.