Open mukul13 opened 2 years ago
I've gotten around this by downloading/opening the external file to a Tempfile and using that temp path in the open
method
file = URI.parse(remote_url).open
images = PDFToImage.open(File.expand_path(file.path))
images.each do |img|
img.save("page-#{img.page}.jpg")
end
Hi,
Thanks for creating this gem!
Question I have: Is it possible to use a remote url instead of local path?