mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-15 14:20:23 +01:00
PS: fix embedding of grayscale jpegs
https://bugs.freedesktop.org/show_bug.cgi?id=31632
This commit is contained in:
parent
d565639478
commit
653ceb517f
1 changed files with 3 additions and 2 deletions
|
|
@ -2377,11 +2377,12 @@ _cairo_ps_surface_emit_jpeg_image (cairo_ps_surface_t *surface,
|
|||
" /Width %d def\n"
|
||||
" /Height %d def\n"
|
||||
" /BitsPerComponent %d def\n"
|
||||
" /Decode [ 0 1 0 1 0 1 ] def\n",
|
||||
" /Decode [ %s ] def\n",
|
||||
info.num_components == 1 ? "DeviceGray" : "DeviceRGB",
|
||||
info.width,
|
||||
info.height,
|
||||
info.bits_per_component);
|
||||
info.bits_per_component,
|
||||
info.num_components == 1 ? "0 1" : "0 1 0 1 0 1");
|
||||
|
||||
if (surface->use_string_datasource) {
|
||||
_cairo_output_stream_printf (surface->stream,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue