lib/rabbit/image/gimp.rb in rabbit-2.1.2 vs lib/rabbit/image/gimp.rb in rabbit-2.1.3
- old
+ new
@@ -39,11 +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
- loader = load_by_pixbuf_loader(png_file.read)
- @pixbuf = loader.pixbuf
+ @pixbuf = load_data(png_file.read)
else
raise GIMPCanNotHandleError.new("gimp #{args.join(' ')}",
GIMP_COMMANDS)
end
end