You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docuseal/vendor/bundle/ruby/4.0.0/gems/ruby-vips-2.3.0/example/example3.rb

20 lines
382 B

#!/usr/bin/ruby
require "vips"
# this makes vips keep a list of all active objects
Vips.leak_set true
# disable the operation cache
# Vips::cache_set_max 0
# turn on debug logging
GLib.logger.level = Logger::DEBUG
10.times do |i|
puts "loop #{i} ..."
im = Vips::Image.new_from_file ARGV[0]
im = im.embed 100, 100, 3000, 3000, extend: :mirror
im.write_to_file "x.v"
end