Skip to content

Commit 323e4ae

Browse files
committed
Merge pull request #60 from rafamvc/master
deprecated Image.from_file was still used in the README
2 parents 45bb993 + 13268ad commit 323e4ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.rdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Need to combine several options?
6464

6565
Want to composite two images? Super easy! (Aka, put a watermark on!)
6666

67-
image = Image.from_file("original.png")
67+
image = Image.open("original.png")
6868
result = image.composite(Image.open("watermark.png", "jpg") do |c|
6969
c.gravity "center"
7070
end

0 commit comments

Comments
 (0)