Skip to content

Commit

Permalink
Bug 707083: Remember to retain colorspaces when filtering in-line ima…
Browse files Browse the repository at this point in the history
…ges.
  • Loading branch information
sebras committed Oct 5, 2023
1 parent 1bb5281 commit 7d970af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/pdf/pdf-op-filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -2420,7 +2420,10 @@ pdf_filter_BI(fz_context *ctx, pdf_processor *proc, fz_image *image, const char
if (image)
{
fz_try(ctx)
{
copy_resource(ctx, p, PDF_NAME(ColorSpace), colorspace);
p->chain->op_BI(ctx, p->chain, image, colorspace);
}
fz_always(ctx)
fz_drop_image(ctx, image);
fz_catch(ctx)
Expand All @@ -2429,6 +2432,7 @@ pdf_filter_BI(fz_context *ctx, pdf_processor *proc, fz_image *image, const char
}
else
{
copy_resource(ctx, p, PDF_NAME(ColorSpace), colorspace);
p->chain->op_BI(ctx, p->chain, image, colorspace);
}
}
Expand Down

0 comments on commit 7d970af

Please sign in to comment.