Sha256: 8845ace56739c4c44f06415a66c831839b1f80f3640497a19acc58cdfe550232

Contents?: true

Size: 716 Bytes

Versions: 1

Compression:

Stored size: 716 Bytes

Contents

# IMGKit

Cloned from [csquared](http://github.com/csquared/IMGKit) to fix these bugs:

1. Don't **spawn** new `wkhtmltoimage` and continue execution: wait for them to terminate!

2. Recognize that `TempFile` is a file.

The problem with 1. was that, while `wkhtmltoimage` was still running, the
(only partially) rendered image was being uploaded to S3, causing broken images.

The problem with 2. was that, since `wkhtmltoimage` [does not work with HTML in STDIN](http://code.google.com/p/wkhtmltopdf/issues/detail?id=534),
the HTML must be stored in a temporary file, and the original IMGKit thinks that
[Tempfile instances are not files](https://github.com/csquared/IMGKit/blob/master/lib/imgkit/source.rb#L14).

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
img-kit-1.3.9.1 README.md