require ‘png2swf’
Png2swf::DefineBitsLossless2.image2data_from_file(‘path/to/png’)
License: MIT (see LICENSE)