Skip to content

NgoJunHaoJason/passport-photo

Repository files navigation

ICA Passport Photo

TODO:

  1. refactor code
  2. improve UI design
  3. handle edge cases / scenarios
  4. add features (e.g. normalisation, brighten / darken background, etc)
  5. use different models depending on device (lighter on mobile)

References:

Developing

Start a development server:

npm run dev

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app:

npm run build

Fix build/index.html to use relative path due to bug in Svelte's static adapter

  • i.e. change href="/internal" to href="./internal"

Then:

npx gh-pages -d build -t true