Giter VIP home page Giter VIP logo

image_processor's Introduction

Install dependencies

bundle install

Tests

rspec

Interactive console

ruby run.rb

Non interactive

ruby run.rb -i data/works.xml -o 'out3' -cmd

Alternatively

chmod +x ./run.rb
./run.rb

Assumptions

  • Performance was not a consideration. As it is not clear what are exact performance reqs performance has been considered not important.
  • Styling - it was not clear from the problem description are separate styles gonna be provided to be used later with generated HTML. Due to that no styling has been done.

Problem description

The system has many digital images often taken with a camera. We have exported EXIF data from a selection of these images. Create a set of static HTML files to allow a user to browse these images.

Create a batch processor that takes the input file and produces a single HTML file (based on the output template given with this test) for each camera make, camera model and also an index.

The index HTML page must contain:

  • Thumbnail images for the first 10 work
  • Navigation that allows the user to browse to all camera makes

Each Camera Make HTML page must contain:

  • Thumbnail images of the first 10 works for that camera make
  • Navigation that allows the user to browse to the index page and to all camera models of that make

Each Camera Model HTML page must contain:

  • Thumbnail images of all works for that camera make and model
  • Navigation that allows the user to browse to the index page and the camera make

The batch processor should take the location of the input file and the output directory as parameters.

The input file only contains a small sample set of works.

image_processor's People

Contributors

maxim-filimonov avatar

Watchers

James Cloos 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.