diff --git a/src/ros_compressed_streamer.cpp b/src/ros_compressed_streamer.cpp index eedcf0d..e1a142e 100644 --- a/src/ros_compressed_streamer.cpp +++ b/src/ros_compressed_streamer.cpp @@ -36,7 +36,7 @@ void RosCompressedStreamer::sendImage(const sensor_msgs::CompressedImageConstPtr const ros::Time &time) { try { std::string content_type; - if(msg->format.find("jpeg") != std::string::npos) { + if(msg->format.find("jpeg") != std::string::npos || msg->format.find("jpg") != std::string::npos) { content_type = "image/jpeg"; } else if(msg->format.find("png") != std::string::npos) {