Simplify pdf image output. - #15175
Conversation
There was a problem hiding this comment.
do we ever actually pass in a grayscale image?
There was a problem hiding this comment.
We do pass single-channel images (for alpha). As for actual grayscale I don't know (see #12871 for the similar thing in postscript), but this PR doesn't change that behavior anyways.
|
What is the benefit of inlining? To me this looks more cluttered now. The original |
|
For me this made #15193 easier to write (even though strictly speaking it is orthogonal) -- as things stand it is a bit annoying to have to go through multiple places to track the shapes of the arrays involved. |
|
I would be happier with that 😃. |
Let _writeImg infer image size and grayscaleness from the data itself.

shape.
preliminary work towards #15165.
PR Summary
PR Checklist