Skip to content

feat: More robust color conversion#13

Open
simon-pfahler wants to merge 2 commits intojolars:mainfrom
simon-pfahler:main
Open

feat: More robust color conversion#13
simon-pfahler wants to merge 2 commits intojolars:mainfrom
simon-pfahler:main

Conversation

@simon-pfahler
Copy link
Copy Markdown
Collaborator

This PR changes two things:

  • transform_current_color now also deals with the second part of the color string
  • process_pdf_image_content now also deals with color strings that do not start with a newline, and the code is more compact now.

The expression to match a float is now a bit more safe and does not allow for multiple decimal points anymore.

I have removed the transformation of the SCN color model as this is custom and is therefore not limited to RGB or CMYK. Without more analysis, we can not know how to transform this, so at least for the time being, we should not transform these colors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant