| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| buffer.seek(4, 1) # skip CRC | ||
|
|
||
| def _writeImg(self, data, height, width, grayscale, id, smask=None): | ||
| def _writeImg(self, data, id, smask=None): |
There was a problem hiding this comment.
do we ever actually pass in a grayscale image?
Sorry, something went wrong.
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.
Sorry, something went wrong.
|
What is the benefit of inlining? To me this looks more cluttered now. The original _unpack seemed like a reasonable abstraction layer. |
Sorry, something went wrong.
|
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. |
Sorry, something went wrong.
|
I would be happier with that 😃. |
Sorry, something went wrong.
|
sure, done |
Sorry, something went wrong.
Let _writeImg infer image size and grayscaleness from the data itself.
| Back | FazBrowse Home | New Git URL |
shape.
preliminary work towards #15165.
PR Summary
PR Checklist