@fleox/agentphoto 0.0.0-stage → 0.1.1
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.
- package/LICENSE +143 -0
- package/README.md +334 -2
- package/changelog.json +35 -0
- package/dist/agent/agentphoto.mjs +3354 -0
- package/dist/agent/chunks/assets-BZVUUHjg.mjs +151 -0
- package/dist/agent/chunks/catalog-DIZ5dnH5.mjs +953 -0
- package/dist/agent/chunks/context-CNpRboiC.mjs +75 -0
- package/dist/agent/chunks/doc-D_v_yE07.mjs +512 -0
- package/dist/agent/chunks/export-aNJcPNbJ.mjs +140 -0
- package/dist/agent/chunks/geometry-BKIhUO9x.mjs +315 -0
- package/dist/agent/chunks/ids-DAmiNwd9.mjs +28 -0
- package/dist/agent/chunks/imageInfo-QxAfu8R6.mjs +173 -0
- package/dist/agent/chunks/jsonPath-B7vAPXsi.mjs +155 -0
- package/dist/agent/chunks/library-C_EXiphj.mjs +16 -0
- package/dist/agent/chunks/models-CxrjmA0W.mjs +387 -0
- package/dist/agent/chunks/output-3F12IR9O.mjs +130 -0
- package/dist/agent/chunks/package-Cu1GyvKL.mjs +71 -0
- package/dist/agent/chunks/project-o1DH2nOw.mjs +200 -0
- package/dist/agent/chunks/rolldown-runtime-CMQPkI6i.mjs +18 -0
- package/dist/agent/chunks/server-I0trf5tM.mjs +241 -0
- package/dist/agent/chunks/templates-BJ2me4XZ.mjs +61 -0
- package/dist/agent/chunks/tools-DKaAPEV5.mjs +1419 -0
- package/dist/agent/chunks/tree-D8qZKPAb.mjs +127 -0
- package/dist/agent/chunks/types-DOK7tAAu.mjs +30 -0
- package/dist/agent/chunks/validate-CXPFB-i6.mjs +936 -0
- package/dist/engine/agentphoto-engine.js +2833 -0
- package/dist/engine/chunks/transformers.web-D5Vsg6-A.js +18494 -0
- package/dist/engine/ort/ort-wasm-simd-threaded.asyncify.mjs +124 -0
- package/dist/engine/ort/ort-wasm-simd-threaded.asyncify.wasm +0 -0
- package/dist/studio/assets/index-CmOzzoXv.css +1 -0
- package/dist/studio/assets/index-D3Iw5q8v.js +28 -0
- package/dist/studio/assets/transformers.web-osEqoMhg.js +38 -0
- package/dist/studio/index.html +15 -0
- package/dist/studio/library/LICENSES.md +57 -0
- package/dist/studio/library/fonts/OFL.txt +90 -0
- package/dist/studio/library/fonts/anton/anton-latin-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/anton/anton-latin-ext-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/archivo-black/archivo-black-latin-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/archivo-black/archivo-black-latin-ext-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/bebas-neue/bebas-neue-latin-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/bebas-neue/bebas-neue-latin-ext-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/caveat/caveat-latin-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/caveat/caveat-latin-700-normal.woff2 +0 -0
- package/dist/studio/library/fonts/caveat/caveat-latin-ext-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/caveat/caveat-latin-ext-700-normal.woff2 +0 -0
- package/dist/studio/library/fonts/dm-serif/dm-serif-display-latin-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/dm-serif/dm-serif-display-latin-ext-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/inter/inter-latin-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/inter/inter-latin-600-normal.woff2 +0 -0
- package/dist/studio/library/fonts/inter/inter-latin-700-normal.woff2 +0 -0
- package/dist/studio/library/fonts/inter/inter-latin-800-normal.woff2 +0 -0
- package/dist/studio/library/fonts/inter/inter-latin-ext-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/inter/inter-latin-ext-600-normal.woff2 +0 -0
- package/dist/studio/library/fonts/inter/inter-latin-ext-700-normal.woff2 +0 -0
- package/dist/studio/library/fonts/inter/inter-latin-ext-800-normal.woff2 +0 -0
- package/dist/studio/library/fonts/jetbrains-mono/jetbrains-mono-latin-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/jetbrains-mono/jetbrains-mono-latin-700-normal.woff2 +0 -0
- package/dist/studio/library/fonts/jetbrains-mono/jetbrains-mono-latin-ext-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/jetbrains-mono/jetbrains-mono-latin-ext-700-normal.woff2 +0 -0
- package/dist/studio/library/fonts/lobster/lobster-latin-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/lobster/lobster-latin-ext-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/montserrat/montserrat-latin-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/montserrat/montserrat-latin-700-normal.woff2 +0 -0
- package/dist/studio/library/fonts/montserrat/montserrat-latin-800-normal.woff2 +0 -0
- package/dist/studio/library/fonts/montserrat/montserrat-latin-ext-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/montserrat/montserrat-latin-ext-700-normal.woff2 +0 -0
- package/dist/studio/library/fonts/montserrat/montserrat-latin-ext-800-normal.woff2 +0 -0
- package/dist/studio/library/fonts/oswald/oswald-latin-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/oswald/oswald-latin-600-normal.woff2 +0 -0
- package/dist/studio/library/fonts/oswald/oswald-latin-ext-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/oswald/oswald-latin-ext-600-normal.woff2 +0 -0
- package/dist/studio/library/fonts/pacifico/pacifico-latin-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/pacifico/pacifico-latin-ext-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/playfair/playfair-display-latin-400-italic.woff2 +0 -0
- package/dist/studio/library/fonts/playfair/playfair-display-latin-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/playfair/playfair-display-latin-700-normal.woff2 +0 -0
- package/dist/studio/library/fonts/playfair/playfair-display-latin-ext-400-italic.woff2 +0 -0
- package/dist/studio/library/fonts/playfair/playfair-display-latin-ext-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/playfair/playfair-display-latin-ext-700-normal.woff2 +0 -0
- package/dist/studio/library/fonts/poppins/poppins-latin-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/poppins/poppins-latin-600-normal.woff2 +0 -0
- package/dist/studio/library/fonts/poppins/poppins-latin-700-normal.woff2 +0 -0
- package/dist/studio/library/fonts/poppins/poppins-latin-ext-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/poppins/poppins-latin-ext-600-normal.woff2 +0 -0
- package/dist/studio/library/fonts/poppins/poppins-latin-ext-700-normal.woff2 +0 -0
- package/dist/studio/library/fonts/roboto-slab/LICENSE.txt +202 -0
- package/dist/studio/library/fonts/roboto-slab/roboto-slab-latin-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/roboto-slab/roboto-slab-latin-700-normal.woff2 +0 -0
- package/dist/studio/library/fonts/roboto-slab/roboto-slab-latin-ext-400-normal.woff2 +0 -0
- package/dist/studio/library/fonts/roboto-slab/roboto-slab-latin-ext-700-normal.woff2 +0 -0
- package/dist/studio/library/fonts/space-grotesk/space-grotesk-latin-500-normal.woff2 +0 -0
- package/dist/studio/library/fonts/space-grotesk/space-grotesk-latin-700-normal.woff2 +0 -0
- package/dist/studio/library/fonts/space-grotesk/space-grotesk-latin-ext-500-normal.woff2 +0 -0
- package/dist/studio/library/fonts/space-grotesk/space-grotesk-latin-ext-700-normal.woff2 +0 -0
- package/dist/studio/library/images/city.jpg +0 -0
- package/dist/studio/library/images/food.jpg +0 -0
- package/dist/studio/library/images/landscape.jpg +0 -0
- package/dist/studio/library/images/pet.jpg +0 -0
- package/dist/studio/library/images/portrait.jpg +0 -0
- package/dist/studio/library/images/product.jpg +0 -0
- package/dist/studio/library/index.json +752 -0
- package/dist/studio/templates/avatar-pro/assets/masks/photo-cutout.png +0 -0
- package/dist/studio/templates/avatar-pro/photo.json +13 -0
- package/dist/studio/templates/avatar-pro/preview.jpg +0 -0
- package/dist/studio/templates/avatar-pro/template.json +1 -0
- package/dist/studio/templates/index.json +1 -0
- package/dist/studio/templates/og-article/photo.json +13 -0
- package/dist/studio/templates/og-article/preview.jpg +0 -0
- package/dist/studio/templates/og-article/template.json +1 -0
- package/dist/studio/templates/polaroid/photo.json +13 -0
- package/dist/studio/templates/polaroid/preview.jpg +0 -0
- package/dist/studio/templates/polaroid/template.json +1 -0
- package/dist/studio/templates/product-white/assets/masks/photo-cutout.png +0 -0
- package/dist/studio/templates/product-white/photo.json +72 -0
- package/dist/studio/templates/product-white/preview.jpg +0 -0
- package/dist/studio/templates/product-white/template.json +1 -0
- package/dist/studio/templates/sale-banner/photo.json +125 -0
- package/dist/studio/templates/sale-banner/preview.jpg +0 -0
- package/dist/studio/templates/sale-banner/template.json +1 -0
- package/dist/studio/templates/social-quote/photo.json +13 -0
- package/dist/studio/templates/social-quote/preview.jpg +0 -0
- package/dist/studio/templates/social-quote/template.json +1 -0
- package/dist/studio/templates/story-promo/photo.json +13 -0
- package/dist/studio/templates/story-promo/preview.jpg +0 -0
- package/dist/studio/templates/story-promo/template.json +1 -0
- package/dist/studio/templates/youtube-thumbnail/photo.json +12 -0
- package/dist/studio/templates/youtube-thumbnail/preview.jpg +0 -0
- package/dist/studio/templates/youtube-thumbnail/template.json +1 -0
- package/library/LICENSES.md +57 -0
- package/library/fonts/OFL.txt +90 -0
- package/library/fonts/anton/anton-latin-400-normal.woff2 +0 -0
- package/library/fonts/anton/anton-latin-ext-400-normal.woff2 +0 -0
- package/library/fonts/archivo-black/archivo-black-latin-400-normal.woff2 +0 -0
- package/library/fonts/archivo-black/archivo-black-latin-ext-400-normal.woff2 +0 -0
- package/library/fonts/bebas-neue/bebas-neue-latin-400-normal.woff2 +0 -0
- package/library/fonts/bebas-neue/bebas-neue-latin-ext-400-normal.woff2 +0 -0
- package/library/fonts/caveat/caveat-latin-400-normal.woff2 +0 -0
- package/library/fonts/caveat/caveat-latin-700-normal.woff2 +0 -0
- package/library/fonts/caveat/caveat-latin-ext-400-normal.woff2 +0 -0
- package/library/fonts/caveat/caveat-latin-ext-700-normal.woff2 +0 -0
- package/library/fonts/dm-serif/dm-serif-display-latin-400-normal.woff2 +0 -0
- package/library/fonts/dm-serif/dm-serif-display-latin-ext-400-normal.woff2 +0 -0
- package/library/fonts/inter/inter-latin-400-normal.woff2 +0 -0
- package/library/fonts/inter/inter-latin-600-normal.woff2 +0 -0
- package/library/fonts/inter/inter-latin-700-normal.woff2 +0 -0
- package/library/fonts/inter/inter-latin-800-normal.woff2 +0 -0
- package/library/fonts/inter/inter-latin-ext-400-normal.woff2 +0 -0
- package/library/fonts/inter/inter-latin-ext-600-normal.woff2 +0 -0
- package/library/fonts/inter/inter-latin-ext-700-normal.woff2 +0 -0
- package/library/fonts/inter/inter-latin-ext-800-normal.woff2 +0 -0
- package/library/fonts/jetbrains-mono/jetbrains-mono-latin-400-normal.woff2 +0 -0
- package/library/fonts/jetbrains-mono/jetbrains-mono-latin-700-normal.woff2 +0 -0
- package/library/fonts/jetbrains-mono/jetbrains-mono-latin-ext-400-normal.woff2 +0 -0
- package/library/fonts/jetbrains-mono/jetbrains-mono-latin-ext-700-normal.woff2 +0 -0
- package/library/fonts/lobster/lobster-latin-400-normal.woff2 +0 -0
- package/library/fonts/lobster/lobster-latin-ext-400-normal.woff2 +0 -0
- package/library/fonts/montserrat/montserrat-latin-400-normal.woff2 +0 -0
- package/library/fonts/montserrat/montserrat-latin-700-normal.woff2 +0 -0
- package/library/fonts/montserrat/montserrat-latin-800-normal.woff2 +0 -0
- package/library/fonts/montserrat/montserrat-latin-ext-400-normal.woff2 +0 -0
- package/library/fonts/montserrat/montserrat-latin-ext-700-normal.woff2 +0 -0
- package/library/fonts/montserrat/montserrat-latin-ext-800-normal.woff2 +0 -0
- package/library/fonts/oswald/oswald-latin-400-normal.woff2 +0 -0
- package/library/fonts/oswald/oswald-latin-600-normal.woff2 +0 -0
- package/library/fonts/oswald/oswald-latin-ext-400-normal.woff2 +0 -0
- package/library/fonts/oswald/oswald-latin-ext-600-normal.woff2 +0 -0
- package/library/fonts/pacifico/pacifico-latin-400-normal.woff2 +0 -0
- package/library/fonts/pacifico/pacifico-latin-ext-400-normal.woff2 +0 -0
- package/library/fonts/playfair/playfair-display-latin-400-italic.woff2 +0 -0
- package/library/fonts/playfair/playfair-display-latin-400-normal.woff2 +0 -0
- package/library/fonts/playfair/playfair-display-latin-700-normal.woff2 +0 -0
- package/library/fonts/playfair/playfair-display-latin-ext-400-italic.woff2 +0 -0
- package/library/fonts/playfair/playfair-display-latin-ext-400-normal.woff2 +0 -0
- package/library/fonts/playfair/playfair-display-latin-ext-700-normal.woff2 +0 -0
- package/library/fonts/poppins/poppins-latin-400-normal.woff2 +0 -0
- package/library/fonts/poppins/poppins-latin-600-normal.woff2 +0 -0
- package/library/fonts/poppins/poppins-latin-700-normal.woff2 +0 -0
- package/library/fonts/poppins/poppins-latin-ext-400-normal.woff2 +0 -0
- package/library/fonts/poppins/poppins-latin-ext-600-normal.woff2 +0 -0
- package/library/fonts/poppins/poppins-latin-ext-700-normal.woff2 +0 -0
- package/library/fonts/roboto-slab/LICENSE.txt +202 -0
- package/library/fonts/roboto-slab/roboto-slab-latin-400-normal.woff2 +0 -0
- package/library/fonts/roboto-slab/roboto-slab-latin-700-normal.woff2 +0 -0
- package/library/fonts/roboto-slab/roboto-slab-latin-ext-400-normal.woff2 +0 -0
- package/library/fonts/roboto-slab/roboto-slab-latin-ext-700-normal.woff2 +0 -0
- package/library/fonts/space-grotesk/space-grotesk-latin-500-normal.woff2 +0 -0
- package/library/fonts/space-grotesk/space-grotesk-latin-700-normal.woff2 +0 -0
- package/library/fonts/space-grotesk/space-grotesk-latin-ext-500-normal.woff2 +0 -0
- package/library/fonts/space-grotesk/space-grotesk-latin-ext-700-normal.woff2 +0 -0
- package/library/images/city.jpg +0 -0
- package/library/images/food.jpg +0 -0
- package/library/images/landscape.jpg +0 -0
- package/library/images/pet.jpg +0 -0
- package/library/images/portrait.jpg +0 -0
- package/library/images/product.jpg +0 -0
- package/library/index.json +752 -0
- package/package.json +65 -4
- package/plugin/.claude-plugin/plugin.json +19 -0
- package/plugin/skills/agentphoto-cutout/SKILL.md +137 -0
- package/plugin/skills/agentphoto-design/SKILL.md +104 -0
- package/plugin/skills/agentphoto-design/references/layouts.md +60 -0
- package/plugin/skills/agentphoto-publish/SKILL.md +79 -0
- package/plugin/skills/agentphoto-retouch/SKILL.md +144 -0
- package/plugin/skills/agentphoto-retouch/references/filters.md +51 -0
- package/plugin/skills/agentphoto-retouch/references/patch-ops.md +67 -0
- package/plugin/skills/agentphoto-retouch/references/recipes.md +129 -0
- package/templates/avatar-pro/assets/masks/photo-cutout.png +0 -0
- package/templates/avatar-pro/photo.json +13 -0
- package/templates/avatar-pro/preview.jpg +0 -0
- package/templates/avatar-pro/template.json +1 -0
- package/templates/og-article/photo.json +13 -0
- package/templates/og-article/preview.jpg +0 -0
- package/templates/og-article/template.json +1 -0
- package/templates/polaroid/photo.json +13 -0
- package/templates/polaroid/preview.jpg +0 -0
- package/templates/polaroid/template.json +1 -0
- package/templates/product-white/assets/masks/photo-cutout.png +0 -0
- package/templates/product-white/photo.json +72 -0
- package/templates/product-white/preview.jpg +0 -0
- package/templates/product-white/template.json +1 -0
- package/templates/sale-banner/photo.json +125 -0
- package/templates/sale-banner/preview.jpg +0 -0
- package/templates/sale-banner/template.json +1 -0
- package/templates/social-quote/photo.json +13 -0
- package/templates/social-quote/preview.jpg +0 -0
- package/templates/social-quote/template.json +1 -0
- package/templates/story-promo/photo.json +13 -0
- package/templates/story-promo/preview.jpg +0 -0
- package/templates/story-promo/template.json +1 -0
- package/templates/youtube-thumbnail/photo.json +12 -0
- package/templates/youtube-thumbnail/preview.jpg +0 -0
- package/templates/youtube-thumbnail/template.json +1 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
Copyright (c) 2026 AgentPhoto
|
|
2
|
+
|
|
3
|
+
This software is source-available under the PolyForm Noncommercial License 1.0.0
|
|
4
|
+
(reproduced in full below). Personal, hobbyist, educational, research, and other
|
|
5
|
+
noncommercial use is permitted free of charge.
|
|
6
|
+
|
|
7
|
+
Selling the software, hosting it as a paid service, or any other commercial use
|
|
8
|
+
requires explicit written authorization from the copyright holder. For commercial
|
|
9
|
+
licensing inquiries, open an issue at https://github.com/fleox/agentphoto
|
|
10
|
+
|
|
11
|
+
================================================================================
|
|
12
|
+
|
|
13
|
+
PolyForm Noncommercial License 1.0.0
|
|
14
|
+
|
|
15
|
+
<https://polyformproject.org/licenses/noncommercial/1.0.0>
|
|
16
|
+
|
|
17
|
+
## Acceptance
|
|
18
|
+
|
|
19
|
+
In order to get any license under these terms, you must agree
|
|
20
|
+
to them as both strict obligations and conditions to all
|
|
21
|
+
your licenses.
|
|
22
|
+
|
|
23
|
+
## Copyright License
|
|
24
|
+
|
|
25
|
+
The licensor grants you a copyright license for the
|
|
26
|
+
software to do everything you might do with the software
|
|
27
|
+
that would otherwise infringe the licensor's copyright
|
|
28
|
+
in it for any permitted purpose. However, you may
|
|
29
|
+
only distribute the software according to [Distribution
|
|
30
|
+
License](#distribution-license) and make changes or new works
|
|
31
|
+
based on the software according to [Changes and New Works
|
|
32
|
+
License](#changes-and-new-works-license).
|
|
33
|
+
|
|
34
|
+
## Distribution License
|
|
35
|
+
|
|
36
|
+
The licensor grants you an additional copyright license
|
|
37
|
+
to distribute copies of the software. Your license
|
|
38
|
+
to distribute covers distributing the software with
|
|
39
|
+
changes and new works permitted by [Changes and New Works
|
|
40
|
+
License](#changes-and-new-works-license).
|
|
41
|
+
|
|
42
|
+
## Notices
|
|
43
|
+
|
|
44
|
+
You must ensure that anyone who gets a copy of any part of
|
|
45
|
+
the software from you also gets a copy of these terms or the
|
|
46
|
+
URL for them above, as well as copies of any plain-text lines
|
|
47
|
+
beginning with `Required Notice:` that the licensor provided
|
|
48
|
+
with the software. For example:
|
|
49
|
+
|
|
50
|
+
> Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
|
|
51
|
+
|
|
52
|
+
## Changes and New Works License
|
|
53
|
+
|
|
54
|
+
The licensor grants you an additional copyright license to
|
|
55
|
+
make changes and new works based on the software for any
|
|
56
|
+
permitted purpose.
|
|
57
|
+
|
|
58
|
+
## Patent License
|
|
59
|
+
|
|
60
|
+
The licensor grants you a patent license for the software that
|
|
61
|
+
covers patent claims the licensor can license, or becomes able
|
|
62
|
+
to license, that you would infringe by using the software.
|
|
63
|
+
|
|
64
|
+
## Noncommercial Purposes
|
|
65
|
+
|
|
66
|
+
Any noncommercial purpose is a permitted purpose.
|
|
67
|
+
|
|
68
|
+
## Personal Uses
|
|
69
|
+
|
|
70
|
+
Personal use for research, experiment, and testing for
|
|
71
|
+
the benefit of public knowledge, personal study, private
|
|
72
|
+
entertainment, hobby projects, amateur pursuits, or religious
|
|
73
|
+
observance, without any anticipated commercial application,
|
|
74
|
+
is use for a permitted purpose.
|
|
75
|
+
|
|
76
|
+
## Noncommercial Organizations
|
|
77
|
+
|
|
78
|
+
Use by any charitable organization, educational institution,
|
|
79
|
+
public research organization, public safety or health
|
|
80
|
+
organization, environmental protection organization,
|
|
81
|
+
or government institution is use for a permitted purpose
|
|
82
|
+
regardless of the source of funding or obligations resulting
|
|
83
|
+
from the funding.
|
|
84
|
+
|
|
85
|
+
## Fair Use
|
|
86
|
+
|
|
87
|
+
You may have "fair use" rights for the software under the
|
|
88
|
+
law. These terms do not limit them.
|
|
89
|
+
|
|
90
|
+
## No Other Rights
|
|
91
|
+
|
|
92
|
+
These terms do not allow you to sublicense or transfer any of
|
|
93
|
+
your licenses to anyone else, or prevent the licensor from
|
|
94
|
+
granting licenses to anyone else. These terms do not imply
|
|
95
|
+
any other licenses.
|
|
96
|
+
|
|
97
|
+
## Patent Defense
|
|
98
|
+
|
|
99
|
+
If you make any written claim that the software infringes or
|
|
100
|
+
contributes to infringement of any patent, your patent license
|
|
101
|
+
for the software granted under these terms ends immediately. If
|
|
102
|
+
your company makes such a claim, your patent license ends
|
|
103
|
+
immediately for work on behalf of your company.
|
|
104
|
+
|
|
105
|
+
## Violations
|
|
106
|
+
|
|
107
|
+
The first time you are notified in writing that you have
|
|
108
|
+
violated any of these terms, or done anything with the software
|
|
109
|
+
not covered by your licenses, your licenses can nonetheless
|
|
110
|
+
continue if you come into full compliance with these terms,
|
|
111
|
+
and take practical steps to correct past violations, within
|
|
112
|
+
32 days of receiving notice. Otherwise, all your licenses
|
|
113
|
+
end immediately.
|
|
114
|
+
|
|
115
|
+
## No Liability
|
|
116
|
+
|
|
117
|
+
***As far as the law allows, the software comes as is, without
|
|
118
|
+
any warranty or condition, and the licensor will not be liable
|
|
119
|
+
to you for any damages arising out of these terms or the use
|
|
120
|
+
or nature of the software, under any kind of legal claim.***
|
|
121
|
+
|
|
122
|
+
## Definitions
|
|
123
|
+
|
|
124
|
+
The **licensor** is the individual or entity offering these
|
|
125
|
+
terms, and the **software** is the software the licensor makes
|
|
126
|
+
available under these terms.
|
|
127
|
+
|
|
128
|
+
**You** refers to the individual or entity agreeing to these
|
|
129
|
+
terms.
|
|
130
|
+
|
|
131
|
+
**Your company** is any legal entity, sole proprietorship,
|
|
132
|
+
or other kind of organization that you work for, plus all
|
|
133
|
+
organizations that have control over, are under the control of,
|
|
134
|
+
or are under common control with that organization. **Control**
|
|
135
|
+
means ownership of substantially all the assets of an entity,
|
|
136
|
+
or the power to direct its management and policies by vote,
|
|
137
|
+
contract, or otherwise. Control can be direct or indirect.
|
|
138
|
+
|
|
139
|
+
**Your licenses** are all the licenses granted to you for the
|
|
140
|
+
software under these terms.
|
|
141
|
+
|
|
142
|
+
**Use** means anything you do with the software requiring one
|
|
143
|
+
of your licenses.
|
package/README.md
CHANGED
|
@@ -1,3 +1,335 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/logo.png" width="160" height="160" alt="AgentPhoto">
|
|
3
|
+
</p>
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
<h1 align="center">AgentPhoto</h1>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<strong>The photo studio your AI agent can run.</strong><br>
|
|
9
|
+
Retouching, background removal, masks, looks, text and social formats, as a non-destructive document.<br>
|
|
10
|
+
Everything runs on your computer: no server, no account, nothing that phones home.
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
<p align="center">
|
|
14
|
+
<a href="https://www.npmjs.com/package/@fleox/agentphoto"><img src="https://img.shields.io/npm/v/@fleox/agentphoto?color=3d6bff&label=npm" alt="npm version"></a>
|
|
15
|
+
<a href="https://github.com/fleox/agentphoto/actions/workflows/ci.yml"><img src="https://github.com/fleox/agentphoto/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
16
|
+
<a href="https://www.npmjs.com/package/@fleox/agentphoto"><img src="https://img.shields.io/node/v/@fleox/agentphoto?color=339933" alt="Node.js version"></a>
|
|
17
|
+
<a href="#claude-code"><img src="https://img.shields.io/badge/Claude%20Code-plugin-d97757" alt="Claude Code plugin"></a>
|
|
18
|
+
<a href="#mcp-server"><img src="https://img.shields.io/badge/MCP-server-0ea5e9" alt="MCP server"></a>
|
|
19
|
+
<a href="https://github.com/fleox/agentphoto/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-PolyForm%20Noncommercial-6b7280" alt="License"></a>
|
|
20
|
+
</p>
|
|
21
|
+
|
|
22
|
+
<p align="center">
|
|
23
|
+
<a href="#quick-start">Quick start</a> ·
|
|
24
|
+
<a href="#features">Features</a> ·
|
|
25
|
+
<a href="#the-studio">Studio</a> ·
|
|
26
|
+
<a href="#templates">Templates</a> ·
|
|
27
|
+
<a href="#how-it-works">How it works</a> ·
|
|
28
|
+
<a href="#the-agentphoto-cli">CLI</a> ·
|
|
29
|
+
<a href="#mcp-server">MCP</a> ·
|
|
30
|
+
<a href="#privacy">Privacy</a> ·
|
|
31
|
+
<a href="https://github.com/fleox/agentphoto/blob/main/docs/README.md">Docs</a> ·
|
|
32
|
+
<a href="https://github.com/fleox/agentphoto/blob/main/changelog.json">Changelog</a>
|
|
33
|
+
</p>
|
|
34
|
+
|
|
35
|
+
<p align="center">
|
|
36
|
+
<a href="https://cdn.jsdelivr.net/gh/fleox/agentphoto@main/.github/assets/agentphoto-demo.mp4">
|
|
37
|
+
<img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/video-poster.jpg" width="900" alt="Watch the demo: real Claude Code sessions retouch a photo, make a product packshot on white and design a YouTube thumbnail, then templates, the Studio and the export">
|
|
38
|
+
</a>
|
|
39
|
+
<br><sub>▶️ <a href="https://cdn.jsdelivr.net/gh/fleox/agentphoto@main/.github/assets/agentphoto-demo.mp4">Watch the demo</a> (2 min 10 s): three real Claude Code sessions (a photo retouch, a product cut-out on white, a YouTube thumbnail; the agent's work sped up, labelled on screen), then templates, the Studio and the export.</sub>
|
|
40
|
+
</p>
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Why AgentPhoto
|
|
45
|
+
|
|
46
|
+
<table>
|
|
47
|
+
<tr>
|
|
48
|
+
<td width="33%" valign="top">
|
|
49
|
+
<h3>🎛️ A real photo editor</h3>
|
|
50
|
+
<p>28 filters (levels, curves, white balance, shadows / highlights, clarity, surface blur…), 20 looks, adjustment layers, 16 blend modes, masks, layer effects, text in 15 bundled fonts, shapes and gradients. <b>Non-destructive</b>: every edit is a layer you can change later, and your original is never touched.</p>
|
|
51
|
+
</td>
|
|
52
|
+
<td width="33%" valign="top">
|
|
53
|
+
<h3>🤖 Agent-native</h3>
|
|
54
|
+
<p>A picture is one JSON document, validated with "did you mean" hints and edited with small atomic patches. The agent <b>renders it headless</b> in your own Chrome, <b>looks at the image</b>, fixes what it sees and runs <code>check</code> before exporting. Every action is a CLI command with JSON output, an MCP tool and a Studio action.</p>
|
|
55
|
+
</td>
|
|
56
|
+
<td width="33%" valign="top">
|
|
57
|
+
<h3>🔒 Local AI, no server</h3>
|
|
58
|
+
<p>Background removal and Segment Anything masks run <b>on your computer</b> (RMBG-1.4, MODNet, SlimSAM). Models download once, then everything works offline. No AgentPhoto server, account or telemetry; AgentPhoto itself uploads nothing.</p>
|
|
59
|
+
</td>
|
|
60
|
+
</tr>
|
|
61
|
+
</table>
|
|
62
|
+
|
|
63
|
+
## Quick start
|
|
64
|
+
|
|
65
|
+
### With an AI agent
|
|
66
|
+
|
|
67
|
+
<a id="claude-code"></a>**Claude Code**
|
|
68
|
+
|
|
69
|
+
```text
|
|
70
|
+
/plugin marketplace add fleox/agentphoto
|
|
71
|
+
/plugin install agentphoto@agentphoto
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Then just ask:
|
|
75
|
+
|
|
76
|
+
> *Here is a photo from my trip, lake.jpg. Make it look great: fix the light and colours, give it a warm film look, then export it for Instagram (square) and as a link preview image.*<br>
|
|
77
|
+
> *Remove the background of mug.jpg and make a clean product photo for my shop: on white, square, with a soft shadow under the mug. Export it as a 2000 px JPEG.*<br>
|
|
78
|
+
> *Make a YouTube thumbnail for my video "Lisbon on foot" with street.jpg: big bold title, readable on a phone. Then make the matching link preview image for the blog post.*
|
|
79
|
+
|
|
80
|
+
The agent opens your photo as a project, measures it, edits it with layers and filters, renders it, **looks at the result**, fixes it, runs `check` and exports the files.
|
|
81
|
+
|
|
82
|
+
<p align="center">
|
|
83
|
+
<img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/demo-retouch.gif" width="820" alt="A real Claude Code session: from one request, the agent measures lake.jpg, adds an adjustment layer with levels, a slight warm correction and a film look, compares before and after, then exports a square post and a link preview; it ends on the agent's own before and after renders">
|
|
84
|
+
<br><sub>A real, unedited Claude Code session. The agent's work (about 2 minutes) is sped up ×8 (labelled); typing and the answer play in real time. It ends on the agent's own before / after render.</sub>
|
|
85
|
+
</p>
|
|
86
|
+
|
|
87
|
+
Cut-outs run locally, and the agent picks the model that fits the use:
|
|
88
|
+
|
|
89
|
+
<p align="center">
|
|
90
|
+
<img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/demo-cutout.gif" width="820" alt="A real Claude Code session: the agent cuts the mug out with a Segment Anything box because the shop is commercial use, centres it on white with a soft contact shadow, checks the edges and exports a 2000 px JPEG; it ends on the exported packshot">
|
|
91
|
+
<br><sub>For a shop (commercial use) the agent chose Segment Anything (Apache-2.0) over the default non-commercial background remover, then centred the mug on white with a contact shadow. Sped up ×8 while the agent works (labelled).</sub>
|
|
92
|
+
</p>
|
|
93
|
+
|
|
94
|
+
<details>
|
|
95
|
+
<summary><b>And a third one: <i>"Make a YouTube thumbnail for my video…"</i></b></summary>
|
|
96
|
+
<p align="center">
|
|
97
|
+
<img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/demo-design.gif" width="820" alt="A real Claude Code session: the agent builds a YouTube thumbnail from the template with the street photo and a big condensed title, checks it at phone size, then makes the matching 1200x630 link preview; it ends on both images">
|
|
98
|
+
<br><sub>A thumbnail from a template, checked at the size it shows on a phone, then the matching link preview. Sped up ×16 while the agent works (labelled).</sub>
|
|
99
|
+
</p>
|
|
100
|
+
</details>
|
|
101
|
+
|
|
102
|
+
| Agent | Setup |
|
|
103
|
+
|---|---|
|
|
104
|
+
| **Claude Code** | the plugin above: skills `agentphoto-retouch`, `agentphoto-cutout`, `agentphoto-design`, `agentphoto-publish` |
|
|
105
|
+
| **Claude Desktop, Cursor, any MCP client** | the [MCP server](#mcp-server): `agentphoto mcp --project <dir>` |
|
|
106
|
+
| **Hermes Agent** / Python agents | generated skills with a Python wrapper and helpers, see [hermes/](https://github.com/fleox/agentphoto/tree/main/hermes) |
|
|
107
|
+
| **Codex, Windsurf, any other agent** | point it at [AGENTS.md](https://github.com/fleox/agentphoto/blob/main/AGENTS.md) and the Markdown skills in [plugin/skills/](https://github.com/fleox/agentphoto/tree/main/plugin/skills) |
|
|
108
|
+
|
|
109
|
+
You need **Node.js 22+** and **Google Chrome** (or Chromium / Edge / Brave): previews, exports and the AI run in it, headless. `npx -y @fleox/agentphoto@0.1.1 doctor` checks your setup with a test render.
|
|
110
|
+
|
|
111
|
+
### Without an agent
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
npx -y @fleox/agentphoto@0.1.1 new trip --image ./lake.jpg
|
|
115
|
+
npx -y @fleox/agentphoto@0.1.1 studio --project trip
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
The first command makes a project folder from your photo (add `--template <id>` to start from one of the [templates](#templates)); the second opens the [Studio](#the-studio) on it. The whole loop from a terminal:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
npx -y @fleox/agentphoto@0.1.1 analyze --project trip # brightness, range, colour cast… + suggested filters
|
|
122
|
+
npx -y @fleox/agentphoto@0.1.1 filter add photo --type shadowsHighlights --set shadows=30 --project trip
|
|
123
|
+
npx -y @fleox/agentphoto@0.1.1 remove-bg photo --background "#ffffff" --project trip
|
|
124
|
+
npx -y @fleox/agentphoto@0.1.1 render --project trip --compare # → renders/preview-before.png + preview.png
|
|
125
|
+
npx -y @fleox/agentphoto@0.1.1 export --project trip --format webp --quality 82
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Step by step: [docs/getting-started.md](https://github.com/fleox/agentphoto/blob/main/docs/getting-started.md).
|
|
129
|
+
|
|
130
|
+
## Features
|
|
131
|
+
|
|
132
|
+
<table>
|
|
133
|
+
<tr>
|
|
134
|
+
<td width="50%"><img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/showcase-before-after-color-correction.jpg" alt="Before and after colour correction of a burger photo: deeper blacks, a more vivid plate and vegetables"><p align="center"><b>Colour correction</b>: levels, a gentle S-curve, warmth, vibrance, sharpening</p></td>
|
|
135
|
+
<td width="50%"><img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/showcase-before-after-black-and-white.jpg" alt="Before and after: a street photo turned into a contrasty black and white with grain and a vignette"><p align="center"><b>Black and white</b>: channel mix, curve, clarity, grain, vignette</p></td>
|
|
136
|
+
</tr>
|
|
137
|
+
<tr>
|
|
138
|
+
<td width="50%"><img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/showcase-before-after-product-cutout.jpg" alt="Before and after: an enamel mug on a wooden table, then the same mug cut out by local AI on pure white with a soft shadow"><p align="center"><b>Product cut-out</b>: local AI background removal, white backdrop, contact shadow</p></td>
|
|
139
|
+
<td width="50%"><img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/showcase-before-after-portrait-retouch.jpg" alt="Before and after crops of a portrait retouch: smoother skin that keeps its texture, open shadows, slightly warmer tones"><p align="center"><b>Portrait retouch</b>: skin selected with Segment Anything, edge-preserving smoothing, open shadows</p></td>
|
|
140
|
+
</tr>
|
|
141
|
+
<tr>
|
|
142
|
+
<td width="50%"><img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/showcase-youtube-thumbnail.jpg" alt="A YouTube thumbnail: I tried it for 30 days in a bold condensed title, a yellow honest review tag, the subject cut out with a white outline on a purple to pink gradient"><p align="center"><b>YouTube thumbnail</b>: template + your photo + <code>remove-bg</code> + a stroke effect</p></td>
|
|
143
|
+
<td width="50%"><img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/showcase-og-article.jpg" alt="A link preview card: a navy panel with a blog name and the headline 10 hidden streets every visitor should walk, a street photo fading in on the right"><p align="center"><b>Link preview (1200×630)</b>: a gradient mask fades the photo into the text panel</p></td>
|
|
144
|
+
</tr>
|
|
145
|
+
</table>
|
|
146
|
+
|
|
147
|
+
<p align="center">
|
|
148
|
+
<img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/showcase-loop.gif" width="760" alt="A loop of real AgentPhoto renders: a food colour correction wipe, a YouTube thumbnail, a mug cut-out wipe, a link preview, a black and white street wipe and a quote post">
|
|
149
|
+
<br><sub>Real renders from the published package, nothing painted over.</sub>
|
|
150
|
+
</p>
|
|
151
|
+
|
|
152
|
+
- **Retouch**: `analyze` measures brightness, range, clipping, saturation and colour cast and suggests filters; light (exposure, brightness / contrast, shadows / highlights), tone (levels, curves), colour (white balance, hue / saturation, vibrance, colour balance, photo filter, gradient map), detail (sharpen, clarity), blur (gaussian, motion, edge-preserving surface blur), stylize (vignette, noise, posterize, threshold, pixelate) and one-click auto tone / contrast / colour.
|
|
153
|
+
- **Looks**: 20 graded looks (film, cinema, golden hour, noir, matte, cross-process…) with an amount, on a layer or on everything below an adjustment layer.
|
|
154
|
+
- **Cut-outs and masks**: background removal (RMBG-1.4, MODNet), Segment Anything from points or a box (SlimSAM, SAM), colour-range masks, shape and gradient masks with feather, density and invert, clipping masks, masks painted by hand in the Studio.
|
|
155
|
+
- **Design**: text in 15 bundled fonts with real measurement and wrapping, shapes (rect, ellipse, line, polygon, star), linear and radial gradients, 5 layer effects (drop shadow, outer glow, inner shadow, stroke, colour overlay), 16 blend modes, groups, 8 templates and 13 size presets.
|
|
156
|
+
- **Geometry**: crop, straighten, resize the canvas or the whole picture, rotate and flip, without rasterising anything.
|
|
157
|
+
- **Quality**: `check` before export (missing files, layers off the canvas, upscaled photos, text that may overflow, licences to credit); exports plan before overwriting and warn when a size upscales or a crop cuts a layer.
|
|
158
|
+
- **Export**: PNG, JPEG, WebP (AVIF where the browser can encode it), quality, background, transparency, every size preset or exact width / height / scale, cover or contain, several variants in one command.
|
|
159
|
+
|
|
160
|
+
## The Studio
|
|
161
|
+
|
|
162
|
+
A visual editor for when you want to see and touch the picture yourself, on the same files and with the same validated tools as the agent. Changes your agent makes in a terminal appear live in the open Studio.
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
npx -y @fleox/agentphoto@0.1.1 studio --project trip
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
<p align="center">
|
|
169
|
+
<img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/studio-editor.jpg" width="900" alt="The AgentPhoto Studio: a YouTube thumbnail on the canvas with the cut-out subject selected, the layers panel and the inspector with transform, image fit and mask settings">
|
|
170
|
+
</p>
|
|
171
|
+
|
|
172
|
+
<table>
|
|
173
|
+
<tr>
|
|
174
|
+
<td width="50%"><img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/studio-filters.jpg" alt="The Studio's Filters tab on an adjustment layer: levels, curves, white balance and vibrance, with the RGB curve editor open"><p align="center"><b>Filters</b>: every filter with its sliders, a curve editor, drag to reorder</p></td>
|
|
175
|
+
<td width="50%"><img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/studio-looks.jpg" alt="The Studio's Looks tab: a grid of look thumbnails rendered from the photo, Warm applied, with an intensity slider"><p align="center"><b>Looks</b>: thumbnails rendered from your photo, one click, an intensity slider</p></td>
|
|
176
|
+
</tr>
|
|
177
|
+
<tr>
|
|
178
|
+
<td width="50%"><img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/studio-ai-select.jpg" alt="Quick AI select in the Studio: one click on the cat gives a green Segment Anything selection with Apply and Reset"><p align="center"><b>Quick AI select</b>: click the subject, Segment Anything selects it, locally</p></td>
|
|
179
|
+
<td width="50%"><img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/studio-masks.jpg" alt="The Studio with a mug cut out on white: mask thumbnails in the layers panel and the inspector's mask section with feather, density and Paint the mask"><p align="center"><b>Masks</b>: AI cut-outs you can refine, feather, invert or paint by hand</p></td>
|
|
180
|
+
</tr>
|
|
181
|
+
<tr>
|
|
182
|
+
<td width="50%"><img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/studio-export.jpg" alt="The Studio's Export dialog: a live preview, PNG JPG WebP AVIF, size, transparency, file name and quick exports og, square and story"><p align="center"><b>Export</b>: live preview with the real file size, quick social sizes</p></td>
|
|
183
|
+
<td width="50%"><img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/studio-start.jpg" alt="The Studio's start screen: open a photo, six sample photos, the template gallery and recent projects"><p align="center"><b>Start</b>: open a photo, a sample, a template or a recent project</p></td>
|
|
184
|
+
</tr>
|
|
185
|
+
</table>
|
|
186
|
+
|
|
187
|
+
Canvas with move / transform, crop, brush, eraser, clone stamp, marquee, lasso, magic wand, quick AI select, text, shape and eyedropper tools; layers panel; inspector (properties, filters with a curve editor, looks, layer effects, masks); AI cut-out in the page; export dialog; templates gallery; undo / redo; in English or French. An optional assistant panel calls the Claude API from your browser with your own key, over the same tools. Without `agentphoto studio`, the same Studio also works from a static build with projects stored in the browser. See [docs/studio.md](https://github.com/fleox/agentphoto/blob/main/docs/studio.md).
|
|
188
|
+
|
|
189
|
+
## Templates
|
|
190
|
+
|
|
191
|
+
<p align="center">
|
|
192
|
+
<img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/templates-grid.jpg" width="900" alt="The 8 AgentPhoto templates, each a real export with a bundled sample photo: YouTube thumbnail, article link preview, quote post, professional avatar, sale banner, story promo, polaroid memory and product on white">
|
|
193
|
+
</p>
|
|
194
|
+
|
|
195
|
+
`agentphoto new my-post --template <id> --image ./photo.jpg` puts your photo into the template's slot, with its framing, filters and effects; `templates list` and `templates show <id>` describe them. Everything stays editable: a template is an ordinary `photo.json`.
|
|
196
|
+
|
|
197
|
+
<details>
|
|
198
|
+
<summary><b>All 8 templates</b></summary>
|
|
199
|
+
|
|
200
|
+
| | Template | Size | What it is |
|
|
201
|
+
|---|---|---|---|
|
|
202
|
+
| <img src="https://raw.githubusercontent.com/fleox/agentphoto/main/templates/youtube-thumbnail/preview.jpg" width="160" alt="YouTube thumbnail template"> | **YouTube thumbnail**<br>`youtube-thumbnail` | 1280×720 | Bold 16:9 thumbnail: big condensed title, subject with a white outline, punchy gradient |
|
|
203
|
+
| <img src="https://raw.githubusercontent.com/fleox/agentphoto/main/templates/og-article/preview.jpg" width="160" alt="Article link preview template"> | **Article link preview**<br>`og-article` | 1200×630 | Open Graph card: photo on the right fading into a solid panel, headline and site name on the left |
|
|
204
|
+
| <img src="https://raw.githubusercontent.com/fleox/agentphoto/main/templates/social-quote/preview.jpg" width="160" alt="Quote post template"> | **Quote post**<br>`social-quote` | 1080×1080 | Square post: photo in the background, darkened and softened, with a serif quote and author |
|
|
205
|
+
| <img src="https://raw.githubusercontent.com/fleox/agentphoto/main/templates/story-promo/preview.jpg" width="160" alt="Story promo template"> | **Story promo**<br>`story-promo` | 1080×1920 | 9:16 story / reel cover: full-bleed photo, dark gradient, big title and a call-to-action pill |
|
|
206
|
+
| <img src="https://raw.githubusercontent.com/fleox/agentphoto/main/templates/sale-banner/preview.jpg" width="160" alt="Sale banner template"> | **Sale banner**<br>`sale-banner` | 1920×600 | Wide web hero banner: gradient background, photo fading in, big discount and a starburst badge |
|
|
207
|
+
| <img src="https://raw.githubusercontent.com/fleox/agentphoto/main/templates/polaroid/preview.jpg" width="160" alt="Polaroid template"> | **Polaroid memory**<br>`polaroid` | 1080×1350 | Instant-photo card tilted on warm paper, vintage look and a handwritten caption |
|
|
208
|
+
| <img src="https://raw.githubusercontent.com/fleox/agentphoto/main/templates/avatar-pro/preview.jpg" width="160" alt="Professional avatar template"> | **Professional avatar**<br>`avatar-pro` | 800×800 | Round profile picture: subject cut out on a soft brand-colour backdrop, gently retouched |
|
|
209
|
+
| <img src="https://raw.githubusercontent.com/fleox/agentphoto/main/templates/product-white/preview.jpg" width="160" alt="Product on white template"> | **Product on white**<br>`product-white` | 2000×2000 | E-commerce square: product cut out, centred on a soft white backdrop with a contact shadow |
|
|
210
|
+
|
|
211
|
+
</details>
|
|
212
|
+
|
|
213
|
+
## How it works
|
|
214
|
+
|
|
215
|
+
<p align="center">
|
|
216
|
+
<picture>
|
|
217
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/how-it-works-dark.png">
|
|
218
|
+
<img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/how-it-works-light.png" width="900" alt="You, in any browser, and your AI agent (Claude Code, Claude, Hermes, any MCP client) use four front doors: the Studio, the Studio assistant, the agentphoto CLI and the MCP server. All of them call one engine (document ops: validate, patch, render, export) with a compositor and local AI, rendered headless in your own Chrome so the agent looks at its work. The output is ordinary image files: PNG, JPEG, WebP, AVIF, social sizes and transparent cut-outs. Built in and offline: 15 fonts, 6 CC0 photos, 8 templates, 13 size presets. No server of ours.">
|
|
219
|
+
</picture>
|
|
220
|
+
</p>
|
|
221
|
+
|
|
222
|
+
All the rules live in one engine. The Studio, the CLI, the MCP server and the Studio assistant are four front doors to it, so an agent can do exactly what you can do in the editor, with the same validation. The engine works on a plain **project folder** (`photo.json`, `assets/`, `renders/`, `dist/`), which you can keep in git.
|
|
223
|
+
|
|
224
|
+
A picture is **data**: `photo.json` lists layers bottom to top (image, text, shape, fill, adjustment, group), each with its box, opacity, blend mode, mask, filters and effects. The render is a pure function of (document, files, fonts). That is what makes the loop work: the agent patches the JSON, `render` composites it in your headless Chrome and writes a PNG, the agent **looks** at it, fixes, runs `check` and exports. Nothing is ever baked: every filter, mask and cut-out can be changed or removed later. Details: [architecture](https://github.com/fleox/agentphoto/blob/main/docs/architecture.md) and the [document format](https://github.com/fleox/agentphoto/blob/main/docs/document-format.md).
|
|
225
|
+
|
|
226
|
+
```json
|
|
227
|
+
{ "id": "correct", "type": "adjustment", "filters": [
|
|
228
|
+
{ "type": "levels", "black": 20, "white": 235 },
|
|
229
|
+
{ "type": "temperature", "temperature": -8 },
|
|
230
|
+
{ "type": "look", "look": "film", "amount": 0.6 }
|
|
231
|
+
] }
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
## How AgentPhoto compares
|
|
235
|
+
|
|
236
|
+
| | AgentPhoto | A desktop or web photo editor | An online background remover | A web design tool with templates |
|
|
237
|
+
|---|---|---|---|---|
|
|
238
|
+
| What it is for | photo retouching, cut-outs and visuals | retouching anything by hand | one cut-out at a time | designs from templates |
|
|
239
|
+
| How it is driven | an AI agent (CLI, MCP, skills) or the Studio | by hand | upload, then download | by hand in the browser |
|
|
240
|
+
| Account or hosted service | ❌ none | depends on the editor | an account / credits, often | an account |
|
|
241
|
+
| Your photo leaves your computer | ❌ no (AgentPhoto uploads nothing) | depends | ✅ uploaded | ✅ uploaded |
|
|
242
|
+
| AI agent loop (edit, render, look, check) | ✅ | — | — | — |
|
|
243
|
+
| Non-destructive layers, masks, filters | ✅ in a JSON file | ✅ in its own format | ❌ | partial |
|
|
244
|
+
| Exports at every social size in one command | ✅ `--variants` | by hand | ❌ | ✅ by hand |
|
|
245
|
+
|
|
246
|
+
Pick a desktop editor for pixel-level manual work on large files, an online remover for a single quick cut-out, and a web design tool when a team designs together in the browser. AgentPhoto fits when an agent should do and verify the edit, the photos must stay on your computer, and the result must stay editable.
|
|
247
|
+
|
|
248
|
+
## The `agentphoto` CLI
|
|
249
|
+
|
|
250
|
+
The same engine the agents use, by hand. Every command accepts `--json` and prints exactly one `{ ok, data }` or `{ ok: false, error }` object with an actionable hint; commands that remove or overwrite something print a plan until you add `--yes`.
|
|
251
|
+
|
|
252
|
+
<p align="center">
|
|
253
|
+
<img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/demo-cli.gif" width="820" alt="Terminal demo: agentphoto new from a lake photo, analyze piped to jq showing brightness, contrast, cast and suggestions, an adjustment layer with the suggested filters, a golden-hour look, layer list and check">
|
|
254
|
+
<br><sub>A project from a photo, <code>analyze</code>, an adjustment layer with its suggestions, a look, <code>check</code>. The published CLI, real output.</sub>
|
|
255
|
+
</p>
|
|
256
|
+
|
|
257
|
+
<table>
|
|
258
|
+
<tr>
|
|
259
|
+
<td width="50%"><img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/demo-render.gif" alt="Terminal demo: render --compare writes a before and an after preview, then analyze shows the colour cast reduced; it ends on the before and after images"><p align="center"><code>render --compare</code>: the before / after the agent looks at</p></td>
|
|
260
|
+
<td width="50%"><img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/demo-export.gif" alt="Terminal demo: check, then export with og, square and story variants, a needsConfirmation plan when re-exporting over the files, then --yes; it ends on the three exported images"><p align="center"><code>export --variants</code>: three sizes, a plan before overwriting</p></td>
|
|
261
|
+
</tr>
|
|
262
|
+
</table>
|
|
263
|
+
|
|
264
|
+
<details>
|
|
265
|
+
<summary><b>All commands</b></summary>
|
|
266
|
+
|
|
267
|
+
| Area | Commands |
|
|
268
|
+
|---|---|
|
|
269
|
+
| Project | `new <dir> [--image] [--template] [--size]`, `info`, `templates list\|show`, `doctor`, `version`, `help` |
|
|
270
|
+
| Edit | `doc get\|summary\|apply\|patch\|validate`, `layer list\|get\|add\|update\|remove\|move`, `filter add\|update\|remove`, `mask set\|clear\|generate`, `remove-bg`, `catalog [section] [id]` |
|
|
271
|
+
| Look at it | `analyze`, `render [--compare] [--layer] [--zoom]`, `check`, `studio` |
|
|
272
|
+
| Ship | `export [--format] [--quality] [--preset] [--width\|--height\|--scale] [--fit] [--variants]` |
|
|
273
|
+
| Files and models | `assets list\|add\|remove\|library`, `models list\|pull\|remove` |
|
|
274
|
+
| AI | `tools list\|call`, `mcp [--read-only]` |
|
|
275
|
+
|
|
276
|
+
Full reference: [docs/cli.md](https://github.com/fleox/agentphoto/blob/main/docs/cli.md).
|
|
277
|
+
|
|
278
|
+
</details>
|
|
279
|
+
|
|
280
|
+
## MCP server
|
|
281
|
+
|
|
282
|
+
```bash
|
|
283
|
+
claude mcp add agentphoto -- npx -y @fleox/agentphoto@0.1.1 mcp --project ~/Pictures/my-photo
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
<p align="center">
|
|
287
|
+
<img src="https://raw.githubusercontent.com/fleox/agentphoto/main/.github/assets/demo-mcp.gif" width="820" alt="Terminal demo: a raw JSON-RPC session piped into agentphoto mcp: initialize, tools/list with 26 tools, tools/call render_preview returning a text block and an image block; it ends on the returned link preview image">
|
|
288
|
+
<br><sub>A raw MCP session: <code>render_preview</code> answers with the picture itself, so multimodal models see their work.</sub>
|
|
289
|
+
</p>
|
|
290
|
+
|
|
291
|
+
**Tools** are the shared AI catalog: project info and creation, document summary / get / patch / apply / validate, layers, filters, masks, `remove_background`, `mask_generate`, `image_analyze`, catalog and templates lookups, assets, `check` and `export`, plus **`render_preview`**, which returns the render as an **image**. **Resources**: `photo://doc`, `photo://summary`, `photo://catalog`. `--read-only` hides every tool that writes. Claude Desktop, Cursor and Hermes configuration: [docs/mcp.md](https://github.com/fleox/agentphoto/blob/main/docs/mcp.md).
|
|
292
|
+
|
|
293
|
+
## Privacy
|
|
294
|
+
|
|
295
|
+
- **Local.** Projects are folders on your disk; editing, previews, analysis, AI and exports run on your computer, in Node.js and your own browser engine.
|
|
296
|
+
- **AgentPhoto uploads nothing.** The AI models come to the photos: they download **once** from Hugging Face into `~/.cache/agentphoto/models` and then run offline.
|
|
297
|
+
- **Nothing else phones home.** No account, no telemetry, no update check, no CDN, no web fonts. The only other network uses are importing an image from a URL you give, and the optional Studio assistant (your own Claude API key, to `api.anthropic.com`; it sends the previews its tools render).
|
|
298
|
+
- **Your agent is yours.** An agent you connect (Claude Code, an MCP client) receives the renders it asks for and handles them under its own settings.
|
|
299
|
+
- **Non-destructive.** Source files are copied, never modified; AI masks are new files.
|
|
300
|
+
|
|
301
|
+
Details: [docs/security.md](https://github.com/fleox/agentphoto/blob/main/docs/security.md).
|
|
302
|
+
|
|
303
|
+
## Documentation
|
|
304
|
+
|
|
305
|
+
| | |
|
|
306
|
+
|---|---|
|
|
307
|
+
| [Getting started](https://github.com/fleox/agentphoto/blob/main/docs/getting-started.md) | Install, a first edit in six commands, using it from an agent |
|
|
308
|
+
| [Retouching recipes](https://github.com/fleox/agentphoto/blob/main/docs/retouching.md) | Colour correction, portrait retouch, product cut-out on white, social formats |
|
|
309
|
+
| [Document format](https://github.com/fleox/agentphoto/blob/main/docs/document-format.md) · [Catalog](https://github.com/fleox/agentphoto/blob/main/docs/catalog.md) | `photo.json` field by field; every filter, look, effect, font and size preset |
|
|
310
|
+
| [Studio](https://github.com/fleox/agentphoto/blob/main/docs/studio.md) · [Studio API](https://github.com/fleox/agentphoto/blob/main/docs/studio-api.md) | The visual editor; its local REST API |
|
|
311
|
+
| [CLI](https://github.com/fleox/agentphoto/blob/main/docs/cli.md) · [MCP](https://github.com/fleox/agentphoto/blob/main/docs/mcp.md) | Every command; MCP clients |
|
|
312
|
+
| [Hermes Agent](https://github.com/fleox/agentphoto/tree/main/hermes) | Skills and Python helpers for Hermes and Python agents |
|
|
313
|
+
| [Architecture](https://github.com/fleox/agentphoto/blob/main/docs/architecture.md) · [Security and privacy](https://github.com/fleox/agentphoto/blob/main/docs/security.md) | The engine and the render loop; what touches the network |
|
|
314
|
+
| [AGENTS.md](https://github.com/fleox/agentphoto/blob/main/AGENTS.md) · [Releasing](https://github.com/fleox/agentphoto/blob/main/docs/releasing.md) | Instructions for AI agents working on this repository; how versions are published |
|
|
315
|
+
|
|
316
|
+
## Contributing
|
|
317
|
+
|
|
318
|
+
Bug reports and ideas are welcome: [open an issue](https://github.com/fleox/agentphoto/issues). See [CONTRIBUTING.md](https://github.com/fleox/agentphoto/blob/main/CONTRIBUTING.md) and, for security reports, [SECURITY.md](https://github.com/fleox/agentphoto/blob/main/SECURITY.md).
|
|
319
|
+
|
|
320
|
+
```bash
|
|
321
|
+
npm install
|
|
322
|
+
npm run dev # the Studio (projects in the browser)
|
|
323
|
+
npm test # Vitest
|
|
324
|
+
npm run build # engine + Studio + CLI
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
## License
|
|
328
|
+
|
|
329
|
+
Source available under the [PolyForm Noncommercial License 1.0.0](https://github.com/fleox/agentphoto/blob/main/LICENSE). Personal, hobbyist, educational, research and other noncommercial use is free, and you can fork, modify and redistribute under the same terms.
|
|
330
|
+
|
|
331
|
+
**Commercial use requires written authorization.** This includes selling the software or hosting it as a paid service. For a commercial license, [open an issue](https://github.com/fleox/agentphoto/issues).
|
|
332
|
+
|
|
333
|
+
**AI models** are downloaded from Hugging Face under their own licences: **RMBG-1.4** (BRIA AI, the default background remover) is **non-commercial only** (`bria-rmbg-1.4` licence; commercial use needs a licence from BRIA); **MODNet**, **SlimSAM** and **SAM** are **Apache-2.0**. `agentphoto models list` shows each one.
|
|
334
|
+
|
|
335
|
+
**Bundled content**: fonts under the SIL Open Font License 1.1 (Roboto Slab: Apache-2.0) and sample photos under CC0 1.0; see [library/LICENSES.md](https://github.com/fleox/agentphoto/blob/main/library/LICENSES.md). AgentPhoto runs the models with [transformers.js](https://github.com/huggingface/transformers.js) and [ONNX Runtime Web](https://onnxruntime.ai) (Apache-2.0 / MIT).
|
package/changelog.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"versions": [
|
|
3
|
+
{
|
|
4
|
+
"version": "0.1.1",
|
|
5
|
+
"date": "2026-11-24",
|
|
6
|
+
"breaking": false,
|
|
7
|
+
"changes": [
|
|
8
|
+
"Blur on text and shape layers now spreads beyond the layer's box: soft floor shadows (product-white template) and glows.",
|
|
9
|
+
"New patch op fitLayer, and remove-bg --fit / --anchor: place a cut-out subject in a box; the product-white template does it automatically on the first cut-out.",
|
|
10
|
+
"Radial gradients are elliptical on non-square boxes (square boxes unchanged).",
|
|
11
|
+
"Export notes about cover crops judge text by its visible glyphs, not its box.",
|
|
12
|
+
"layer list shows the filters of adjustment layers; CLI hints show project paths as you typed them; --set text=2026 keeps the text a string.",
|
|
13
|
+
"Studio: no download dialog for AI models the CLI already cached, whole template thumbnails on the start screen, clearer AI buttons in the mask section.",
|
|
14
|
+
"Templates copy only the files their document uses.",
|
|
15
|
+
"Docs: exact wording on what leaves your computer; new README with a demo film, real Claude Code sessions and terminal demos; Hermes Agent skills; CI and release workflows."
|
|
16
|
+
],
|
|
17
|
+
"actions": [
|
|
18
|
+
"Claude Code: /plugin marketplace update agentphoto, then /reload-plugins. MCP configs: update the pinned version in args."
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"version": "0.1.0",
|
|
23
|
+
"date": "2026-11-23",
|
|
24
|
+
"breaking": false,
|
|
25
|
+
"changes": [
|
|
26
|
+
"First release: the PhotoDoc format (photo.json, a non-destructive layer stack of image, text, shape, fill, adjustment and group layers with masks, filters, looks and layer effects), validated against one catalog with \"did you mean\" hints.",
|
|
27
|
+
"Engine: 28 filters (light, tone, colour, blur, detail, stylize, auto), 20 looks, 5 layer effects, 16 blend modes, 15 bundled fonts, 13 size presets; headless renders in the installed Chrome.",
|
|
28
|
+
"Local AI: background removal (RMBG-1.4, MODNet) and Segment Anything masks (SlimSAM, SAM base) from points or a box, plus colour-range masks; models download once into ~/.cache/agentphoto/models.",
|
|
29
|
+
"CLI `agentphoto` (JSON output with hints, plans before destructive changes), MCP server (render_preview returns the image), 8 templates, CC0 sample photos, the Studio and four Claude Code skills (agentphoto-retouch, agentphoto-cutout, agentphoto-design, agentphoto-publish).",
|
|
30
|
+
"Hermes Agent skills (hermes/skills, generated from the Claude Code skills) with a stdlib Python wrapper of the CLI (agentphoto.py) and helpers: open_photo.py, cutout.py, render_and_check.py, export_set.py."
|
|
31
|
+
],
|
|
32
|
+
"actions": []
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|