Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple "no images on your server" blitline example. Direct to S3 post and processing by blitline and javascript.
JavaScript Ruby
branch: master

Merge pull request #1 from hisyam/bugfix

First thumbnail shouldn't overwrite the original image
latest commit d3651e65ec
@blitline-dev authored
Failed to load latest commit information.
app first thumbnail shouldn't overwrite original image
config Reset project
db Reset project
lib Fix for quotes
public Reset project
script Reset project
test Reset project
Gemfile Reset project
Gemfile.lock Reset project
README.rdoc Reset project
Rakefile Reset project
config.ru Reset project

README.rdoc

Blitquick

Blitquick is a simple end-to-end demo app that lets the user select a file to upload, then uploads it directly to S3. Once uploaded it runs a Blitline job on it which watermarks it, then outputs a couple thumbnails. This application only requires a few lines of ruby code and some javascript files.

Requirements

  1. You must have an S3 account with a bucket available to you. You will need to add your AWS Access Token and secret to the config file.

  2. You must have a Blitline Account ID, which you get by simply logging in to Blitline.com

  3. You will need to be running rails 3.x for this to work, otherwise you will need to move the files from app/assets to public/

Getting Started

Clone this application into a directory as you would any Git repository.

git clone https://github.com/blitline-dev/blitquick.git

Bundle Install

bundle install

Open the lib/blitquick.rb file and enter the required config options:

Blitquick.configure do |config|     
  config['aws_access_key'] = "YOUR_AWS_ACCESS_KEY"
  config['aws_secret_key'] = "YOUR_AWS_SECRET_KEY"
  config['aws_bucket'] = "YOUR_AWS_BUCKET"
  config['blitline_application_id'] = "YOUR_BLITLINE_ID"
end

Fire up the rails app

bundle exec rails server

Open a browser and navigate to localhost:3000

Manifest Info

These are the files that are included in this demo app

  • Controllers:

    blitquick_controller.rb
  • Views:

    layouts
      application.html.erb
    blitquick
      s3_upload_completed.html.erb
      sample.html.erb
  • Lib

    blitquick.rb
  • Javascripts

    jquery.fileupload.js
    jquery.iframe-transport.js
    jquery.ui.widget.js
    output.js
    sample.js
  • Gems

    blitline
Something went wrong with that request. Please try again.