Commit b5c8b03a authored by Florian Hübsch's avatar Florian Hübsch
Browse files

Add thumbnailer gem, update README.

parent 1f24c79b
......@@ -64,12 +64,15 @@ gem 'delayed_job_active_record'
# required by cap3 delayed-job but has to be specified manually >_<
gem 'daemons'
# dataset previews
gem 'thumbnailer', :git => 'https://github.com/merlin-p/thumbnailer.git'
group :production do
if ENV["RAILS_ENV"] == "production"
gem 'openbabel'
end
gem 'unicorn'
end
group :development, :test do
......
......@@ -10,6 +10,12 @@ GIT
specs:
openbabel (2.3.2.1)
GIT
remote: https://github.com/merlin-p/thumbnailer.git
revision: 33933ff636bbc0f3b0ab53735749b71ab8955b77
specs:
thumbnailer (0.1.0)
GEM
remote: https://rubygems.org/
specs:
......@@ -402,6 +408,10 @@ DEPENDENCIES
sdoc (~> 0.4.0)
spring
thin
thumbnailer!
uglifier (>= 1.3.0)
unicorn
web-console (~> 2.0)
BUNDLED WITH
1.10.6
......@@ -17,6 +17,10 @@ if there are errors with nokogiri compilation with new xcode7:
* `apt-get install libmagickcore-dev libmagickwand-dev` for linux
* if installing the rmagick gem fails you may try: `IM_PREFIX=$(brew list imagemagick 2>&1 | grep -E 'identify$' | sed 's/bin\/identify$//g') PKG_CONFIG_PATH=${IM_PREFIX}lib/pkgconfig/ C_INCLUDE_PATH=${IM_PREFIX}include/ImageMagick*/ gem install rmagick` (OSX only)
## Dataset previews
* `brew install imagemagick mplayer` for OSX
* `sudo apt-get -y install imagemagick mplayer` for Linux
## Application Setup
* Execute `bundle install`.
* Execute `rake db:reset` (this creates and seeds the database).
......@@ -47,26 +51,6 @@ Currently 3 users are seeded with respective email `test@ninjaconcept.com`, `hat
Run `rake jobs:work` for asynchronous handling of email notifications. Run `mailcatcher` in your console and go to `localhost:1080` to see all sent mails.
# API (v1)
## Collections
* Get serialized, unshared collection roots for current user
`/api/v1/collections/roots`
* Get serialized, shared collection roots for current user
`/api/v1/collections/shared_roots`
* Get serialized samples by collection id
`/api/v1/collections/:collection_id/samples`
* Get serialized sample by id
`/api/v1/samples/:id`
# Icon Font
* put new icons as SVG files (e.g. '<ICON_NAME>.svg') in `app/assets/images/svg_icons`
......
Thumbnailer.config do |c|
c.thumbnail_size = 128
c.cache_path = "#{Rails.root}/tmp/cache/assets/development/thumbnails/"
c.render_dpi = 90 # PDF render resolution
c.video_skip_to = 1 # first second
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment