A handy content creation tool that lets you browse, edit, and download images using the free image gallery API Lorem Picsum.
- Node: v20.14.0 (recommended)
- NPM: 10.8.2 (recommended)
- Playwright (run
npx playwright install
)
Clone the project
git clone https://github.com/zaikinv/synthesia-image-editor.git
Go to the project directory
cd synthesia-image-editor
Install dependencies
npm i
Start the server
npm run dev
Open http://localhost:5173/
in your browser.
See the src/config.js
file for the application configuration.
Example:
const appConfig = {
apiBaseUrl: 'https://picsum.photos',
editor: {
enabledControls: [
'width',
'height',
'grayscale',
'blur'
],
},
gallery: {
imagesPerPage: 10,
imagePreviewWidth: 300,
imagePreviewHeight: 200,
showMeta: [
'author',
'url'
],
},
};
npm run build
Also available on Vercel: Synthesia Image Editor.
npm run preview
Open http://localhost:4173/
in your browser.
npm run storybook
Open http://localhost:6006/
in your browser.
Also available on Vercel: Synthesia Image Editor Storybook.
npm run test:unit
Playwright installation is required. Check Prerequisites before running.
npm run test:e2e
Playwright installation is required. Check Prerequisites before running.
npm run test:e2e-ui