I am trying to use @img.write(path) but it's not working (zero bytes  
written). Using "to_blob" works.


     f = Tempfile.new('tmp_img')
FAILING CODE:
     @img.write(f.path)

WORKING CODE:
     File.open(f.path, 'wb') do |f|
       f.syswrite(@img.to_blob)
     end


Any idea ?

(RMagick 2.5.2)

Thanks for any reply.

Gaspard