зеркало из https://github.com/github/ruby.git
* lib/open3.rb: [DOC] Fix typo (s/thumnail/thumbnail/)
[ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
c4487ee06b
Коммит
64ac49e6fe
|
@ -235,7 +235,7 @@ module Open3
|
|||
# p e #=> "bar\nbaz\nfoo\n"
|
||||
# p s #=> #<Process::Status: pid 32682 exit 0>
|
||||
#
|
||||
# # generate a thumnail image using the convert command of ImageMagick.
|
||||
# # generate a thumbnail image using the convert command of ImageMagick.
|
||||
# # However, if the image is really stored in a file,
|
||||
# # system("convert", "-thumbnail", "80", "png:#{filename}", "png:-") is better
|
||||
# # because of reduced memory consumption.
|
||||
|
@ -243,9 +243,9 @@ module Open3
|
|||
# # Open3.capture3 should be considered.
|
||||
# #
|
||||
# image = File.read("/usr/share/openclipart/png/animals/mammals/sheep-md-v0.1.png", :binmode=>true)
|
||||
# thumnail, err, s = Open3.capture3("convert -thumbnail 80 png:- png:-", :stdin_data=>image, :binmode=>true)
|
||||
# thumbnail, err, s = Open3.capture3("convert -thumbnail 80 png:- png:-", :stdin_data=>image, :binmode=>true)
|
||||
# if s.success?
|
||||
# STDOUT.binmode; print thumnail
|
||||
# STDOUT.binmode; print thumbnail
|
||||
# end
|
||||
#
|
||||
def capture3(*cmd, stdin_data: '', binmode: false, **opts)
|
||||
|
|
Загрузка…
Ссылка в новой задаче