-
Added
:inherit_fdsoption for handing open file descriptors to the IM command, so an input that's already an open IO can be passed as/dev/fd/Ninstead of being written out to a file first:File.open("input.jpg", "rb") do |file| MiniMagick.identify(inherit_fds: [file]) do |identify| identify << "/dev/fd/#{file.fileno}" end end
Thanks to @flavorjones for the contribution!