Skip to content

Repository files navigation

Image Editor with glfx.js

This repository contains a React-based Image Editor that integrates both Standard and WebGL editors, allowing users to apply various filters and effects to images. The app uses glfx.js for the WebGL editor and provides a fallback editor for standard image manipulation. The editor supports dynamic image uploads and offers a seamless experience for image editing directly in the browser. This solution is built with Next.js and is designed to be lightweight and compatible with most modern browsers.

Key Features:

  • Image Upload: Users can upload images directly from their file system.
  • Standard Editor: Basic image manipulation tools for users who prefer compatibility.
  • WebGL Editor: Advanced editing with WebGL support (via glfx.js).
  • Dynamic Script Loading: The WebGL editor is loaded dynamically to avoid unnecessary dependencies.
  • User-Friendly Interface: Built with TailwindCSS for responsive and modern UI.

Setup Instructions

Follow the steps below to set up this project locally.

1. Clone the repository

Clone this repository to your local machine using the following command:

git clone https://github.com/jsdevspace/image-editor-nextjs
cd image-editor-nextjs

2. Install dependencies

This project uses npm for package management. Install all the necessary dependencies:

npm install

3. Set up environment variables

No specific environment variables are needed for this project. However, if you plan to deploy to a platform like Vercel or Netlify, make sure to configure any deployment-specific settings as needed.

4. Run the application

To start the application locally, run the following command:

npm run dev

The application will be available at http://localhost:3000. Open this URL in your browser to begin using the image editor.

5. Modify the editor components

You can modify the ImageEditor, FallbackEditor, and other components inside the components/ folder to further customize the image editing features.

Contributing

Feel free to contribute to this project by submitting issues or pull requests. Any improvements or feature suggestions are welcome!

It was created for tutorial on JSDev Space

Releases

Packages

Used by

Contributors

Languages