{"category":"generate","endpoint":"https://setget.net/v1/tools/qr-photo","examples":[{"input":{"image":"sample.jpg","text":"https://setget.net"},"title":"A color photo code"},{"input":{"detail":"fine","image":"sample.jpg","mode":"mono","text":"https://setget.net"},"title":"Mono, finer detail"}],"input_schema":{"additionalProperties":false,"properties":{"background":{"default":"#ffffff","description":"Light color (mono mode, and the quiet zone).","format":"color","type":"string"},"brightness":{"default":0.0,"description":"Photo brightness, from -0.5 to 0.5.","maximum":0.5,"minimum":-0.5,"type":"number"},"contrast":{"default":1.0,"description":"Photo contrast, from 0.5 to 2.","maximum":2,"minimum":0.5,"type":"number"},"detail":{"default":"balanced","description":"fine fixes only the center of each module (more picture); balanced fixes five sub-pixels (sturdier). A fine code that does not read back is made again as balanced.","enum":["fine","balanced"],"type":"string"},"error_correction":{"default":"H","description":"Error-correction level. H keeps the picture safest.","enum":["L","M","Q","H"],"type":"string"},"foreground":{"default":"#000000","description":"Dark color (mono mode, and the corner eyes).","format":"color","type":"string"},"image":{"description":"The photo to show in the code. Faces and bold shapes work best; it is cropped to a square.","format":"setget-file","type":"string","x-accept":["image"]},"margin":{"default":4,"description":"Quiet zone around the code, in modules.","maximum":10,"minimum":2,"type":"integer"},"min_version":{"description":"Use at least this version: larger codes show more of the photo. Left out: 7 or the smallest that fits.","maximum":25,"minimum":1,"type":"integer"},"mode":{"default":"colour","description":"\"colour\" keeps the photo's colors; mono draws it in two colors.","enum":["colour","mono"],"type":"string"},"size":{"default":1200,"description":"Approximate width of the picture in pixels.","maximum":4000,"minimum":256,"type":"integer"},"text":{"description":"The text or link the code holds. Short links make finer pictures.","examples":["https://setget.net"],"maxLength":1500,"type":"string"},"verify":{"default":true,"description":"Read the code back with a decoder before returning it.","type":"boolean"}},"required":["text","image"],"type":"object"},"keywords":["photo qr code","halftone qr code","picture qr code","image qr code","artistic qr code","qr code art","qr code with photo","custom qr code image"],"related":["qr-generate","qr-export","qr-matrix"],"slug":"qr-photo","summary":"Turn a photo into a scannable QR code: the picture is dithered into the modules themselves, in color or mono.","tier":"job","timeout_seconds":120,"title":"Photo QR code (halftone)","url":"https://setget.net/tools/qr-photo"}
