We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6087916 commit 7375106Copy full SHA for 7375106
isyntax2raw/__init__.py
@@ -742,7 +742,8 @@ def write_tile(
742
height = int(height)
743
pixel_buffer_size = width * height * 3
744
if self.bits_per_pixel is not None:
745
- pixel_buffer_size = pixel_buffer_size * (self.bits_per_pixel / 8)
+ bpp = self.bits_per_pixel / 8
746
+ pixel_buffer_size = pixel_buffer_size * bpp
747
748
pixels = np.empty(
749
int(pixel_buffer_size),
0 commit comments