---
scribo/ChangeLog | 5 +++++
scribo/src/text_in_picture.cc | 8 +++++---
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index 4c39daf..f3f150f 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-18 Guillaume Lazzara <z(a)lrde.epita.fr>
+
+ * src/text_in_picture.cc: Initialize ImageMagick and fix usage
+ message.
+
2011-02-05 Guillaume Lazzara <z(a)lrde.epita.fr>
* demo/viewer/xml_widget.cc: Fix data tracking of selected
diff --git a/scribo/src/text_in_picture.cc b/scribo/src/text_in_picture.cc
index 042b8d3..e2f30de 100644
--- a/scribo/src/text_in_picture.cc
+++ b/scribo/src/text_in_picture.cc
@@ -1,5 +1,5 @@
-// Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
-// (LRDE)
+// Copyright (C) 2009, 2010, 2011 EPITA Research and Development
+// Laboratory (LRDE)
//
// This file is part of Olena.
//
@@ -176,7 +176,7 @@ int main(int argc, char* argv[])
if (argc < 3 || argc > 11)
return scribo::debug::usage(argv,
"Find text in a photo.\n\n"
- "Common usage: ./text_in_photo_fast input.*"
+ "Common usage: ./text_in_picture input.*"
" output.ppm 1 1 1 1 1",
"input.ppm output.ppm <bg/fg enabled>"
" <sauvola_ms enabled> "
@@ -197,6 +197,8 @@ int main(int argc, char* argv[])
trace::entering("main");
+ Magick::InitializeMagick(*argv);
+
image2d<value::rgb8> input_rgb;
io::magick::load(input_rgb, argv[1]);
--
1.5.6.5