A simple gem with a native C extension, that allow storing images from clipboard directly into the file.
gtk is required since extension uses gtk library to retrieve image from clipboard.
gem 'imgclip'
And then execute:
$ bundle
Or install it yourself as:
$ gem install imgclip
require "imgclip"
Imgclip.clipboard_to_file PATH #=> returns path or exception
Bug reports and pull requests are welcome on GitHub at https://github.com/vmikhaliuk/imgclip. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
Everyone interacting in the Imgclip project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.