Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
An extension of Prawn that improves the performance when embedding PNG images containing an alpha channel
Ruby
tag: 0.1.3

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/prawn
.gitignore
COPYING
LICENSE
README.rdoc
Rakefile
prawn-fast-png.gemspec

README.rdoc

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

To run tests you need to execute first…

git submodule init
git submodule update

cd vendor/prawn
git submodule init
git submodule update

cd ../..

…then…

rake test

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.

Something went wrong with that request. Please try again.