Skip to content

Commit 59e5cda

Browse files
committed
Tweak stegdetect construction to list of lists
1 parent 765be9e commit 59e5cda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stego_lsb/StegDetect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def show_lsb(image_path: str, n: int) -> None:
3333

3434
image_data = cast(Iterable[Tuple[int, int, int]], image.getdata())
3535
color_data = [
36-
(255 * ((rgb[0] & mask) + (rgb[1] & mask) + (rgb[2] & mask)) // (3 * mask),) * 3
36+
[255 * ((rgb[0] & mask) + (rgb[1] & mask) + (rgb[2] & mask)) // (3 * mask)] * 3
3737
for rgb in image_data
3838
]
3939

0 commit comments

Comments
 (0)