A React-based digital production studio website showcasing design, animation, and technology work.
This project previously had CORS (Cross-Origin Resource Sharing) issues when trying to load images from external domains. The following fixes have been implemented:
- CORS Errors: Images were being loaded from
https://thirtysixstudio.com/peppers/which caused CORS errors when drawing on canvas - Unreliable Proxy: The code was using an unreliable CORS proxy (
https://cors-anywhere.herokuapp.com/) - External Domain Dependencies: Loading images from external domains without proper permissions
- Local Image Storage: All pepper animation images have been downloaded and stored locally in
public/images/peppers/ - Removed CORS Proxy: Eliminated the unreliable proxy dependency
- Error Handling: Added proper error handling with fallback placeholders for failed image loads
- Updated Paths: Modified
src/canvasimages.jsto use local image paths
public/
images/
peppers/
pepperA/ (149 images)
pepperB/ (150 images)
pepperC/ (150 images)
pepperD/ (150 images)
pepperE/ (150 images)
pepperF/ (150 images)
pepperG/ (150 images)
If you need to re-download the images, run:
node download-images.jsThis script will:
- Download all pepper animation images from the original source
- Save them to the local
public/images/peppers/directory - Update
src/canvasimages.jswith local paths
npm install
npm run dev- React
- Vite
- GSAP (GreenSock Animation Platform)
- Locomotive Scroll
- Canvas API for image rendering