Sha256: d09f063a254a15e88ad95e398f347794b13aa0a1dd2b76261abe5ff82b9b3722
Contents?: true
Size: 509 Bytes
Versions: 9
Compression:
Stored size: 509 Bytes
Contents
#!/usr/bin/ruby require 'vips' puts "" puts "starting up:" # this makes vips keep a list of all active objects which we can print out Vips::leak_set true # disable the operation cache Vips::cache_set_max 0 n = 100 n.times do |i| puts "" puts "call #{i} ..." out = Vips::call "black", 200, 300 if out.width != 200 or out.height != 300 puts "bad image result from black" end end puts "" puts "after #{n} calls:" GC.start Vips::Object::print_all puts "" puts "shutting down:"
Version data entries
9 entries across 9 versions & 1 rubygems