Sha256: f20b70e095380fc0809094bfddb41db150128a9cebeefa1c9f5bb8233f87ba97

Contents?: true

Size: 387 Bytes

Versions: 9

Compression:

Stored size: 387 Bytes

Contents

#!/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
#Vips.set_debug true

10000.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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ruby-vips-2.0.1 example/example3.rb
ruby-vips-2.0.0 example/example3.rb
ruby-vips-1.0.6 example/example3.rb
ruby-vips-1.0.5 example/example3.rb
ruby-vips-1.0.4 example/example3.rb
ruby-vips-1.0.3 example/example3.rb
ruby-vips-1.0.2 example/example3.rb
ruby-vips-1.0.1 example/example3.rb
ruby-vips-1.0.0 example/example3.rb