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 140ff53 commit 375fd06Copy full SHA for 375fd06
src/ros_compressed_streamer.cpp
@@ -62,7 +62,9 @@ void RosCompressedStreamer::sendImage(
62
{
63
try {
64
std::string content_type;
65
- if (msg->format.find("jpeg") != std::string::npos) {
+ if (msg->format.find("jpeg") != std::string::npos ||
66
+ msg->format.find("jpg") != std::string::npos)
67
+ {
68
content_type = "image/jpeg";
69
} else if (msg->format.find("png") != std::string::npos) {
70
content_type = "image/png";
0 commit comments