Sha256: 771bf514be4323c5cf6b4b0a50a7e2900a45ee747d4e308d9122c966fef844dc

Contents?: true

Size: 367 Bytes

Versions: 9

Compression:

Stored size: 367 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

ARGV.each do |filename|
  im = Vips::Image.new_from_file filename
  profile = im.get_value "icc-profile-data"
  puts "profile has #{profile.length} bytes"
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
vips-8.11.3 example/example4.rb
vips-8.10.5 example/example4.rb
vips-8.9.1 example/example4.rb
ruby-vips-2.0.17 example/example4.rb
vips-8.8.4 example/example4.rb
vips-8.8.3 example/example4.rb
ruby-vips-2.0.16 example/example4.rb
vips-8.8.2 example/example4.rb
ruby-vips-2.0.15 example/example4.rb