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

-b|--base64 arguments to print base64 encoded image data to stdout #4

Closed
JayBrown opened this issue Mar 16, 2021 · 2 comments
Closed

Comments

@JayBrown
Copy link

First of all… thank you very much for this fantastic little tool. Has already come in handy.

An idea: we already have a request for printing to stdout, and another related addition would be printing the image data to stdout as base64. Example:

file-icon /Applications/foo.app --size 1024 -b > /tmp/foo_icon_1024_base64.txt

@sindresorhus
Copy link
Owner

What's the use-case for needing it as base64?

And by the way, you can already do:

base64 <<< `file-icon /Applications/Safari.app --size 1024` > /tmp/foo_icon_1024_base64.txt

@JayBrown
Copy link
Author

Ah, thank you for the tip. I will (for example) need the base64 functionality to ad-hoc print application icons in a menulet dropdown menu that's running in BitBar/xbar/SwiftBar.

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

2 participants