Sha256: 1eeaa5fd44c95189ac321d85cfb88e6ba8e52768518ffd0204d89dd80998c264

Contents?: true

Size: 366 Bytes

Versions: 12

Compression:

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

12 entries across 12 versions & 3 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/example/example4.rb
ruby-vips-2.2.2 example/example4.rb
ruby-vips-2.2.1 example/example4.rb
vips-8.15.1 example/example4.rb
ruby-vips-2.2.0 example/example4.rb
vips-8.12.2 example/example4.rb
vips-8.12.1 example/example4.rb
ruby-vips-2.1.4 example/example4.rb
ruby-vips-2.1.3 example/example4.rb
ruby-vips-2.1.2 example/example4.rb
ruby-vips-2.1.1 example/example4.rb
ruby-vips-2.1.0 example/example4.rb