Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amberbit/prawn-fast-png
An extension of Prawn that improves the performance when embedding PNG images containing an alpha channel
https://github.com/amberbit/prawn-fast-png
Last synced: 3 months ago
JSON representation
An extension of Prawn that improves the performance when embedding PNG images containing an alpha channel
- Host: GitHub
- URL: https://github.com/amberbit/prawn-fast-png
- Owner: amberbit
- License: other
- Created: 2009-04-04T19:53:37.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2022-02-15T00:24:18.000Z (over 2 years ago)
- Last Synced: 2023-12-18T22:50:11.731Z (11 months ago)
- Language: Ruby
- Homepage: http://amberbit.com/code
- Size: 174 KB
- Stars: 30
- Watchers: 5
- Forks: 23
- Open Issues: 7
-
Metadata Files:
- Readme: README.rdoc
- License: COPYING
Awesome Lists containing this project
README
= prawn-fast-png
An extension of Prawn[http://github.com/sandal/prawn] that improves the
performance when embedding PNG images containing an alpha channel. Uses
RMagick[http://rmagick.rubyforge.org/] to separate RGB and alpha channels.= Usage
This gem doesn't introduce any API changes, so please refer to
{Prawn's RDoc}[http://prawn.majesticseacreature.com/docs/prawn-core/].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_srcfor 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
http://github.com/amberbit/prawn-fast-png= Mailing list
http://groups.google.com/group/prawn-ruby=Credits
prawn-fast-png is maintained by {Wojciech Piekutowski}[http://piekutowski.net],
and is funded by AmberBit[http://amberbit.com].