lib/kanoko/application/convert.rb in kanoko-0.1.1 vs lib/kanoko/application/convert.rb in kanoko-0.1.2
- old
+ new
@@ -62,14 +62,14 @@
if res.nil?
return 404
end
after_response res
- Tempfile.open("src") do |src_file|
+ Tempfile.create("src") do |src_file|
src_file.write res.body
src_file.fdatasync
- Tempfile.open("dst") do |dst_file|
+ Tempfile.create("dst") do |dst_file|
system_command = [
{"OMP_NUM_THREADS" => "1"},
'convert',
'-depth', '8',
argument.options,