Git Product home page Git Product logo

image-uploader's Introduction

🚩 Challenge

Create a simple app that includes the following:

  1. A webpage where the user can upload an image
  2. Each image has to be exactly 1024 x 1024.
  3. Don’t upload the file if it’s not the right size
  4. Each image has to be converted into four different sizes. horizontal : 755 x 450 vertical : 365 x 450 horizontal small : 365 x 212 gallery : 380 x 380 Images should not be stretched, they should be cropped.
  5. Save all four of these images locally on the server
  6. Show a webpage with all four of these new images.

    Bonus: Instead of saving these files to the server, upload them to a cloud image hosting service.
    Double Bonus: While uploading the image show a preview in the browser itself of all the different image sizes, and let the user decide how to crop the images to the smaller size.

🔨 Setup Project

  1. Make sure that you have Node.js v8.15.1 and npm v5 or above installed.
  2. Clone this repo using git clone https://github.com/mknmohit/image-uploader.git
  3. Move to the appropriate directory: cd image-uploader.
  4. Run npm install in order to install dependencies.
  5. Run npm start to see the app at http://localhost:3000.

Please note that this project have been created using the react-boilerplate (https://github.com/react-boilerplate/react-boilerplate) as the base setup.

image-uploader's People

Contributors

mknmohit avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.