Module: Vips::Process::Strip

Defined in:
lib/vips-process/strip.rb

Instance Method Summary collapse

Instance Method Details

#stripObject

Remove all exif and icc data when writing to a file. This method does not actually remove any metadata but rather marks it to be removed when writing the file.



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/vips-process/strip.rb', line 9

def strip
  manipulate! do |image|
    @_on_process << ->(writer) do
      writer.remove_exif
      writer.remove_icc
    end

    image
  end
  self
end