Skip to content

Commit 0671cb1

Browse files
Add support for jpg compression format (#142)
1 parent 047857a commit 0671cb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ros_compressed_streamer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void RosCompressedStreamer::sendImage(const sensor_msgs::CompressedImageConstPtr
3636
const ros::Time &time) {
3737
try {
3838
std::string content_type;
39-
if(msg->format.find("jpeg") != std::string::npos) {
39+
if(msg->format.find("jpeg") != std::string::npos || msg->format.find("jpg") != std::string::npos) {
4040
content_type = "image/jpeg";
4141
}
4242
else if(msg->format.find("png") != std::string::npos) {

0 commit comments

Comments
 (0)