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 047857a commit 0671cb1Copy full SHA for 0671cb1
src/ros_compressed_streamer.cpp
@@ -36,7 +36,7 @@ void RosCompressedStreamer::sendImage(const sensor_msgs::CompressedImageConstPtr
36
const ros::Time &time) {
37
try {
38
std::string content_type;
39
- if(msg->format.find("jpeg") != std::string::npos) {
+ if(msg->format.find("jpeg") != std::string::npos || msg->format.find("jpg") != std::string::npos) {
40
content_type = "image/jpeg";
41
}
42
else if(msg->format.find("png") != std::string::npos) {
0 commit comments