Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slightly improve the isSourcePDF parameter handling in JpegImage (PR 10031 follow-up) #10063

Merged
merged 1 commit into from
Sep 12, 2018

Commits on Sep 12, 2018

  1. Slightly improve the isSourcePDF parameter handling in JpegImage

    …(PR 10031 follow-up)
    
    Currently there's only a single spot in the code-base where `JpegImage.getData` is called, however it nonetheless seem like a good idea to ensure during tests that the `isSourcePDF` parameter is correctly set. (Especially considering that the PDF use-cases will break without it.)
    
    Additionally, in `JpegImage._getLinearizedBlockData`, the code can be made a tiny bit more efficient by checking the value of `isSourcePDF` *first* to avoid useless checks (for the default PDF use-cases).
    Snuffleupagus committed Sep 12, 2018
    Configuration menu
    Copy the full SHA
    5181172 View commit details
    Browse the repository at this point in the history