unitag / QRCODES-API

Documentation for Unitag's QR Codes API
15 stars 11 forks source link

Request example to set Background image and Logo.By using the http://api.qrcode.unitag.fr/api?(objective c Xcode) #11

Open superProgrammer90 opened 7 years ago

sacarino commented 7 years ago

Looking at the payload of their demo site, it looks like you'd set it like this:

"LOGO":{
    "L_NAME": "https://host.com/your/url/here.png",
    "EXCAVATE": true,
    "L_X_Norm": 0.354,
    "L_Y_Norm": 0.416,
    "L_WIDTH": 0.292,
    "L_LENGTH": 0.168
}

Obviously you'd need to set your own values for everything...

superProgrammer90 commented 7 years ago

ya...thanks..it works....what about the background image?

sacarino commented 7 years ago

Not sure I follow - it's whatever you put into L_NAME?

I did stumble over something that may or may not be a thing. When I was trying to use a png background and generate a non-png output, it silently failed. I was specifically generating a svg

Same background + output format = success. At least, in my quick test.