Skip to content

Instantly share code, notes, and snippets.


treeder/img_processor_part.rb Secret

Last active Dec 7, 2015
What would you like to do?
payload = IronWorker.payload
file = download_image(payload)
payload['operations'].each do |op|
puts "\nPerforming #{op['op']} with #{op.inspect}"
output_filename = op['destination']
image =
image = self.send(op['op'], image, {}.merge(op))
image.format op['format'] if op['format']
write_image(image, output_filename)
upload_file payload, output_filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.