Giter Site home page Giter Site logo

ng2-media-dir-gallery's Introduction

Angular 2 Media Gallery from Directory

Standalone Website Viewer for Media Directory e.g. show Holiday Media files on mobile Devices in your local WLAN, served by a Raspberry Pi Supports Images / videos (mp4, 3gp, webm, via HTML5 video tag) see https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats Browser: IE: 9.0+ Chrome: 4.0+ Firefox: 3.5+ Safari: 4.0+ Opera: 10.5+

The project consists of a Website and a script for image preparation.

Before using the gallery, you have to process all of your images that will be part of your gallery with the node.js script. The processed images will be stored to your applications assets. During runtime everything runs client-side and there is no separate server-side communication involved. The viewer takes care that an optimal image quality is served based on the device resolution.

based on https://github.com/BenjaminBrandmeier/angular2-image-gallery

Demo

TODO

How to use the gallery in your project

Pre-requirements

Install node 6.9.4+ and graphicsmagick: http://www.graphicsmagick.org/README.html#installation

HowTo - Run convert script

convert.js path/to/your/media/basedir

Add a flag to define the order of the images inside the gallery

-n sort by file name (default)

-d sort chronologically by the original creation time (e.g. for coverages of a wedding)

-c sort by primary image color

HowTo - run for development

TODO

HowTo - run in production (low memory footprint, tested on Raspberry Pi 2 B+)

TODO

Currently used tools

  • Angular 2.3.1
  • NodeJS 7.3.0
  • Angular-CLI 1.0.0-beta.24
  • graphicsmagick

Troubleshooting

If the conversion process fails, make sure you have enough swap space provided.

If you experience any other issues, please raise an issue on GitHub.

ng2-media-dir-gallery's People

Contributors

mojjj avatar

Watchers

James Cloos avatar  avatar

ng2-media-dir-gallery's Issues

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.