Sha256: d3884296844850d6efe1d8858f5d0462a0cf880ec4aa1eb7b1ed1dbacc1df584
Contents?: true
Size: 584 Bytes
Versions: 5
Compression:
Stored size: 584 Bytes
Contents
# frozen_string_literal: true require_relative "image_composer" module RemoveBg class Configuration attr_accessor :api_key, :image_processor, :auto_upgrade_png_to_zip def self.configuration @configuration ||= Configuration.new.tap do |config| config.image_processor = ImageComposer.detect_image_processor # Upgrade to ZIP where possible to save bandwith config.auto_upgrade_png_to_zip = true end end def self.reset @configuration = nil end def can_process_images? !image_processor.nil? end end end
Version data entries
5 entries across 5 versions & 1 rubygems