lib/rabbit/image/gimp.rb in rabbit-2.2.1 vs lib/rabbit/image/gimp.rb in rabbit-3.0.0
- old
+ new
@@ -39,10 +39,10 @@
args.concat(["-b", command])
args.concat(["-b", "(gimp-quit TRUE)"])
if GIMP_COMMANDS.any? {|gimp| run(gimp, *args); File.exist?(png_path)}
png_file.open
png_file.binmode
- @pixbuf = load_data(png_file.read)
+ load_data(png_file.read)
else
raise GIMPCanNotHandleError.new("gimp #{args.join(' ')}",
GIMP_COMMANDS)
end
end