Sha256: 0123c24480558d78bec86454038f97c0326741b25204cc2744013c0db9d754c9
Contents?: true
Size: 487 Bytes
Versions: 1
Compression:
Stored size: 487 Bytes
Contents
#!/usr/bin/ruby require 'vips8' im = Vips::Image.new_from_file ARGV[0], :access => :sequential left_text = Vips::Image.text "left corner", :dpi => 300 left = left_text.embed 50, 50, im.width, 150 right_text = Vips::Image.text "right corner", :dpi => 300 right = right_text.embed im.width - right_text.width - 50, 50, im.width, 150 footer = (left | right).ifthenelse(0, [255, 0, 0], :blend => true) im = im.insert footer, 0, im.height, :expand => true im.write_to_file ARGV[1]
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-vips8-0.1.0 | example/annotate.rb |