GithubHelp home page GithubHelp logo

imgly / pesdk-ruby-gem-demo Goto Github PK

View Code? Open in Web Editor NEW
0.0 19.0 3.0 47.85 MB

[Deprecated] Ruby Gem Demo for PhotoEditorSDK HTML5

Home Page: https://www.photoeditorsdk.com

License: Other

Ruby 100.00%

pesdk-ruby-gem-demo's Introduction

You can find our latest examples at https://github.com/imgly/pesdk-web-examples.

PhotoEditor SDK for HTML5 Ruby/Rails Gem Demonstration

Rails Gem for easily integrating PhotoEditor SDK for HTML5 in Ruby on Rails.

Note

The PhotoEditor SDK is a product of img.ly GmbH. Please request a license. Please see LICENSE.md for licensing details.

PhotoEditor SDK for HTML5.

The PhotoEditor SDK for HTML5 is a fully customizable photo editor which you can integrate into your Rails app within minutes.

Setup the Rails asset pipeline

  1. Reference Gem in your bundlers Gemfile. Open your Gemfile and insert
...
gem 'pesdk-html5-rails', :git => 'https://github.com/imgly/pesdk-ruby-gem-demo.git'
...
  1. Register javascript with the Rails asset pipeline. Open /assets/javascripts/application.js and insert the following lines
...
//= require react.production.min
//= require react-dom.production.min
//= require react-dom-server.browser.production.min
//= require styled-components.min
//= require photoeditorsdk
...
  1. Create a custom javascript file or modify your application.js to initialize the PhotoEditor UI on window load as follows
...

window.onload = function () {
   PhotoEditorSDK.PhotoEditorSDKUI.init({
       container: '#pesdk',
       license: '', // <- replace this with the content of your license file. The JSON-object needs to be in string format
       image: '', // <- Image url or Image path relative to assets folder
       assetBaseUrl: '/assets',
  })
}
...
  1. Now, put a <div/> element in the view
...
<div id="pesdk"  style="width: 1024px; height: 768px;">
...

License

Please see LICENSE for licensing details.

Authors and Contributors

Made 2013-2020 by img.ly

Support or Contact

Use our service desk for bug reports or support requests. To request a commercial license, please use the license request form on our website.

pesdk-ruby-gem-demo's People

Contributors

alanuecker avatar dnlmchlk avatar keiwando avatar maltebaumann avatar phoenixraw avatar piyukore06 avatar sascha avatar timokae avatar toniha93 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.