@fleox/agentphoto 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/LICENSE +143 -0
  2. package/README.md +229 -2
  3. package/changelog.json +17 -0
  4. package/dist/agent/agentphoto.mjs +3307 -0
  5. package/dist/agent/chunks/assets-CDQo3VqD.mjs +151 -0
  6. package/dist/agent/chunks/catalog-DIZ5dnH5.mjs +953 -0
  7. package/dist/agent/chunks/context-DoLoLF9f.mjs +75 -0
  8. package/dist/agent/chunks/doc-BjY_j4Su.mjs +773 -0
  9. package/dist/agent/chunks/export-CLmpFART.mjs +140 -0
  10. package/dist/agent/chunks/ids-DAmiNwd9.mjs +28 -0
  11. package/dist/agent/chunks/imageInfo-QxAfu8R6.mjs +173 -0
  12. package/dist/agent/chunks/jsonPath-B7vAPXsi.mjs +155 -0
  13. package/dist/agent/chunks/library-C_EXiphj.mjs +16 -0
  14. package/dist/agent/chunks/models-C4i_hicr.mjs +387 -0
  15. package/dist/agent/chunks/output-3F12IR9O.mjs +130 -0
  16. package/dist/agent/chunks/package-DSmAxrla.mjs +71 -0
  17. package/dist/agent/chunks/project-CUykGysG.mjs +198 -0
  18. package/dist/agent/chunks/rolldown-runtime-CMQPkI6i.mjs +18 -0
  19. package/dist/agent/chunks/server-I0trf5tM.mjs +241 -0
  20. package/dist/agent/chunks/templates--YGpGuHh.mjs +40 -0
  21. package/dist/agent/chunks/tools-Dnh8g6F9.mjs +1354 -0
  22. package/dist/agent/chunks/tree-DO7N0UDV.mjs +127 -0
  23. package/dist/agent/chunks/types-DOK7tAAu.mjs +30 -0
  24. package/dist/agent/chunks/validate-CXPFB-i6.mjs +936 -0
  25. package/dist/engine/agentphoto-engine.js +2777 -0
  26. package/dist/engine/chunks/transformers.web-D5Vsg6-A.js +18494 -0
  27. package/dist/engine/ort/ort-wasm-simd-threaded.asyncify.mjs +124 -0
  28. package/dist/engine/ort/ort-wasm-simd-threaded.asyncify.wasm +0 -0
  29. package/dist/studio/assets/index-Be8JnaFy.js +28 -0
  30. package/dist/studio/assets/index-DwPms2S5.css +1 -0
  31. package/dist/studio/assets/transformers.web-DgnCIB_X.js +38 -0
  32. package/dist/studio/index.html +15 -0
  33. package/dist/studio/library/LICENSES.md +57 -0
  34. package/dist/studio/library/fonts/OFL.txt +90 -0
  35. package/dist/studio/library/fonts/anton/anton-latin-400-normal.woff2 +0 -0
  36. package/dist/studio/library/fonts/anton/anton-latin-ext-400-normal.woff2 +0 -0
  37. package/dist/studio/library/fonts/archivo-black/archivo-black-latin-400-normal.woff2 +0 -0
  38. package/dist/studio/library/fonts/archivo-black/archivo-black-latin-ext-400-normal.woff2 +0 -0
  39. package/dist/studio/library/fonts/bebas-neue/bebas-neue-latin-400-normal.woff2 +0 -0
  40. package/dist/studio/library/fonts/bebas-neue/bebas-neue-latin-ext-400-normal.woff2 +0 -0
  41. package/dist/studio/library/fonts/caveat/caveat-latin-400-normal.woff2 +0 -0
  42. package/dist/studio/library/fonts/caveat/caveat-latin-700-normal.woff2 +0 -0
  43. package/dist/studio/library/fonts/caveat/caveat-latin-ext-400-normal.woff2 +0 -0
  44. package/dist/studio/library/fonts/caveat/caveat-latin-ext-700-normal.woff2 +0 -0
  45. package/dist/studio/library/fonts/dm-serif/dm-serif-display-latin-400-normal.woff2 +0 -0
  46. package/dist/studio/library/fonts/dm-serif/dm-serif-display-latin-ext-400-normal.woff2 +0 -0
  47. package/dist/studio/library/fonts/inter/inter-latin-400-normal.woff2 +0 -0
  48. package/dist/studio/library/fonts/inter/inter-latin-600-normal.woff2 +0 -0
  49. package/dist/studio/library/fonts/inter/inter-latin-700-normal.woff2 +0 -0
  50. package/dist/studio/library/fonts/inter/inter-latin-800-normal.woff2 +0 -0
  51. package/dist/studio/library/fonts/inter/inter-latin-ext-400-normal.woff2 +0 -0
  52. package/dist/studio/library/fonts/inter/inter-latin-ext-600-normal.woff2 +0 -0
  53. package/dist/studio/library/fonts/inter/inter-latin-ext-700-normal.woff2 +0 -0
  54. package/dist/studio/library/fonts/inter/inter-latin-ext-800-normal.woff2 +0 -0
  55. package/dist/studio/library/fonts/jetbrains-mono/jetbrains-mono-latin-400-normal.woff2 +0 -0
  56. package/dist/studio/library/fonts/jetbrains-mono/jetbrains-mono-latin-700-normal.woff2 +0 -0
  57. package/dist/studio/library/fonts/jetbrains-mono/jetbrains-mono-latin-ext-400-normal.woff2 +0 -0
  58. package/dist/studio/library/fonts/jetbrains-mono/jetbrains-mono-latin-ext-700-normal.woff2 +0 -0
  59. package/dist/studio/library/fonts/lobster/lobster-latin-400-normal.woff2 +0 -0
  60. package/dist/studio/library/fonts/lobster/lobster-latin-ext-400-normal.woff2 +0 -0
  61. package/dist/studio/library/fonts/montserrat/montserrat-latin-400-normal.woff2 +0 -0
  62. package/dist/studio/library/fonts/montserrat/montserrat-latin-700-normal.woff2 +0 -0
  63. package/dist/studio/library/fonts/montserrat/montserrat-latin-800-normal.woff2 +0 -0
  64. package/dist/studio/library/fonts/montserrat/montserrat-latin-ext-400-normal.woff2 +0 -0
  65. package/dist/studio/library/fonts/montserrat/montserrat-latin-ext-700-normal.woff2 +0 -0
  66. package/dist/studio/library/fonts/montserrat/montserrat-latin-ext-800-normal.woff2 +0 -0
  67. package/dist/studio/library/fonts/oswald/oswald-latin-400-normal.woff2 +0 -0
  68. package/dist/studio/library/fonts/oswald/oswald-latin-600-normal.woff2 +0 -0
  69. package/dist/studio/library/fonts/oswald/oswald-latin-ext-400-normal.woff2 +0 -0
  70. package/dist/studio/library/fonts/oswald/oswald-latin-ext-600-normal.woff2 +0 -0
  71. package/dist/studio/library/fonts/pacifico/pacifico-latin-400-normal.woff2 +0 -0
  72. package/dist/studio/library/fonts/pacifico/pacifico-latin-ext-400-normal.woff2 +0 -0
  73. package/dist/studio/library/fonts/playfair/playfair-display-latin-400-italic.woff2 +0 -0
  74. package/dist/studio/library/fonts/playfair/playfair-display-latin-400-normal.woff2 +0 -0
  75. package/dist/studio/library/fonts/playfair/playfair-display-latin-700-normal.woff2 +0 -0
  76. package/dist/studio/library/fonts/playfair/playfair-display-latin-ext-400-italic.woff2 +0 -0
  77. package/dist/studio/library/fonts/playfair/playfair-display-latin-ext-400-normal.woff2 +0 -0
  78. package/dist/studio/library/fonts/playfair/playfair-display-latin-ext-700-normal.woff2 +0 -0
  79. package/dist/studio/library/fonts/poppins/poppins-latin-400-normal.woff2 +0 -0
  80. package/dist/studio/library/fonts/poppins/poppins-latin-600-normal.woff2 +0 -0
  81. package/dist/studio/library/fonts/poppins/poppins-latin-700-normal.woff2 +0 -0
  82. package/dist/studio/library/fonts/poppins/poppins-latin-ext-400-normal.woff2 +0 -0
  83. package/dist/studio/library/fonts/poppins/poppins-latin-ext-600-normal.woff2 +0 -0
  84. package/dist/studio/library/fonts/poppins/poppins-latin-ext-700-normal.woff2 +0 -0
  85. package/dist/studio/library/fonts/roboto-slab/LICENSE.txt +202 -0
  86. package/dist/studio/library/fonts/roboto-slab/roboto-slab-latin-400-normal.woff2 +0 -0
  87. package/dist/studio/library/fonts/roboto-slab/roboto-slab-latin-700-normal.woff2 +0 -0
  88. package/dist/studio/library/fonts/roboto-slab/roboto-slab-latin-ext-400-normal.woff2 +0 -0
  89. package/dist/studio/library/fonts/roboto-slab/roboto-slab-latin-ext-700-normal.woff2 +0 -0
  90. package/dist/studio/library/fonts/space-grotesk/space-grotesk-latin-500-normal.woff2 +0 -0
  91. package/dist/studio/library/fonts/space-grotesk/space-grotesk-latin-700-normal.woff2 +0 -0
  92. package/dist/studio/library/fonts/space-grotesk/space-grotesk-latin-ext-500-normal.woff2 +0 -0
  93. package/dist/studio/library/fonts/space-grotesk/space-grotesk-latin-ext-700-normal.woff2 +0 -0
  94. package/dist/studio/library/images/city.jpg +0 -0
  95. package/dist/studio/library/images/food.jpg +0 -0
  96. package/dist/studio/library/images/landscape.jpg +0 -0
  97. package/dist/studio/library/images/pet.jpg +0 -0
  98. package/dist/studio/library/images/portrait.jpg +0 -0
  99. package/dist/studio/library/images/product.jpg +0 -0
  100. package/dist/studio/library/index.json +752 -0
  101. package/dist/studio/templates/avatar-pro/assets/masks/photo-cutout.png +0 -0
  102. package/dist/studio/templates/avatar-pro/photo.json +13 -0
  103. package/dist/studio/templates/avatar-pro/preview.jpg +0 -0
  104. package/dist/studio/templates/avatar-pro/template.json +1 -0
  105. package/dist/studio/templates/index.json +1 -0
  106. package/dist/studio/templates/og-article/photo.json +13 -0
  107. package/dist/studio/templates/og-article/preview.jpg +0 -0
  108. package/dist/studio/templates/og-article/template.json +1 -0
  109. package/dist/studio/templates/polaroid/photo.json +13 -0
  110. package/dist/studio/templates/polaroid/preview.jpg +0 -0
  111. package/dist/studio/templates/polaroid/template.json +1 -0
  112. package/dist/studio/templates/product-white/assets/masks/photo-cutout.png +0 -0
  113. package/dist/studio/templates/product-white/photo.json +72 -0
  114. package/dist/studio/templates/product-white/preview.jpg +0 -0
  115. package/dist/studio/templates/product-white/template.json +1 -0
  116. package/dist/studio/templates/sale-banner/photo.json +125 -0
  117. package/dist/studio/templates/sale-banner/preview.jpg +0 -0
  118. package/dist/studio/templates/sale-banner/template.json +1 -0
  119. package/dist/studio/templates/social-quote/photo.json +13 -0
  120. package/dist/studio/templates/social-quote/preview.jpg +0 -0
  121. package/dist/studio/templates/social-quote/template.json +1 -0
  122. package/dist/studio/templates/story-promo/photo.json +13 -0
  123. package/dist/studio/templates/story-promo/preview.jpg +0 -0
  124. package/dist/studio/templates/story-promo/template.json +1 -0
  125. package/dist/studio/templates/youtube-thumbnail/photo.json +12 -0
  126. package/dist/studio/templates/youtube-thumbnail/preview.jpg +0 -0
  127. package/dist/studio/templates/youtube-thumbnail/template.json +1 -0
  128. package/library/LICENSES.md +57 -0
  129. package/library/fonts/OFL.txt +90 -0
  130. package/library/fonts/anton/anton-latin-400-normal.woff2 +0 -0
  131. package/library/fonts/anton/anton-latin-ext-400-normal.woff2 +0 -0
  132. package/library/fonts/archivo-black/archivo-black-latin-400-normal.woff2 +0 -0
  133. package/library/fonts/archivo-black/archivo-black-latin-ext-400-normal.woff2 +0 -0
  134. package/library/fonts/bebas-neue/bebas-neue-latin-400-normal.woff2 +0 -0
  135. package/library/fonts/bebas-neue/bebas-neue-latin-ext-400-normal.woff2 +0 -0
  136. package/library/fonts/caveat/caveat-latin-400-normal.woff2 +0 -0
  137. package/library/fonts/caveat/caveat-latin-700-normal.woff2 +0 -0
  138. package/library/fonts/caveat/caveat-latin-ext-400-normal.woff2 +0 -0
  139. package/library/fonts/caveat/caveat-latin-ext-700-normal.woff2 +0 -0
  140. package/library/fonts/dm-serif/dm-serif-display-latin-400-normal.woff2 +0 -0
  141. package/library/fonts/dm-serif/dm-serif-display-latin-ext-400-normal.woff2 +0 -0
  142. package/library/fonts/inter/inter-latin-400-normal.woff2 +0 -0
  143. package/library/fonts/inter/inter-latin-600-normal.woff2 +0 -0
  144. package/library/fonts/inter/inter-latin-700-normal.woff2 +0 -0
  145. package/library/fonts/inter/inter-latin-800-normal.woff2 +0 -0
  146. package/library/fonts/inter/inter-latin-ext-400-normal.woff2 +0 -0
  147. package/library/fonts/inter/inter-latin-ext-600-normal.woff2 +0 -0
  148. package/library/fonts/inter/inter-latin-ext-700-normal.woff2 +0 -0
  149. package/library/fonts/inter/inter-latin-ext-800-normal.woff2 +0 -0
  150. package/library/fonts/jetbrains-mono/jetbrains-mono-latin-400-normal.woff2 +0 -0
  151. package/library/fonts/jetbrains-mono/jetbrains-mono-latin-700-normal.woff2 +0 -0
  152. package/library/fonts/jetbrains-mono/jetbrains-mono-latin-ext-400-normal.woff2 +0 -0
  153. package/library/fonts/jetbrains-mono/jetbrains-mono-latin-ext-700-normal.woff2 +0 -0
  154. package/library/fonts/lobster/lobster-latin-400-normal.woff2 +0 -0
  155. package/library/fonts/lobster/lobster-latin-ext-400-normal.woff2 +0 -0
  156. package/library/fonts/montserrat/montserrat-latin-400-normal.woff2 +0 -0
  157. package/library/fonts/montserrat/montserrat-latin-700-normal.woff2 +0 -0
  158. package/library/fonts/montserrat/montserrat-latin-800-normal.woff2 +0 -0
  159. package/library/fonts/montserrat/montserrat-latin-ext-400-normal.woff2 +0 -0
  160. package/library/fonts/montserrat/montserrat-latin-ext-700-normal.woff2 +0 -0
  161. package/library/fonts/montserrat/montserrat-latin-ext-800-normal.woff2 +0 -0
  162. package/library/fonts/oswald/oswald-latin-400-normal.woff2 +0 -0
  163. package/library/fonts/oswald/oswald-latin-600-normal.woff2 +0 -0
  164. package/library/fonts/oswald/oswald-latin-ext-400-normal.woff2 +0 -0
  165. package/library/fonts/oswald/oswald-latin-ext-600-normal.woff2 +0 -0
  166. package/library/fonts/pacifico/pacifico-latin-400-normal.woff2 +0 -0
  167. package/library/fonts/pacifico/pacifico-latin-ext-400-normal.woff2 +0 -0
  168. package/library/fonts/playfair/playfair-display-latin-400-italic.woff2 +0 -0
  169. package/library/fonts/playfair/playfair-display-latin-400-normal.woff2 +0 -0
  170. package/library/fonts/playfair/playfair-display-latin-700-normal.woff2 +0 -0
  171. package/library/fonts/playfair/playfair-display-latin-ext-400-italic.woff2 +0 -0
  172. package/library/fonts/playfair/playfair-display-latin-ext-400-normal.woff2 +0 -0
  173. package/library/fonts/playfair/playfair-display-latin-ext-700-normal.woff2 +0 -0
  174. package/library/fonts/poppins/poppins-latin-400-normal.woff2 +0 -0
  175. package/library/fonts/poppins/poppins-latin-600-normal.woff2 +0 -0
  176. package/library/fonts/poppins/poppins-latin-700-normal.woff2 +0 -0
  177. package/library/fonts/poppins/poppins-latin-ext-400-normal.woff2 +0 -0
  178. package/library/fonts/poppins/poppins-latin-ext-600-normal.woff2 +0 -0
  179. package/library/fonts/poppins/poppins-latin-ext-700-normal.woff2 +0 -0
  180. package/library/fonts/roboto-slab/LICENSE.txt +202 -0
  181. package/library/fonts/roboto-slab/roboto-slab-latin-400-normal.woff2 +0 -0
  182. package/library/fonts/roboto-slab/roboto-slab-latin-700-normal.woff2 +0 -0
  183. package/library/fonts/roboto-slab/roboto-slab-latin-ext-400-normal.woff2 +0 -0
  184. package/library/fonts/roboto-slab/roboto-slab-latin-ext-700-normal.woff2 +0 -0
  185. package/library/fonts/space-grotesk/space-grotesk-latin-500-normal.woff2 +0 -0
  186. package/library/fonts/space-grotesk/space-grotesk-latin-700-normal.woff2 +0 -0
  187. package/library/fonts/space-grotesk/space-grotesk-latin-ext-500-normal.woff2 +0 -0
  188. package/library/fonts/space-grotesk/space-grotesk-latin-ext-700-normal.woff2 +0 -0
  189. package/library/images/city.jpg +0 -0
  190. package/library/images/food.jpg +0 -0
  191. package/library/images/landscape.jpg +0 -0
  192. package/library/images/pet.jpg +0 -0
  193. package/library/images/portrait.jpg +0 -0
  194. package/library/images/product.jpg +0 -0
  195. package/library/index.json +752 -0
  196. package/package.json +65 -4
  197. package/plugin/.claude-plugin/plugin.json +19 -0
  198. package/plugin/skills/agentphoto-cutout/SKILL.md +132 -0
  199. package/plugin/skills/agentphoto-design/SKILL.md +104 -0
  200. package/plugin/skills/agentphoto-design/references/layouts.md +60 -0
  201. package/plugin/skills/agentphoto-publish/SKILL.md +79 -0
  202. package/plugin/skills/agentphoto-retouch/SKILL.md +144 -0
  203. package/plugin/skills/agentphoto-retouch/references/filters.md +51 -0
  204. package/plugin/skills/agentphoto-retouch/references/patch-ops.md +66 -0
  205. package/plugin/skills/agentphoto-retouch/references/recipes.md +129 -0
  206. package/templates/avatar-pro/assets/masks/photo-cutout.png +0 -0
  207. package/templates/avatar-pro/photo.json +13 -0
  208. package/templates/avatar-pro/preview.jpg +0 -0
  209. package/templates/avatar-pro/template.json +1 -0
  210. package/templates/og-article/photo.json +13 -0
  211. package/templates/og-article/preview.jpg +0 -0
  212. package/templates/og-article/template.json +1 -0
  213. package/templates/polaroid/photo.json +13 -0
  214. package/templates/polaroid/preview.jpg +0 -0
  215. package/templates/polaroid/template.json +1 -0
  216. package/templates/product-white/assets/masks/photo-cutout.png +0 -0
  217. package/templates/product-white/photo.json +72 -0
  218. package/templates/product-white/preview.jpg +0 -0
  219. package/templates/product-white/template.json +1 -0
  220. package/templates/sale-banner/photo.json +125 -0
  221. package/templates/sale-banner/preview.jpg +0 -0
  222. package/templates/sale-banner/template.json +1 -0
  223. package/templates/social-quote/photo.json +13 -0
  224. package/templates/social-quote/preview.jpg +0 -0
  225. package/templates/social-quote/template.json +1 -0
  226. package/templates/story-promo/photo.json +13 -0
  227. package/templates/story-promo/preview.jpg +0 -0
  228. package/templates/story-promo/template.json +1 -0
  229. package/templates/youtube-thumbnail/photo.json +12 -0
  230. package/templates/youtube-thumbnail/preview.jpg +0 -0
  231. package/templates/youtube-thumbnail/template.json +1 -0
@@ -0,0 +1,51 @@
1
+ # Filters cheat-sheet
2
+
3
+ The catalog is the source of truth: `npx -y @fleox/agentphoto@0.1.0 catalog filters --json` lists every filter with its parameters (type, range, default) and an example; `npx -y @fleox/agentphoto@0.1.0 catalog filters shadowsHighlights --json` shows one. Unknown ids or parameters fail validation with a "did you mean" hint.
4
+
5
+ A filter is `{ "type": "<id>", ...params }` plus two common parameters: `amount` (0..1, blend with the unfiltered pixels, default 1) and `enabled` (false = kept but skipped). On an image / text / shape layer it changes that layer; on an **adjustment layer** it changes everything below it (inside its group).
6
+
7
+ ## Light and tone
8
+
9
+ | Filter | Key parameters | Typical use |
10
+ |---|---|---|
11
+ | `exposure` | `exposure` -5..5 stops, `offset` -0.5..0.5, `gamma` 0.1..5 | Under / over-exposed photo: +0.2..+0.6 |
12
+ | `brightnessContrast` | `brightness`, `contrast` -100..100 | Quick global tweak |
13
+ | `shadowsHighlights` | `shadows` 0..100, `highlights` 0..100, `radius` 1..200 | Backlit faces, bright skies: 25..40 / 15..30 |
14
+ | `levels` | `black` 0..254, `white` 1..255, `gamma`, `outBlack`, `outWhite` | Flat / hazy photo: black / white near `analyze` `range` |
15
+ | `curves` | `rgb`, `red`, `green`, `blue`: `[[in, out], …]` 0..255, inputs increasing | S-curve `[[0,0],[64,54],[192,204],[255,255]]`, faded blacks `[[0,20],[255,255]]` |
16
+ | `autoTone`, `autoContrast` | `clip` 0..5 % | One-click starting point; check the render |
17
+ | `autoColor` | none | Neutralise a strong cast |
18
+
19
+ ## Colour
20
+
21
+ | Filter | Key parameters | Typical use |
22
+ |---|---|---|
23
+ | `temperature` | `temperature` -100..100 (negative = cooler), `tint` -100..100 (negative = greener) | Colour casts: start at ±8..15 |
24
+ | `vibrance` | `vibrance` -100..100, `saturation` | Dull colours, skin-safe: 15..30 |
25
+ | `hueSaturation` | `hue` -180..180, `saturation`, `lightness` -100..100, `colorize` | Strong saturation change, tinting with `colorize: true` |
26
+ | `colorBalance` | `shadows`, `midtones`, `highlights`: `[r, g, b]` each -100..100 | Teal shadows / warm highlights: `"shadows":[-10,0,10],"highlights":[10,0,-10]` |
27
+ | `photoFilter` | `color`, `density` 0..100 | Warming / cooling lens filter |
28
+ | `gradientMap` | `stops`: colours or `[offset, colour]` | Duotones: `["#1b1340","#ff7a59","#fff3d6"]` |
29
+ | `grayscale` | `red`, `green`, `blue` weights (%) | Black and white with control over which colours go light |
30
+ | `sepia` | `intensity` 0..100 | Brown monochrome |
31
+ | `invert` | none | Negative |
32
+
33
+ ## Detail and blur
34
+
35
+ | Filter | Key parameters | Typical use |
36
+ |---|---|---|
37
+ | `sharpen` | `amount` 0..500 %, `radius` 0.3..20, `threshold` 0..255 | Web output: 50..80, radius 1, threshold 3..6 (spares skin) |
38
+ | `clarity` | `amount` -100..100, `radius` 2..200 | Texture and punch: 10..25; negative softens |
39
+ | `surfaceBlur` | `radius` 1..60, `threshold` 1..100 | Skin smoothing on a masked copy: 8..12 / 15..25, `amount` 0.6..0.8 |
40
+ | `blur` | `radius` 0..250 | Background blur on a masked copy, privacy |
41
+ | `motionBlur` | `angle`, `distance` 0..400 | Speed effect |
42
+ | `noise` | `amount` 0..100, `monochrome`, `size` 1..8, `seed` | Film grain: 5..10 |
43
+ | `vignette` | `amount` -100..100 (negative = white), `size`, `feather`, `color` | Focus on the centre: 20..40 |
44
+
45
+ ## Stylize
46
+
47
+ `threshold` (`level`), `posterize` (`levels` 2..32), `pixelate` (`size`), and `look` (`look`: `bw`, `noir`, `sepia`, `vintage`, `polaroid`, `lomo`, `warm`, `cool`, `sunset`, `fade`, `punch`, `cinema`, `cyberpunk`, `cross-process`, `dramatic`, `dreamy`, `matte`, `golden-hour`, `film`, `clean`). Use a look at `amount` 0.5..0.8 on the adjustment layer, after the corrections.
48
+
49
+ ## Order matters
50
+
51
+ Filters run in list order. A good order on an adjustment layer: tone (levels / curves / exposure) → colour (temperature / vibrance) → look → vignette / grain. Detail filters (`sharpen`, `clarity` on the photo) and smoothing (`surfaceBlur` on a skin copy) belong on the image layers.
@@ -0,0 +1,66 @@
1
+ # Patch ops
2
+
3
+ `doc patch` applies a list of ops **atomically**: they are applied in order, the result is validated, and nothing is written if any op fails or the document becomes invalid (`error.details.opIndex` says which op). `--dry-run` prints the plan without writing; removing layers prints `needsConfirmation` until `--yes`.
4
+
5
+ ```bash
6
+ npx -y @fleox/agentphoto@0.1.0 doc patch --project my-photo --file ops.json --dry-run --json
7
+ npx -y @fleox/agentphoto@0.1.0 doc patch --project my-photo --file ops.json --json
8
+ npx -y @fleox/agentphoto@0.1.0 doc patch --project my-photo --json '[{"op":"set","path":"layers#title.size","value":96}]'
9
+ ```
10
+
11
+ ## Ops
12
+
13
+ | Op | Shape |
14
+ |---|---|
15
+ | `set` | `{ "op": "set", "path": "canvas.background", "value": "#111111" }` (creates missing keys) |
16
+ | `merge` | `{ "op": "merge", "path": "layers#title.effects", "value": { "stroke": { "color": "#000000", "width": 3 } } }` (deep merge; `null` deletes a key) |
17
+ | `remove` | `{ "op": "remove", "path": "layers#title.effects.stroke" }` |
18
+ | `addLayer` | `{ "op": "addLayer", "layer": { "id": "title", "type": "text", "text": "Old town" }, "above": "photo" }` (also `below`, `parent` + `index`; default: top) |
19
+ | `updateLayer` | `{ "op": "updateLayer", "id": "title", "set": { "color": "#ffd166" } }` (deep merge; `null` removes a field; `id`, `type`, `children` can't change) |
20
+ | `removeLayer` | `{ "op": "removeLayer", "id": "title-shadow" }` (with its children; needs `--yes`) |
21
+ | `moveLayer` | `{ "op": "moveLayer", "id": "title-shadow", "below": "title" }` (or `above`, `parent` + `index`) |
22
+ | `duplicateLayer` | `{ "op": "duplicateLayer", "id": "title", "newId": "title-shadow", "offset": [6, 6] }` |
23
+ | `groupLayers` | `{ "op": "groupLayers", "ids": ["title", "title-shadow"], "id": "heading", "name": "Heading" }` |
24
+ | `ungroup` | `{ "op": "ungroup", "id": "heading" }` |
25
+ | `addFilter` | `{ "op": "addFilter", "id": "photo", "filter": { "type": "exposure", "exposure": 0.2 } }` (`index` to insert) |
26
+ | `updateFilter` | `{ "op": "updateFilter", "id": "photo", "index": 0, "set": { "exposure": 0.3 } }` |
27
+ | `removeFilter` | `{ "op": "removeFilter", "id": "photo", "index": 1 }` |
28
+ | `setMask` | `{ "op": "setMask", "id": "photo", "mask": { "shape": "ellipse", "x": 100, "y": 50, "width": 1400, "height": 960, "feather": 80 } }` (`null` removes it) |
29
+ | `crop` | `{ "op": "crop", "x": 0, "y": 0, "width": 1600, "height": 900 }` (canvas px) |
30
+ | `resizeCanvas` | `{ "op": "resizeCanvas", "width": 1800, "height": 1200, "anchor": "center" }` (adds or cuts space; layers keep their size) |
31
+ | `resizeImage` | `{ "op": "resizeImage", "width": 1280 }` (or `height`, `scale`: scales every layer) |
32
+ | `rotateCanvas` | `{ "op": "rotateCanvas", "angle": 90 }` (90, 180, 270 clockwise) |
33
+ | `flipCanvas` | `{ "op": "flipCanvas", "axis": "horizontal" }` (text layers move but stay readable) |
34
+
35
+ All of these ops were run together on one project (`set`, `addLayer`, `updateLayer`, `merge`, `addFilter` × 2, `updateFilter`, `removeFilter`, `duplicateLayer`, `moveLayer`, `groupLayers`, `setMask`, `set` on a mask field, `remove` in one patch; then `ungroup`, `removeLayer`, `resizeCanvas`, `rotateCanvas`, `flipCanvas` with `--yes`).
36
+
37
+ ## Paths
38
+
39
+ - `canvas.width`, `canvas.background`, `title`, `export.format`
40
+ - `layers#<id>.<field>`: a layer by id, anywhere in the tree (groups included): `layers#title.size`, `layers#photo.mask.feather`
41
+ - array items: `layers#photo.filters[0].radius`, `layers#title.background.padding[0]`
42
+ - `doc get --path <path>` reads any of them: `doc get --path 'layers#title.size' --project my-photo --json`
43
+
44
+ ## Shortcuts (same validation, same plans)
45
+
46
+ ```bash
47
+ npx -y @fleox/agentphoto@0.1.0 layer update title --set size=96 --set color=#ffd166 --project my-photo --json
48
+ npx -y @fleox/agentphoto@0.1.0 layer update title --set effects.dropShadow.blur=24 --project my-photo --json
49
+ npx -y @fleox/agentphoto@0.1.0 layer update title --set mask=null --project my-photo --json
50
+ npx -y @fleox/agentphoto@0.1.0 layer move title --above photo --project my-photo --json
51
+ npx -y @fleox/agentphoto@0.1.0 filter add photo --type exposure --set exposure=0.3 --project my-photo --json
52
+ npx -y @fleox/agentphoto@0.1.0 filter update photo 0 --set exposure=0.2 --project my-photo --json
53
+ npx -y @fleox/agentphoto@0.1.0 mask set photo --mask '{"gradient":{"type":"linear","angle":0,"stops":["black","white"]}}' --project my-photo --json
54
+ npx -y @fleox/agentphoto@0.1.0 mask clear photo --project my-photo --json
55
+ npx -y @fleox/agentphoto@0.1.0 layer remove title --project my-photo --json
56
+ npx -y @fleox/agentphoto@0.1.0 layer remove title --yes --project my-photo --json
57
+ ```
58
+
59
+ `--set` takes dotted keys and JSON values: numbers and `true` / `false` / `null` are parsed, other text stays a string (`--set color=#ffd166`, `--set font=inter`); arrays and objects need quotes (`--set 'focus=[0.5,0.3]'`), and so does text with a line break, as a JSON string (`--set 'text="Line one\nline two"'`).
60
+
61
+ ## Gotchas
62
+
63
+ - `updateLayer` / `merge` keep keys you don't mention. To replace a whole filter list or effects object, use `set` on `layers#<id>.filters` or `layers#<id>.effects`.
64
+ - Filter indexes shift after `removeFilter`; read `layer list` again before the next index-based op.
65
+ - Box layers (image, text, shape) have masks in **layer-local** pixels (the mask moves with the layer); fill / adjustment / group masks are in canvas pixels.
66
+ - Layers are listed bottom → top in `photo.json`, but `doc summary` and `layer list` print them top → bottom.
@@ -0,0 +1,129 @@
1
+ # Recipes: complete documents
2
+
3
+ Each document below passed `doc validate` with no warning, `check` with no issue, and was rendered and looked at. They use the built-in sample photos (`library:<id>`) so they render anywhere; for the user's photo, replace `src` with the project path (`assets/images/<file>`) and the canvas / layer size with the photo's size (`info` shows it).
4
+
5
+ Apply one to a project (replaces the whole document: `--dry-run` first, `--yes` after the user agreed if it removes layers), then render:
6
+
7
+ ```bash
8
+ npx -y @fleox/agentphoto@0.1.0 doc apply --file recipe.json --dry-run --project my-photo --json
9
+ npx -y @fleox/agentphoto@0.1.0 doc apply --file recipe.json --yes --project my-photo --json
10
+ npx -y @fleox/agentphoto@0.1.0 render --project my-photo --compare --json
11
+ ```
12
+
13
+ On an existing project, prefer adding the same layers and filters with `layer add` / `filter add` / `doc patch`: the user's other layers stay.
14
+
15
+ ## 1. Colour correction (flat, dull photo)
16
+
17
+ Levels set the black and white points from `analyze` `range`, a gentle S-curve adds midtone contrast, a slight warm shift and vibrance bring the food back. Sharpening stays on the photo layer (detail filters belong to the pixels, not to the grade).
18
+
19
+ ```json
20
+ {
21
+ "version": 1,
22
+ "id": "burger",
23
+ "title": "Colour-corrected food photo",
24
+ "canvas": { "width": 1600, "height": 1067 },
25
+ "layers": [
26
+ { "id": "photo", "type": "image", "src": "library:food", "x": 0, "y": 0, "width": 1600, "height": 1067,
27
+ "filters": [{ "type": "sharpen", "amount": 60, "radius": 1, "threshold": 4 }] },
28
+ { "id": "correct", "type": "adjustment", "name": "Colour correction", "filters": [
29
+ { "type": "levels", "black": 28, "white": 235, "gamma": 1.05 },
30
+ { "type": "curves", "rgb": [[0, 0], [64, 54], [192, 204], [255, 255]] },
31
+ { "type": "temperature", "temperature": 10 },
32
+ { "type": "vibrance", "vibrance": 20 }
33
+ ] }
34
+ ]
35
+ }
36
+ ```
37
+
38
+ ## 2. Portrait retouch
39
+
40
+ `skin` is a copy of the photo masked to the skin (`mask generate photo --method points --target copy --copy-id skin`, which writes `assets/masks/skin-points.png`), smoothed with an edge-preserving `surfaceBlur` at 70 %. The `grade` adjustment layer opens the shadows, warms slightly, adds a little clarity and vibrance; a soft vignette keeps the eye on the face. Zoom on the face at 1:1 (`render --zoom`) before showing the user.
41
+
42
+ ```json
43
+ {
44
+ "version": 1,
45
+ "id": "portrait",
46
+ "title": "Portrait retouch",
47
+ "canvas": { "width": 1600, "height": 1068 },
48
+ "layers": [
49
+ { "id": "photo", "type": "image", "src": "library:portrait", "x": 0, "y": 0, "width": 1600, "height": 1068 },
50
+ { "id": "skin", "type": "image", "name": "Skin (smoothed copy)", "src": "library:portrait", "x": 0, "y": 0, "width": 1600, "height": 1068,
51
+ "mask": { "src": "assets/masks/skin-points.png" },
52
+ "filters": [{ "type": "surfaceBlur", "radius": 10, "threshold": 20, "amount": 0.7 }] },
53
+ { "id": "grade", "type": "adjustment", "name": "Light and colour", "filters": [
54
+ { "type": "shadowsHighlights", "shadows": 30, "highlights": 25 },
55
+ { "type": "temperature", "temperature": 6 },
56
+ { "type": "clarity", "amount": 12 },
57
+ { "type": "vibrance", "vibrance": 18 }
58
+ ] },
59
+ { "id": "vignette", "type": "adjustment", "filters": [{ "type": "vignette", "amount": 25, "size": 60 }] }
60
+ ]
61
+ }
62
+ ```
63
+
64
+ ## 3. Black and white with grain
65
+
66
+ The `grayscale` channel weights decide which colours become light (more red = brighter skin and brick, less blue = darker sky); the curve deepens blacks without clipping, monochrome `noise` adds film grain, the vignette closes the frame.
67
+
68
+ ```json
69
+ {
70
+ "version": 1,
71
+ "id": "street-bw",
72
+ "title": "Black and white street photo",
73
+ "canvas": { "width": 1600, "height": 1067 },
74
+ "layers": [
75
+ { "id": "photo", "type": "image", "src": "library:city", "x": 0, "y": 0, "width": 1600, "height": 1067 },
76
+ { "id": "bw", "type": "adjustment", "name": "B&W", "filters": [
77
+ { "type": "grayscale", "red": 40, "green": 45, "blue": 15 },
78
+ { "type": "curves", "rgb": [[0, 8], [70, 58], [190, 205], [255, 250]] },
79
+ { "type": "clarity", "amount": 20 },
80
+ { "type": "noise", "amount": 6, "monochrome": true },
81
+ { "type": "vignette", "amount": 35 }
82
+ ] }
83
+ ]
84
+ }
85
+ ```
86
+
87
+ ## 4. Background blur (portrait mode)
88
+
89
+ `bg` is a copy of the photo with the **inverted** subject mask (`mask generate photo --method subject --invert --target copy --copy-id bg`) and a `blur`: only the background behind the subject softens. Fluffy edges (fur, hair) keep a soft transition; lower `radius` if a halo shows around the subject.
90
+
91
+ ```json
92
+ {
93
+ "version": 1,
94
+ "id": "cat-portrait-mode",
95
+ "title": "Background blur (portrait mode)",
96
+ "canvas": { "width": 1600, "height": 1067 },
97
+ "layers": [
98
+ { "id": "photo", "type": "image", "src": "library:pet", "x": 0, "y": 0, "width": 1600, "height": 1067 },
99
+ { "id": "bg", "type": "image", "name": "Background (blurred copy)", "src": "library:pet", "x": 0, "y": 0, "width": 1600, "height": 1067,
100
+ "mask": { "src": "assets/masks/bg-subject.png", "invert": true },
101
+ "filters": [{ "type": "blur", "radius": 14 }] },
102
+ { "id": "grade", "type": "adjustment", "filters": [
103
+ { "type": "vibrance", "vibrance": 30 },
104
+ { "type": "look", "look": "warm", "amount": 0.5 }
105
+ ] }
106
+ ]
107
+ }
108
+ ```
109
+
110
+ ## 5. Square post with a caption
111
+
112
+ A landscape photo filling a square with `fit: "cover"` (`focus` chooses what stays in the frame), a golden-hour look, a fill layer with a transparent-to-dark gradient for text contrast, a serif title and a small credit. Text `y` + lines × `size` × `lineHeight` must stay inside the canvas.
113
+
114
+ ```json
115
+ {
116
+ "version": 1,
117
+ "id": "lake-post",
118
+ "title": "Square post with a caption",
119
+ "canvas": { "width": 1080, "height": 1080, "background": "#0b1320" },
120
+ "layers": [
121
+ { "id": "photo", "type": "image", "src": "library:landscape", "x": 0, "y": 0, "width": 1080, "height": 1080, "fit": "cover", "focus": [0.55, 0.5],
122
+ "filters": [{ "type": "look", "look": "golden-hour", "amount": 0.6 }] },
123
+ { "id": "shade", "type": "fill", "fill": { "type": "linear", "angle": 90, "stops": [[0, "rgba(11,19,32,0)"], [0.55, "rgba(11,19,32,0)"], [1, "rgba(11,19,32,0.85)"]] } },
124
+ { "id": "title", "type": "text", "text": "Slow mornings\nat the lake", "x": 72, "y": 800, "width": 936, "font": "playfair", "size": 84, "weight": 700, "lineHeight": 1.05, "color": "#ffffff",
125
+ "effects": { "dropShadow": { "opacity": 0.4, "blur": 18, "distance": 4 } } },
126
+ { "id": "credit", "type": "text", "text": "@yourname", "x": 72, "y": 1000, "font": "inter", "size": 26, "weight": 600, "letterSpacing": 1, "color": "rgba(255,255,255,0.8)" }
127
+ ]
128
+ }
129
+ ```
@@ -0,0 +1,13 @@
1
+ {
2
+ "version": 1,
3
+ "id": "avatar-pro",
4
+ "title": "Professional avatar",
5
+ "canvas": { "width": 800, "height": 800, "background": null },
6
+ "export": { "format": "png" },
7
+ "layers": [
8
+ { "id": "frame", "type": "group", "name": "Round frame", "mask": { "shape": "ellipse", "x": 0, "y": 0, "width": 800, "height": 800 }, "children": [
9
+ { "id": "backdrop", "type": "fill", "name": "Backdrop", "fill": { "type": "radial", "stops": ["#cfe3ff", "#6f8fd8"], "cy": 0.35 } },
10
+ { "id": "photo", "type": "image", "name": "Portrait", "src": "library:portrait", "x": 0, "y": 0, "width": 800, "height": 800, "fit": "cover", "focus": [0.5, 0.25], "mask": { "src": "assets/masks/photo-cutout.png" }, "filters": [{ "type": "surfaceBlur", "radius": 4, "threshold": 12, "amount": 0.5 }, { "type": "shadowsHighlights", "shadows": 20 }, { "type": "vibrance", "vibrance": 15 }] }
11
+ ] }
12
+ ]
13
+ }
Binary file
@@ -0,0 +1 @@
1
+ { "id": "avatar-pro", "title": "Professional avatar", "description": "Round profile picture: subject cut out (run remove_background) on a soft brand-colour backdrop, gently retouched.", "category": "portrait", "tags": ["avatar", "linkedin", "profile", "portrait", "cutout"], "width": 800, "height": 800, "slot": "photo" }
@@ -0,0 +1,13 @@
1
+ {
2
+ "version": 1,
3
+ "id": "og-article",
4
+ "title": "Article link preview",
5
+ "canvas": { "width": 1200, "height": 630, "background": "#0f172a" },
6
+ "layers": [
7
+ { "id": "photo", "type": "image", "name": "Photo", "src": "library:city", "x": 480, "y": 0, "width": 720, "height": 630, "fit": "cover", "mask": { "gradient": { "type": "linear", "angle": 0, "stops": [[0, "#000000"], [0.45, "#ffffff"]] } }, "filters": [{ "type": "look", "look": "cool", "amount": 0.6 }] },
8
+ { "id": "site", "type": "text", "name": "Site", "text": "YOURBLOG.COM", "x": 72, "y": 80, "font": "inter", "weight": 700, "size": 24, "letterSpacing": 4, "color": "#38bdf8" },
9
+ { "id": "title", "type": "text", "name": "Headline", "text": "10 hidden streets every visitor should walk", "x": 72, "y": 150, "width": 560, "font": "inter", "weight": 800, "size": 60, "lineHeight": 1.1, "color": "#ffffff" },
10
+ { "id": "meta", "type": "text", "name": "Meta", "text": "6 min read", "x": 72, "y": 520, "font": "inter", "size": 26, "color": "#94a3b8" },
11
+ { "id": "accent", "type": "shape", "name": "Accent", "shape": "rect", "x": 72, "y": 126, "width": 64, "height": 6, "radius": 3, "fill": "#38bdf8" }
12
+ ]
13
+ }
Binary file
@@ -0,0 +1 @@
1
+ { "id": "og-article", "title": "Article link preview", "description": "1200×630 Open Graph card: photo on the right fading into a solid panel, headline and site name on the left.", "category": "web", "tags": ["og", "blog", "link", "social"], "width": 1200, "height": 630, "slot": "photo" }
@@ -0,0 +1,13 @@
1
+ {
2
+ "version": 1,
3
+ "id": "polaroid",
4
+ "title": "Polaroid memory",
5
+ "canvas": { "width": 1080, "height": 1350, "background": { "type": "linear", "angle": 60, "stops": ["#f3e9dc", "#e6d5c3"] } },
6
+ "layers": [
7
+ { "id": "card", "type": "group", "name": "Card", "children": [
8
+ { "id": "paper", "type": "shape", "name": "Paper", "shape": "rect", "x": 150, "y": 170, "width": 780, "height": 940, "fill": "#fdfcf8", "rotation": -4, "effects": { "dropShadow": { "opacity": 0.3, "blur": 40, "distance": 22 } } },
9
+ { "id": "photo", "type": "image", "name": "Photo", "src": "library:pet", "x": 196, "y": 214, "width": 688, "height": 688, "fit": "cover", "rotation": -4, "filters": [{ "type": "look", "look": "polaroid" }, { "type": "vignette", "amount": 25 }] },
10
+ { "id": "caption", "type": "text", "name": "Caption", "text": "best buddy ♥", "x": 196, "y": 950, "width": 688, "align": "center", "font": "caveat", "weight": 700, "size": 84, "color": "#2b2b2b", "rotation": -4 }
11
+ ] }
12
+ ]
13
+ }
Binary file
@@ -0,0 +1 @@
1
+ { "id": "polaroid", "title": "Polaroid memory", "description": "Instant-photo card tilted on a warm paper background, vintage look and a handwritten caption.", "category": "social", "tags": ["polaroid", "vintage", "memory", "handwriting"], "width": 1080, "height": 1350, "slot": "photo" }
@@ -0,0 +1,72 @@
1
+ {
2
+ "version": 1,
3
+ "id": "product-white",
4
+ "title": "Product on white",
5
+ "canvas": {
6
+ "width": 2000,
7
+ "height": 2000,
8
+ "background": {
9
+ "type": "radial",
10
+ "stops": [
11
+ "#ffffff",
12
+ "#eef0f3"
13
+ ],
14
+ "cy": 0.45,
15
+ "radius": 1.1
16
+ }
17
+ },
18
+ "layers": [
19
+ {
20
+ "id": "floor-shadow",
21
+ "type": "shape",
22
+ "name": "Floor shadow",
23
+ "shape": "ellipse",
24
+ "x": 600,
25
+ "y": 1240,
26
+ "width": 800,
27
+ "height": 70,
28
+ "fill": "rgba(0,0,0,0.28)",
29
+ "filters": [
30
+ {
31
+ "type": "blur",
32
+ "radius": 40
33
+ }
34
+ ]
35
+ },
36
+ {
37
+ "id": "photo",
38
+ "type": "image",
39
+ "name": "Product",
40
+ "src": "library:product",
41
+ "x": 400,
42
+ "y": 360,
43
+ "effects": {
44
+ "dropShadow": {
45
+ "opacity": 0.18,
46
+ "angle": 90,
47
+ "distance": 10,
48
+ "blur": 18
49
+ }
50
+ },
51
+ "width": 1200,
52
+ "height": 1200,
53
+ "fit": "contain",
54
+ "mask": {
55
+ "src": "assets/masks/photo-cutout.png"
56
+ },
57
+ "filters": [
58
+ {
59
+ "type": "look",
60
+ "look": "clean",
61
+ "amount": 0.7
62
+ }
63
+ ],
64
+ "crop": {
65
+ "x": 800,
66
+ "y": 150,
67
+ "width": 640,
68
+ "height": 640
69
+ }
70
+ }
71
+ ]
72
+ }
@@ -0,0 +1 @@
1
+ { "id": "product-white", "title": "Product on white", "description": "E-commerce square: product cut out (run remove_background on the photo layer), centred on a soft white backdrop with a contact shadow.", "category": "product", "tags": ["ecommerce", "packshot", "cutout", "white"], "width": 2000, "height": 2000, "slot": "photo" }
@@ -0,0 +1,125 @@
1
+ {
2
+ "version": 1,
3
+ "id": "sale-banner",
4
+ "title": "Sale banner",
5
+ "canvas": {
6
+ "width": 1920,
7
+ "height": 600,
8
+ "background": {
9
+ "type": "linear",
10
+ "angle": 0,
11
+ "stops": [
12
+ "#ff5f6d",
13
+ "#ffc371"
14
+ ]
15
+ }
16
+ },
17
+ "layers": [
18
+ {
19
+ "id": "photo",
20
+ "type": "image",
21
+ "name": "Photo",
22
+ "src": "library:product",
23
+ "x": 900,
24
+ "y": 0,
25
+ "width": 1020,
26
+ "height": 600,
27
+ "fit": "cover",
28
+ "mask": {
29
+ "gradient": {
30
+ "type": "linear",
31
+ "angle": 0,
32
+ "stops": [
33
+ [
34
+ 0,
35
+ "#000000"
36
+ ],
37
+ [
38
+ 0.35,
39
+ "#ffffff"
40
+ ]
41
+ ]
42
+ }
43
+ }
44
+ },
45
+ {
46
+ "id": "title",
47
+ "type": "text",
48
+ "name": "Title",
49
+ "text": "SUMMER SALE",
50
+ "x": 110,
51
+ "y": 120,
52
+ "font": "anton",
53
+ "size": 128,
54
+ "letterSpacing": 2,
55
+ "color": "#ffffff",
56
+ "effects": {
57
+ "dropShadow": {
58
+ "opacity": 0.25,
59
+ "blur": 0,
60
+ "distance": 8
61
+ }
62
+ }
63
+ },
64
+ {
65
+ "id": "subtitle",
66
+ "type": "text",
67
+ "name": "Subtitle",
68
+ "text": "Up to 40% off everything — this week only",
69
+ "x": 116,
70
+ "y": 330,
71
+ "font": "poppins",
72
+ "weight": 600,
73
+ "size": 40,
74
+ "color": "#3b0a14"
75
+ },
76
+ {
77
+ "id": "badge",
78
+ "type": "shape",
79
+ "name": "Badge",
80
+ "shape": "star",
81
+ "sides": 14,
82
+ "innerRadius": 0.82,
83
+ "x": 900,
84
+ "y": 50,
85
+ "width": 200,
86
+ "height": 200,
87
+ "fill": "#3b0a14",
88
+ "rotation": 12
89
+ },
90
+ {
91
+ "id": "badge-text",
92
+ "type": "text",
93
+ "name": "Badge text",
94
+ "text": "-40%",
95
+ "x": 900,
96
+ "y": 118,
97
+ "width": 200,
98
+ "align": "center",
99
+ "font": "archivo-black",
100
+ "size": 54,
101
+ "color": "#ffc371",
102
+ "rotation": 12
103
+ },
104
+ {
105
+ "id": "cta",
106
+ "type": "text",
107
+ "name": "Button",
108
+ "text": "Shop now",
109
+ "x": 120,
110
+ "y": 440,
111
+ "font": "poppins",
112
+ "weight": 700,
113
+ "size": 34,
114
+ "color": "#ffffff",
115
+ "background": {
116
+ "color": "#3b0a14",
117
+ "padding": [
118
+ 34,
119
+ 18
120
+ ],
121
+ "radius": 40
122
+ }
123
+ }
124
+ ]
125
+ }
@@ -0,0 +1 @@
1
+ { "id": "sale-banner", "title": "Sale banner", "description": "Wide web hero banner: gradient background, photo fading in from the right, big discount and a starburst badge.", "category": "ad", "tags": ["banner", "sale", "ecommerce", "hero"], "width": 1920, "height": 600, "slot": "photo" }
@@ -0,0 +1,13 @@
1
+ {
2
+ "version": 1,
3
+ "id": "social-quote",
4
+ "title": "Quote post",
5
+ "canvas": { "width": 1080, "height": 1080, "background": "#111111" },
6
+ "layers": [
7
+ { "id": "photo", "type": "image", "name": "Photo", "src": "library:landscape", "x": 0, "y": 0, "width": 1080, "height": 1080, "fit": "cover", "filters": [{ "type": "blur", "radius": 3 }, { "type": "look", "look": "matte", "amount": 0.8 }] },
8
+ { "id": "shade", "type": "fill", "name": "Shade", "fill": { "type": "linear", "angle": 90, "stops": [[0, "rgba(10,10,14,0.25)"], [1, "rgba(10,10,14,0.75)"]] } },
9
+ { "id": "quote-mark", "type": "text", "name": "Quote mark", "text": "“", "x": 90, "y": 170, "font": "playfair", "weight": 700, "size": 260, "color": "#f4d58d", "opacity": 0.9 },
10
+ { "id": "quote", "type": "text", "name": "Quote", "text": "The best view comes after the hardest climb.", "x": 120, "y": 420, "width": 840, "font": "playfair", "size": 76, "lineHeight": 1.15, "color": "#ffffff" },
11
+ { "id": "author", "type": "text", "name": "Author", "text": "— Anonymous", "x": 124, "y": 820, "font": "inter", "weight": 600, "size": 34, "letterSpacing": 1, "color": "#f4d58d" }
12
+ ]
13
+ }
@@ -0,0 +1 @@
1
+ { "id": "social-quote", "title": "Quote post", "description": "Square post: photo in the background, darkened and softened, with an elegant serif quote and author.", "category": "social", "tags": ["instagram", "quote", "square", "serif"], "width": 1080, "height": 1080, "slot": "photo" }
@@ -0,0 +1,13 @@
1
+ {
2
+ "version": 1,
3
+ "id": "story-promo",
4
+ "title": "Story promo",
5
+ "canvas": { "width": 1080, "height": 1920, "background": "#000000" },
6
+ "layers": [
7
+ { "id": "photo", "type": "image", "name": "Photo", "src": "library:food", "x": 0, "y": 0, "width": 1080, "height": 1920, "fit": "cover", "filters": [{ "type": "vibrance", "vibrance": 25 }, { "type": "look", "look": "golden-hour", "amount": 0.6 }] },
8
+ { "id": "fade", "type": "fill", "name": "Bottom fade", "fill": { "type": "linear", "angle": 90, "stops": [[0.45, "rgba(0,0,0,0)"], [1, "rgba(0,0,0,0.85)"]] } },
9
+ { "id": "tag", "type": "text", "name": "Tag", "text": "NEW ON THE MENU", "x": 90, "y": 1180, "font": "montserrat", "weight": 800, "size": 36, "letterSpacing": 4, "color": "#ffd166" },
10
+ { "id": "title", "type": "text", "name": "Title", "text": "Fresh & homemade", "x": 86, "y": 1240, "width": 900, "font": "lobster", "size": 150, "lineHeight": 1.05, "color": "#ffffff", "effects": { "dropShadow": { "opacity": 0.5, "blur": 24, "distance": 6 } } },
11
+ { "id": "cta", "type": "text", "name": "Call to action", "text": "Order now →", "x": 90, "y": 1660, "font": "poppins", "weight": 700, "size": 46, "color": "#1a1a1a", "background": { "color": "#ffffff", "padding": [40, 22], "radius": 60 } }
12
+ ]
13
+ }
@@ -0,0 +1 @@
1
+ { "id": "story-promo", "title": "Story promo", "description": "9:16 story / reel cover: full-bleed photo, dark gradient at the bottom, big title and a call-to-action pill.", "category": "social", "tags": ["story", "reel", "tiktok", "vertical", "promo"], "width": 1080, "height": 1920, "slot": "photo" }
@@ -0,0 +1,12 @@
1
+ {
2
+ "version": 1,
3
+ "id": "youtube-thumbnail",
4
+ "title": "YouTube thumbnail",
5
+ "canvas": { "width": 1280, "height": 720, "background": { "type": "linear", "angle": 20, "stops": ["#12082e", "#5b2bd6", "#ff4f81"] } },
6
+ "layers": [
7
+ { "id": "glow", "type": "shape", "name": "Glow", "shape": "ellipse", "x": 640, "y": 40, "width": 640, "height": 640, "fill": { "type": "radial", "stops": [[0, "rgba(255,214,102,0.55)"], [1, "rgba(255,214,102,0)"]] } },
8
+ { "id": "photo", "type": "image", "name": "Subject", "src": "library:portrait", "x": 700, "y": 60, "width": 560, "height": 660, "fit": "cover", "focus": [0.5, 0.3], "filters": [{ "type": "vibrance", "vibrance": 30 }, { "type": "clarity", "amount": 25 }], "effects": { "stroke": { "color": "#ffffff", "width": 10 }, "dropShadow": { "opacity": 0.55, "blur": 30, "distance": 16 } } },
9
+ { "id": "title", "type": "text", "name": "Title", "text": "I tried it\nfor 30 days", "x": 60, "y": 150, "width": 680, "font": "bebas-neue", "size": 150, "lineHeight": 0.95, "color": "#ffffff", "effects": { "stroke": { "color": "#12082e", "width": 8 }, "dropShadow": { "opacity": 0.6, "blur": 0, "distance": 10, "angle": 135 } } },
10
+ { "id": "kicker", "type": "text", "name": "Kicker", "text": "HONEST REVIEW", "x": 64, "y": 470, "font": "montserrat", "weight": 800, "size": 44, "letterSpacing": 2, "color": "#12082e", "background": { "color": "#ffd166", "padding": [18, 10], "radius": 8 }, "rotation": -3 }
11
+ ]
12
+ }
@@ -0,0 +1 @@
1
+ { "id": "youtube-thumbnail", "title": "YouTube thumbnail", "description": "Bold 16:9 thumbnail: big condensed title, subject with a white outline (run remove_background on the photo layer for a cut-out), punchy gradient.", "category": "thumbnail", "tags": ["youtube", "video", "cutout", "bold"], "width": 1280, "height": 720, "slot": "photo" }