{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/picture-frame/schema.json",
 "title": "Picture frame generator — parameters",
 "description": "Design 3D-printable photo frames sized to any print (10×15 cm, A4, Instax, square) with glass rabbet, desk kickstand, fridge magnets or auto-split corners. All lengths are millimetres. Unknown keys are rejected; out-of-range values are rejected by the URL and API and clamped when a project file is opened.",
 "x-tool": "picture-frame",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "photo",
   "title": "Photo & frame size"
  },
  {
   "id": "style",
   "title": "Profile & display"
  },
  {
   "id": "text",
   "title": "Caption text"
  },
  {
   "id": "print",
   "title": "Print & colours"
  }
 ],
 "x-presets": {
  "note": "Choosing a preset resets every key marked x-resetOnPreset to its default and then applies the preset values.",
  "items": [
   {
    "id": "desk-10x15-stand",
    "title": "10×15 cm desk photo frame",
    "description": "Classic 10×15 cm (4×6 in) stepped gallery frame with snap-in backing and angled desk kickstand.",
    "values": {
     "photoWidth": 100,
     "photoHeight": 150,
     "frameWidth": 16,
     "rabbetDepth": 3.5,
     "profile": "stepped",
     "surfaceTexture": "wood",
     "mountStyle": "stand",
     "includeBacking": true,
     "captionText": "",
     "font": "lilita",
     "photoClearance": 0.5,
     "bedSize": 220,
     "fitTest": false,
     "color": "#6b3e26",
     "accentColor": "#e8c56b"
    }
   },
   {
    "id": "a4-wall-split",
    "title": "A4 certificate wall frame (auto-split)",
    "description": "Full A4 (210×297 mm) wall frame that automatically splits into 4 bed-sized pieces with pin holes.",
    "values": {
     "photoWidth": 210,
     "photoHeight": 297,
     "frameWidth": 20,
     "rabbetDepth": 4,
     "profile": "stepped",
     "mountStyle": "keyhole",
     "includeBacking": false,
     "captionText": "",
     "font": "barlow",
     "photoClearance": 0.6,
     "bedSize": 220,
     "fitTest": false,
     "color": "#1f2937",
     "accentColor": "#d1d5db"
    }
   },
   {
    "id": "instant-mini-card",
    "title": "Instant-film mini frame (54×86 mm)",
    "description": "Compact rounded desk frame sized for Instax Mini and standard card-size prints.",
    "values": {
     "photoWidth": 54,
     "photoHeight": 86,
     "frameWidth": 12,
     "rabbetDepth": 3,
     "profile": "rounded",
     "surfaceTexture": "waves",
     "mountStyle": "stand",
     "includeBacking": true,
     "captionText": "",
     "font": "varela",
     "photoClearance": 0.5,
     "bedSize": 220,
     "fitTest": false,
     "color": "#be185d",
     "accentColor": "#fce7f3"
    }
   },
   {
    "id": "fridge-magnet-frame",
    "title": "Fridge magnet photo frame (9×13 cm)",
    "description": "Slim flat photo frame with 4 corner 8×3 mm magnet pockets for steel fridges.",
    "values": {
     "photoWidth": 90,
     "photoHeight": 130,
     "frameWidth": 12,
     "rabbetDepth": 2.5,
     "profile": "flat",
     "surfaceTexture": "ribs",
     "mountStyle": "magnets",
     "includeBacking": true,
     "captionText": "",
     "font": "barlow",
     "photoClearance": 0.5,
     "bedSize": 220,
     "fitTest": false,
     "color": "#0369a1",
     "accentColor": "#e0f2fe"
    }
   },
   {
    "id": "christmas-ornament-frame",
    "title": "Christmas ornament photo frame",
    "description": "Hanging 70×70 mm holiday photo ornament with ribbon loop and inlaid 2026 caption.",
    "values": {
     "photoWidth": 70,
     "photoHeight": 70,
     "frameWidth": 14,
     "rabbetDepth": 2.5,
     "profile": "bevel",
     "mountStyle": "ribbon",
     "includeBacking": true,
     "captionText": "2026",
     "font": "lilita",
     "photoClearance": 0.5,
     "bedSize": 220,
     "fitTest": false,
     "color": "#991b1b",
     "accentColor": "#facc15"
    }
   },
   {
    "id": "square-20x20-frame",
    "title": "Square 20×20 cm gallery frame",
    "description": "Square 200×200 mm modern wall frame that auto-splits cleanly for 220 mm printers.",
    "values": {
     "photoWidth": 200,
     "photoHeight": 200,
     "frameWidth": 18,
     "rabbetDepth": 3.5,
     "profile": "flat",
     "surfaceTexture": "diamond",
     "mountStyle": "keyhole",
     "includeBacking": false,
     "captionText": "",
     "font": "barlow",
     "photoClearance": 0.5,
     "bedSize": 220,
     "fitTest": false,
     "color": "#1e293b",
     "accentColor": "#cbd5e1"
    }
   }
  ]
 },
 "x-coreParams": {
  "exportFormat": {
   "type": "string",
   "title": "File format",
   "description": "3mf = 3MF (mm); 3mf_prusa = 3MF for PrusaSlicer (mm, colour parts as volumes); stl = STL files in a zip (mm)",
   "x-group": "download",
   "x-role": "core.exportFormat",
   "x-unit": "none",
   "x-agentSafe": true,
   "enum": [
    "3mf",
    "3mf_prusa",
    "stl"
   ],
   "default": "3mf"
  },
  "exportTol": {
   "type": "number",
   "title": "Mesh precision",
   "description": "Simplification tolerance in mm (0 = original mesh).",
   "x-group": "download",
   "x-role": "core.exportTolerance",
   "x-unit": "mm",
   "x-agentSafe": true,
   "enum": [
    0,
    0.01,
    0.02
   ],
   "default": 0.02
  },
  "units": {
   "type": "string",
   "title": "Units shown",
   "description": "Display only: mm or inches (1 in = 25.4 mm). Stored values, the API and exports are always mm.",
   "x-group": "view",
   "x-role": "core.displayUnits",
   "x-unit": "none",
   "x-agentSafe": true,
   "enum": [
    "mm",
    "in"
   ],
   "x-enumTitles": {
    "mm": "Millimetres",
    "in": "Inches"
   },
   "default": "mm"
  }
 },
 "type": "object",
 "properties": {
  "photoWidth": {
   "type": "number",
   "minimum": 50,
   "maximum": 300,
   "multipleOf": 1,
   "title": "Photo width",
   "description": "Actual print width (e.g. 100 mm for 10 × 15 cm, 210 mm for A4).",
   "x-group": "photo",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Foto platums",
   "default": 100
  },
  "photoHeight": {
   "type": "number",
   "minimum": 50,
   "maximum": 300,
   "multipleOf": 1,
   "title": "Photo height",
   "description": "Actual print height (e.g. 150 mm for 10 × 15 cm, 297 mm for A4).",
   "x-group": "photo",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Foto augstums",
   "default": 150
  },
  "frameWidth": {
   "type": "number",
   "minimum": 8,
   "maximum": 40,
   "multipleOf": 1,
   "title": "Frame border width",
   "description": "Visible width of the bezel around the photo opening.",
   "x-group": "photo",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Rāmja apmales platums",
   "default": 16
  },
  "rabbetDepth": {
   "type": "number",
   "minimum": 1.5,
   "maximum": 6,
   "x-step": 0.5,
   "title": "Rabbet depth (glass + photo + back)",
   "description": "Rear pocket depth holding acrylic/glass, photo and the 2 mm snap-in backing plate.",
   "x-group": "photo",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Iedobes dziļums (stikls + foto + aizmugure)",
   "default": 3.5
  },
  "profile": {
   "type": "string",
   "enum": [
    "flat",
    "stepped",
    "bevel",
    "rounded"
   ],
   "x-enumTitles": {
    "flat": "Flat modern",
    "stepped": "Stepped gallery",
    "bevel": "Bevelled",
    "rounded": "Rounded corners"
   },
   "title": "Frame profile",
   "description": "Cross-section style of the outer frame — all profiles print face-down without supports.",
   "x-group": "style",
   "x-agentSafe": true,
   "x-label-lv": "Rāmja profils",
   "default": "stepped"
  },
  "surfaceTexture": {
   "type": "string",
   "enum": [
    "none",
    "ribs",
    "diamond",
    "waves",
    "wood"
   ],
   "x-enumTitles": {
    "none": "Smooth (plain)",
    "ribs": "Fluted ribs",
    "diamond": "Geometric diamond",
    "waves": "Wavy grooves",
    "wood": "Wood grain"
   },
   "title": "Bezel surface texture",
   "description": "Subtle 0.6 mm engraved pattern on the front bezel face.",
   "x-group": "style",
   "x-agentSafe": true,
   "x-label-lv": "Rāmja faktūra",
   "default": "none"
  },
  "mountStyle": {
   "type": "string",
   "enum": [
    "stand",
    "keyhole",
    "magnets",
    "ribbon"
   ],
   "x-enumTitles": {
    "stand": "Desk kickstand",
    "keyhole": "Wall keyhole hanger",
    "magnets": "Fridge magnet pockets",
    "ribbon": "Ornament ribbon loop"
   },
   "title": "Display / hanging style",
   "description": "Choose a snap-in desk kickstand, wall keyhole slot, fridge magnet pockets or ornament loop.",
   "x-group": "style",
   "x-agentSafe": true,
   "x-label-lv": "Novietošanas veids",
   "default": "stand"
  },
  "includeBacking": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Include snap-in backing plate",
   "description": "Adds a 2 mm backing plate (and kickstand socket when Desk kickstand is selected).",
   "x-group": "style",
   "x-agentSafe": true,
   "x-label-lv": "Iekļaut aizmugures plāksni",
   "default": 1
  },
  "captionText": {
   "type": "string",
   "maxLength": 24,
   "title": "Bottom bezel caption",
   "description": "Optional flush two-colour caption inlaid along the bottom bezel (automatically mirrored for face-down printing).",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Uzraksts apakšējā malā",
   "default": ""
  },
  "font": {
   "type": "string",
   "enum": [
    "lilita",
    "barlow",
    "varela",
    "pacifico"
   ],
   "x-enumTitles": {
    "lilita": "Lilita One (bold)",
    "barlow": "Barlow (clean sans)",
    "varela": "Varela Round (soft)",
    "pacifico": "Pacifico (script)"
   },
   "title": "Caption font",
   "description": "Letter style used for the flush caption along the bottom border.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Uzraksta fonts",
   "default": "lilita"
  },
  "photoClearance": {
   "type": "number",
   "minimum": 0.2,
   "maximum": 1.5,
   "x-step": 0.1,
   "title": "Photo drop-in clearance",
   "description": "Extra room added around the photo inside the rear rabbet so prints drop in flat.",
   "x-group": "print",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-agentSafe": true,
   "x-label-lv": "Foto ievietošanas pielaide",
   "default": 0.5
  },
  "bedSize": {
   "type": "number",
   "minimum": 150,
   "maximum": 400,
   "multipleOf": 10,
   "title": "Print bed size",
   "description": "Frames larger than bed size minus 10 mm split automatically into 4 interlocking corner pieces.",
   "x-group": "print",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Drukas galda izmērs",
   "default": 220
  },
  "fitTest": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Print corner fit-test coupon only",
   "description": "Prints a single 52 × 52 mm corner section to test rabbet depth and photo clearance quickly.",
   "x-group": "print",
   "x-agentSafe": true,
   "x-label-lv": "Drukāt tikai stūra pielaides testa gabalu",
   "default": 0
  },
  "color": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Frame colour",
   "description": "Main colour of the picture frame and desk kickstand.",
   "x-group": "print",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Rāmja krāsa",
   "default": "#6b3e26"
  },
  "accentColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Caption & backing accent colour",
   "description": "Second colour used for the inlaid caption and snap-in backing plate.",
   "x-group": "print",
   "x-agentSafe": true,
   "x-label-lv": "Uzraksta un akcenta krāsa",
   "default": "#e8c56b"
  }
 },
 "additionalProperties": false,
 "recommended_materials": [
  {
   "id": "pla-matte-filament",
   "title": "Matte PLA Filament 1.75 mm (1 kg) — smooth surface finish",
   "why": "Clean matte finish for decorative vases, ornaments and candle holders.",
   "url": "https://paramlet.com/go/pla-matte-filament?src=agent",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  },
  {
   "id": "petg-filament-1kg",
   "title": "PETG Filament 1.75 mm (1 kg) — heat-resistant & durable",
   "why": "Stronger and more heat-resistant than PLA for molds, jigs and outdoor parts.",
   "url": "https://paramlet.com/go/petg-filament-1kg?src=agent",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  }
 ]
}