├── .eslintrc.json ├── .gitignore ├── LICENSE.md ├── README.ZH.md ├── README.md ├── components.json ├── http └── api.http ├── next.config.mjs ├── package.json ├── pnpm-lock.yaml ├── postcss.config.mjs ├── public ├── assets │ ├── images │ │ ├── banner-bg.png │ │ ├── gradient-bg.svg │ │ ├── logo-icon.svg │ │ ├── logo-text.svg │ │ └── stacked-coins.png │ └── logo.png ├── examples │ ├── a.png │ ├── b.png │ ├── c.png │ ├── d.png │ └── e.png ├── locales │ ├── en │ │ └── common.json │ └── zh │ │ └── common.json └── styled │ ├── a_0.png │ ├── a_1.png │ ├── a_2.png │ ├── a_3.png │ ├── a_4.png │ ├── b_0.png │ ├── b_1.png │ ├── b_2.png │ ├── b_3.png │ ├── b_4.png │ ├── c_0.png │ ├── c_1.png │ ├── c_2.png │ ├── c_3.png │ ├── c_4.png │ ├── d_0.png │ ├── d_1.png │ ├── d_2.png │ ├── d_3.png │ ├── d_4.png │ ├── e_0.png │ ├── e_1.png │ ├── e_2.png │ ├── e_3.png │ └── e_4.png ├── src ├── app │ ├── (root) │ │ ├── layout.tsx │ │ ├── page.tsx │ │ └── styled │ │ │ └── page.tsx │ ├── api │ │ ├── coze-styled │ │ │ └── route.ts │ │ ├── get-image │ │ │ └── route.ts │ │ └── upload │ │ │ └── route.ts │ ├── favicon.ico │ ├── globals.css │ └── layout.tsx ├── assets │ └── json │ │ ├── hair.json │ │ └── lip.json ├── components │ ├── shared │ │ └── gitHub.tsx │ └── ui │ │ ├── button.tsx │ │ ├── card.tsx │ │ ├── checkbox.tsx │ │ ├── input.tsx │ │ ├── label.tsx │ │ ├── radio-group.tsx │ │ ├── select.tsx │ │ ├── sheet.tsx │ │ ├── toast.tsx │ │ ├── toaster.tsx │ │ └── use-toast.ts ├── constants │ ├── end.ts │ ├── examples.ts │ ├── front.ts │ ├── index.ts │ └── style.ts ├── hooks │ └── useAssetDb.ts ├── i18n.ts ├── lib │ ├── db.ts │ ├── imageUtils.ts │ └── utils.ts ├── types │ └── type.ts └── utils │ ├── canvasImage.ts │ ├── color.ts │ ├── download.ts │ ├── face │ ├── eye_shape.ts │ ├── face_shape.ts │ ├── hair_lines.ts │ ├── index.ts │ ├── mouth_shape.ts │ └── utils.ts │ ├── image.ts │ ├── imagedata.ts │ └── index.ts ├── tailwind.config.ts ├── tsconfig.json └── types └── i18next.d.ts /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.ZH.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/README.md -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/components.json -------------------------------------------------------------------------------- /http/api.http: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/http/api.http -------------------------------------------------------------------------------- /next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/next.config.mjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /postcss.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/postcss.config.mjs -------------------------------------------------------------------------------- /public/assets/images/banner-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/assets/images/banner-bg.png -------------------------------------------------------------------------------- /public/assets/images/gradient-bg.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/assets/images/gradient-bg.svg -------------------------------------------------------------------------------- /public/assets/images/logo-icon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/assets/images/logo-icon.svg -------------------------------------------------------------------------------- /public/assets/images/logo-text.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/assets/images/logo-text.svg -------------------------------------------------------------------------------- /public/assets/images/stacked-coins.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/assets/images/stacked-coins.png -------------------------------------------------------------------------------- /public/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/assets/logo.png -------------------------------------------------------------------------------- /public/examples/a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/examples/a.png -------------------------------------------------------------------------------- /public/examples/b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/examples/b.png -------------------------------------------------------------------------------- /public/examples/c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/examples/c.png -------------------------------------------------------------------------------- /public/examples/d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/examples/d.png -------------------------------------------------------------------------------- /public/examples/e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/examples/e.png -------------------------------------------------------------------------------- /public/locales/en/common.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/locales/en/common.json -------------------------------------------------------------------------------- /public/locales/zh/common.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/locales/zh/common.json -------------------------------------------------------------------------------- /public/styled/a_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/a_0.png -------------------------------------------------------------------------------- /public/styled/a_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/a_1.png -------------------------------------------------------------------------------- /public/styled/a_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/a_2.png -------------------------------------------------------------------------------- /public/styled/a_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/a_3.png -------------------------------------------------------------------------------- /public/styled/a_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/a_4.png -------------------------------------------------------------------------------- /public/styled/b_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/b_0.png -------------------------------------------------------------------------------- /public/styled/b_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/b_1.png -------------------------------------------------------------------------------- /public/styled/b_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/b_2.png -------------------------------------------------------------------------------- /public/styled/b_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/b_3.png -------------------------------------------------------------------------------- /public/styled/b_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/b_4.png -------------------------------------------------------------------------------- /public/styled/c_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/c_0.png -------------------------------------------------------------------------------- /public/styled/c_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/c_1.png -------------------------------------------------------------------------------- /public/styled/c_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/c_2.png -------------------------------------------------------------------------------- /public/styled/c_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/c_3.png -------------------------------------------------------------------------------- /public/styled/c_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/c_4.png -------------------------------------------------------------------------------- /public/styled/d_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/d_0.png -------------------------------------------------------------------------------- /public/styled/d_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/d_1.png -------------------------------------------------------------------------------- /public/styled/d_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/d_2.png -------------------------------------------------------------------------------- /public/styled/d_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/d_3.png -------------------------------------------------------------------------------- /public/styled/d_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/d_4.png -------------------------------------------------------------------------------- /public/styled/e_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/e_0.png -------------------------------------------------------------------------------- /public/styled/e_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/e_1.png -------------------------------------------------------------------------------- /public/styled/e_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/e_2.png -------------------------------------------------------------------------------- /public/styled/e_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/e_3.png -------------------------------------------------------------------------------- /public/styled/e_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/public/styled/e_4.png -------------------------------------------------------------------------------- /src/app/(root)/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/app/(root)/layout.tsx -------------------------------------------------------------------------------- /src/app/(root)/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/app/(root)/page.tsx -------------------------------------------------------------------------------- /src/app/(root)/styled/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/app/(root)/styled/page.tsx -------------------------------------------------------------------------------- /src/app/api/coze-styled/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/app/api/coze-styled/route.ts -------------------------------------------------------------------------------- /src/app/api/get-image/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/app/api/get-image/route.ts -------------------------------------------------------------------------------- /src/app/api/upload/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/app/api/upload/route.ts -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/app/globals.css -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/assets/json/hair.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/assets/json/hair.json -------------------------------------------------------------------------------- /src/assets/json/lip.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/assets/json/lip.json -------------------------------------------------------------------------------- /src/components/shared/gitHub.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/components/shared/gitHub.tsx -------------------------------------------------------------------------------- /src/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/components/ui/button.tsx -------------------------------------------------------------------------------- /src/components/ui/card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/components/ui/card.tsx -------------------------------------------------------------------------------- /src/components/ui/checkbox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/components/ui/checkbox.tsx -------------------------------------------------------------------------------- /src/components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/components/ui/input.tsx -------------------------------------------------------------------------------- /src/components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/components/ui/label.tsx -------------------------------------------------------------------------------- /src/components/ui/radio-group.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/components/ui/radio-group.tsx -------------------------------------------------------------------------------- /src/components/ui/select.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/components/ui/select.tsx -------------------------------------------------------------------------------- /src/components/ui/sheet.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/components/ui/sheet.tsx -------------------------------------------------------------------------------- /src/components/ui/toast.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/components/ui/toast.tsx -------------------------------------------------------------------------------- /src/components/ui/toaster.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/components/ui/toaster.tsx -------------------------------------------------------------------------------- /src/components/ui/use-toast.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/components/ui/use-toast.ts -------------------------------------------------------------------------------- /src/constants/end.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/constants/end.ts -------------------------------------------------------------------------------- /src/constants/examples.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/constants/examples.ts -------------------------------------------------------------------------------- /src/constants/front.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/constants/front.ts -------------------------------------------------------------------------------- /src/constants/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/constants/index.ts -------------------------------------------------------------------------------- /src/constants/style.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/constants/style.ts -------------------------------------------------------------------------------- /src/hooks/useAssetDb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/hooks/useAssetDb.ts -------------------------------------------------------------------------------- /src/i18n.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/i18n.ts -------------------------------------------------------------------------------- /src/lib/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/lib/db.ts -------------------------------------------------------------------------------- /src/lib/imageUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/lib/imageUtils.ts -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/lib/utils.ts -------------------------------------------------------------------------------- /src/types/type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/types/type.ts -------------------------------------------------------------------------------- /src/utils/canvasImage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/utils/canvasImage.ts -------------------------------------------------------------------------------- /src/utils/color.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/utils/color.ts -------------------------------------------------------------------------------- /src/utils/download.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/utils/download.ts -------------------------------------------------------------------------------- /src/utils/face/eye_shape.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/utils/face/eye_shape.ts -------------------------------------------------------------------------------- /src/utils/face/face_shape.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/utils/face/face_shape.ts -------------------------------------------------------------------------------- /src/utils/face/hair_lines.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/utils/face/hair_lines.ts -------------------------------------------------------------------------------- /src/utils/face/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/utils/face/index.ts -------------------------------------------------------------------------------- /src/utils/face/mouth_shape.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/utils/face/mouth_shape.ts -------------------------------------------------------------------------------- /src/utils/face/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/utils/face/utils.ts -------------------------------------------------------------------------------- /src/utils/image.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/utils/image.ts -------------------------------------------------------------------------------- /src/utils/imagedata.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/utils/imagedata.ts -------------------------------------------------------------------------------- /src/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/src/utils/index.ts -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/tsconfig.json -------------------------------------------------------------------------------- /types/i18next.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mamumu123/magic-image/HEAD/types/i18next.d.ts --------------------------------------------------------------------------------