Skip to content

Commit

Permalink
Un-protect some class methods to fix #118
Browse files Browse the repository at this point in the history
  • Loading branch information
dlpierce committed Mar 31, 2017
1 parent f9c61e4 commit 2945c07
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions lib/hydra/derivatives/processors/jpeg2k_image.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,18 @@ def layer_rates(layer_count, compression_numerator)
rates.map(&:to_s).join(',')
end

protected

def encode(path, recipe, output_file)
kdu_compress = Hydra::Derivatives.kdu_compress_path
execute "#{kdu_compress} -quiet -i #{path} -o #{output_file} #{recipe}"
end
def encode(path, recipe, output_file)
kdu_compress = Hydra::Derivatives.kdu_compress_path
execute "#{kdu_compress} -quiet -i #{path} -o #{output_file} #{recipe}"
end

def tmp_file(ext)
Dir::Tmpname.create(['sufia', ext], Hydra::Derivatives.temp_file_base) {}
end
def tmp_file(ext)
Dir::Tmpname.create(['sufia', ext], Hydra::Derivatives.temp_file_base) {}
end

def long_dim(image)
[image[:width], image[:height]].max
end
def long_dim(image)
[image[:width], image[:height]].max
end
end

def process
Expand Down

0 comments on commit 2945c07

Please sign in to comment.