Skip to content
/ IMGKit Public
forked from csquared/IMGKit

Uses wkhtmltoimage to create JPGs, PNGs, and TIFFs from HTML

License

Notifications You must be signed in to change notification settings

tzonto/IMGKit

 
 

Repository files navigation

IMGKit

Cloned from csquared 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, the HTML must be stored in a temporary file, and the original IMGKit thinks that Tempfile instances are not files.

About

Uses wkhtmltoimage to create JPGs, PNGs, and TIFFs from HTML

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 99.0%
  • Other 1.0%