to_blob
, this returns a huge blob string, that somehow errors out while trying to pass it as an argument to a sidekiq worker. Im getting Encoding::UndefinedConversionError: "\x89" from ASCII-8BIT to UTF-8
t = Tempfile.new('pdf.page.image').write(blob)
and i get the same error
pry(main)> i = Magick::Image.from_blob(IO.read('/tmp/test.jpg')) ; pid = fork { i.display } ; Process.detach(pid)
[ JPEG 2000x1050 2000x1050+0+0 DirectClass 8-bit 266kb]=> #<Thread:0x00000001b18450 sleep>
[ JPEG 2000x1050 2000x1050+0+0 DirectClass 8-bit 266kb]=> 734