Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.

clarekang/react-ts-canvas-photo-upload

Repository files navigation

This project was bootstrapped with Create React App.

Below you will find some information on how to perform common tasks.
You can find the most recent version of this guide here.

Description

This repository is an example of uploading portraits using React, TypeScript, HTML5 Canvas, and GCS (Google CLOUD VISION API). The uploaded portrait is analyzed by GCS to be a suitable photo, and crop and resize to the specified size and ratio.

How To Work

$ git clone https://github.com/ClareKang/react-ts-canvas-photo-upload.git
$ cd react-ts-canvas-photo-upload
$ yarn install

or online demo (You Need GCS API Key and you shuold allow this page.)

http:https://www.clarekang.me/react-ts-canvas-photo-upload

Enjoy it 😎