GithubHelp home page GithubHelp logo

rossbeale / prawn-fast-png Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amberbit/prawn-fast-png

0.0 3.0 0.0 178 KB

An extension of Prawn that improves the performance when embedding PNG images containing an alpha channel

Home Page: http://amberbit.com/code

License: Other

Ruby 100.00%

prawn-fast-png's Introduction

prawn-fast-png

An extension of Prawn that improves the performance when embedding PNG images containing an alpha channel. Uses RMagick to separate RGB and alpha channels.

Usage

This gem doesn’t introduce any API changes, so please refer to Prawn’s RDoc.

require 'prawn'
require 'prawn/fast_png'

pdf = Prawn::Document.new
pdf.image 'dice.png'
pdf.render_file 'example.pdf'

Running Prawn’s tests

cd path_to_prawn_src
git tag # available versions
git checkout version.tag
# or
git checkout master
cd -
rake test PRAWN_DIR=path_to_prawn_src

for versions 0.5.1-0.8.3 add PRAWN_REQUIRE=prawn/core option

rake test PRAWN_DIR=path_to_prawn_src PRAWN_REQUIRE=prawn/core

GitHub

github.com/amberbit/prawn-fast-png

Mailing list

groups.google.com/group/prawn-ruby

Credits

prawn-fast-png is maintained by Wojciech Piekutowski, and is funded by AmberBit.

prawn-fast-png's People

Contributors

wpiekutowski avatar bradediger avatar

Watchers

James Cloos avatar Ross Beale 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.