Skip to content

Commit

Permalink
whitespace cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
orangewolf committed Nov 7, 2024
1 parent d552ffe commit 0235b35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/iiif_print/image_tool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ def im_identify
memory_limit = IiifPrint.config.memory_limit
map_limit = IiifPrint.config.map_limit
disk_limit = IiifPrint.config.disk_limit

cmd = "identify"

cmd += " -limit memory #{memory_limit}" if memory_limit.present?
cmd += " -limit map #{map_limit}" if map_limit.present?
cmd += " -limit disk #{disk_limit}" if disk_limit.present?

cmd += " -format 'Geometry: %G\nDepth: %[bit-depth]\nColorspace: %[colorspace]\nAlpha: %A\nMIME type: %m\n' #{path}"

output, status = Open3.capture2(cmd)
Rails.logger.info "Identify command output: #{output}"
Rails.logger.info "Identify command status: #{status}"
Expand Down

0 comments on commit 0235b35

Please sign in to comment.