We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a022f6 commit e8156cbCopy full SHA for e8156cb
src/ros_compressed_streamer.cpp
@@ -37,7 +37,7 @@ void RosCompressedStreamer::sendImage(const sensor_msgs::CompressedImageConstPtr
37
const ros::Time &time) {
38
try {
39
std::string content_type;
40
- if(msg->format.find("jpeg") != std::string::npos) {
+ if(msg->format.find("jpeg") != std::string::npos || msg->format.find("jpg") != std::string::npos) {
41
content_type = "image/jpeg";
42
}
43
else if(msg->format.find("png") != std::string::npos) {
0 commit comments