Skip to content

Commit

Permalink
Merge pull request #254 from ifad/feature/improve-convert-command
Browse files Browse the repository at this point in the history
Fix ImageMagick command for v7 option handling
  • Loading branch information
tagliala authored Sep 12, 2024
2 parents 3c57b28 + 27183db commit 4b070c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/heathen/processor_methods/convert_image.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ class Processor
# utility from ImageMagick. Sets the job content to the new format.
# @param to [String] the format to convert to (suffix)
# @param params [Array] optional parameters to pass to the convert program.
def convert_image to: 'tiff', params: nil
def convert_image to: 'tiff', params: ''
expect_mime_type 'image/*'

target_file = temp_file_name '', ".#{to.to_s}"
executioner.execute(
*[Colore::C_.convert_path,
params.split(/ +/),
job.content_file,
params.split(/ +/),
target_file].flatten
)
raise ConversionFailed.new if executioner.last_exit_status != 0
Expand Down

0 comments on commit 4b070c7

Please sign in to comment.