--- image_pipeline/image_view/src/nodes/image_saver.cpp.bak	2013-02-19 19:25:09.832646384 +0900
+++ image_pipeline/image_view/src/nodes/image_saver.cpp	2013-02-19 19:25:44.478041164 +0900
@@ -11,6 +11,8 @@
 boost::format g_format;
 bool save_all_image, save_image_service;
 std::string encoding;
+std::string format_string;
+std::string enc_param, format_param;
 
 bool service(std_srvs::Empty::Request &req, std_srvs::Empty::Response &res) {
   save_image_service = true;
@@ -19,6 +21,10 @@
 
 void callback(const sensor_msgs::ImageConstPtr& image_msg, const sensor_msgs::CameraInfoConstPtr& info)
 {
+  ros::param::get(format_param, format_string);
+  g_format.parse(format_string);
+  ros::param::get(enc_param, encoding);
+
   cv::Mat image;
   try
   {
@@ -66,7 +72,8 @@
   local_nh.param("filename_format", format_string, std::string("left%04i.%s"));
   local_nh.param("encoding", encoding, std::string("bgr8"));
   local_nh.param("save_all_image", save_all_image, true);
-  g_format.parse(format_string);
+  enc_param = local_nh.resolveName("encoding");
+  format_param = local_nh.resolveName("filename_format");
   ros::ServiceServer save = local_nh.advertiseService ("save", service);
 
   ros::spin();
