Sha256: 06fa224534610d07d3a1d783db95acc28ab00ff9fc15dad715562063ba3df3bb

Contents?: true

Size: 388 Bytes

Versions: 1

Compression:

Stored size: 388 Bytes

Contents

#!/usr/bin/ruby

require 'vips8'

# 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

1 entries across 1 versions & 1 rubygems

Version Path
ruby-vips8-0.1.0 example/example3.rb