diff --git a/sen2chain/colormap.py b/sen2chain/colormap.py
index 57d0c42978f476ec36bc08c0ed6aa6bc9e618864..547ff4d6fb035d99387ba7e5c743af73d8c8877e 100644
--- a/sen2chain/colormap.py
+++ b/sen2chain/colormap.py
@@ -322,15 +322,29 @@ def create_l2a_ql(b02: Union[str, pathlib.PosixPath],
             src.height,
             *src.bounds,
             resolution=out_resolution)
-        
-    profile.update(nodata=0,
-        driver="Gtiff",
-        dtype=np.uint8,
-        transform=dst_transform,
-        width=dst_width,
-        height=dst_height,
-        tiled=False,
-        count=len(file_list))
+    
+    if out_path.suffix == ".jpg":
+        profile.update(nodata=0,
+                       driver="JPEG",
+                       dtype=np.uint8,
+                       transform=dst_transform,
+                       width=dst_width,
+                       height=dst_height,
+                       tiled=False,
+                       count=len(file_list))
+        profile.pop('tiled', None)
+        profile.pop('blockxsize', None)
+        profile.pop('blockysize', None)
+
+    else:
+        profile.update(nodata=0,
+                       driver="Gtiff",
+                       dtype=np.uint8,
+                       transform=dst_transform,
+                       width=dst_width,
+                       height=dst_height,
+                       tiled=False,
+                       count=len(file_list))
 
     with rasterio.open(str(out_path), 'w', **profile) as dst:
         for id, layer in enumerate(file_list, start=1):