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

Inverted picture pixels #132

Closed
shawaj opened this issue Jun 19, 2017 · 3 comments
Closed

Inverted picture pixels #132

shawaj opened this issue Jun 19, 2017 · 3 comments

Comments

@shawaj
Copy link
Member

shawaj commented Jun 19, 2017

On a similar note to #80 it would be really cool to have an "inverse" function for papirus-draw that takes a picture, makes it black and white (as it does now) but then prints the inverse of it... So what would normally be black becomes white and vice versa

@schwma
Copy link
Contributor

schwma commented Mar 16, 2018

Note: It is also possible to invert colors in one line by letting ImageMagick invert the image and piping its output into papirus-draw.

Here is an example:
curl https://raw.githubusercontent.com/PiSupply/PaPiRus/master/bitmaps/papirus-logo.bmp | convert - -negate - | papirus-draw - -t resize

However, when using -t resize the background surrounding the image's bounds is always rendered in white (which may or may not be desirable).

@shawaj
Copy link
Member Author

shawaj commented Mar 17, 2018

@tvoverbeek should we add the note above from @schwma to the readme do you think?

@tvoverbeek
Copy link
Contributor

@shawaj There is always more than one way to do things, especially in Unix/Linux.
To do the inversion on the black & white image is more efficient than to do it on the (possibly) full color image as is the case when using ImageMagick convert.
Hence, at least for me, no need to add this to the README.

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

No branches or pull requests

3 participants