lib/carrierwave/blitline.rb
def rip_process_images(_file)
      return unless rip_can_begin_processing?
      Rails.logger.tagged("Blitline") { |l| l.debug(job_hash.to_json) }
      blitline_service.add_job_via_hash(job_hash)
      begin
        blitline_service.post_jobs
      rescue StandardError => e
        Rails.logger.tagged("Blitline") do |logger|
          logger.error format("ERROR: Blitline processing error for %<class>\n%<message>",
                              class: model.class.name, message: e.message)
        end
      end
    end
# Send a request to Blitline to optimize the original file and create any
# required versions.
#
#   This is called by an after_store macro and because Carrier creates virtual
#   instancies for each version would be called 4 times for an image with three
#   versions.
#
#   Because we only want to do this on completion we check all the versions
#   have been called by testing it is OK to begin processing
#
#   A hash is created (job_hash) with Blitline's required commands and sent using the
#   Blitline gem.
#
#  file - not used within the method, but required for the callback to function
Send a request to Blitline to optimize the original file and create any
required versions.

This is called by an after_store macro and because Carrier creates virtual
instancies for each version would be called 4 times for an image with three
versions.

Because we only want to do this on completion we check all the versions
have been called by testing it is OK to begin processing

A hash is created (job_hash) with Blitline's required commands and sent using the
Blitline gem.

not used within the method, but required for the callback to function
Send a request to Blitline to optimize the original file and create any required versions . This is called by an after_store macro and because Carrier creates virtual instancies for each version would be called 4 times for an image with three versions . Because we only want to do this on completion we check all the versions have been called by testing it is OK to begin processing A hash is created ( job_hash ) with Blitline ' s required commands and sent using the Blitline gem . not used within the method but required for the callback to function
def rip_process_images(_file)
      return unless rip_can_begin_processing?
      Rails.logger.tagged("Blitline") { |l| l.debug(job_hash.to_json) }
      blitline_service.add_job_via_hash(job_hash)
      begin
        blitline_service.post_jobs
      rescue StandardError => e
        Rails.logger.tagged("Blitline") do |logger|
          logger.error format("ERROR: Blitline processing error for %<class>\n%<message>",
                              class: model.class.name, message: e.message)
        end
      end
    end
def rip_process_images ( _file ) return unless rip_can_begin_processing? Rails . logger . tagged ( "Blitline" ) { | l | l . debug ( job_hash . to_json ) } blitline_service . add_job_via_hash ( job_hash ) begin blitline_service . post_jobs rescue StandardError => e Rails . logger . tagged ( "Blitline" ) do | logger | logger . error format ( "ERROR: Blitline processing error for %<class>\n%<message>" , class : model . class . name , message : e . message ) end end end
Send a request to Blitline to optimize the original file and create any
required versions.
Send a request to Blitline to optimize the original file and create any required versions .
_file