diff --git a/src/add_qr.py b/src/add_qr.py
index 04147fc5dd8106671045bf3af0db3dbb76c674e9..a0703c533077ea0cd314f60489854caea5f620a2 100755
--- a/src/add_qr.py
+++ b/src/add_qr.py
@@ -156,11 +156,11 @@ def image_callback(data):
             cv2.waitKey(1)
 
         if options.compressed:
-            msg = bridge.cv2_to_compressed_imgmsg(final_image)
+            msg = bridge.cv2_to_compressed_imgmsg(final_image, desired_encoding='bgr8')
             msg.header = data.header
             image_pub.publish(msg)
         else:
-            msg = bridge.cv2_to_imgmsg(final_image)
+            msg = bridge.cv2_to_imgmsg(final_image, desired_encoding='bgr8')
             msg.header = data.header
             image_pub.publish(msg)