Skip to content

Commit

Permalink
fitz/fitz.i: fix #2369 - need to also handle FZ_IMAGE_FAX.
Browse files Browse the repository at this point in the history
This extends commit 3bae451, which fixed #2348.
  • Loading branch information
julian-smith-artifex-com committed Apr 25, 2023
1 parent e6da78c commit 3bd8714
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fitz/fitz.i
Original file line number Diff line number Diff line change
Expand Up @@ -2863,7 +2863,9 @@ if len(pyliste) == 0 or min(pyliste) not in range(len(self)) or max(pyliste) not
res = NULL;
img = pdf_load_image(gctx, pdf, obj);
cbuf = fz_compressed_image_buffer(gctx, img);
if (cbuf && cbuf->params.type != FZ_IMAGE_RAW &&
if (cbuf &&
cbuf->params.type != FZ_IMAGE_RAW &&
cbuf->params.type != FZ_IMAGE_FAX &&
cbuf->params.type != FZ_IMAGE_FLATE &&
cbuf->params.type != FZ_IMAGE_LZW &&
cbuf->params.type != FZ_IMAGE_RLD) {
Expand Down

0 comments on commit 3bd8714

Please sign in to comment.