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

Add pipe support #13

Closed
wren opened this issue Nov 29, 2017 · 5 comments
Closed

Add pipe support #13

wren opened this issue Nov 29, 2017 · 5 comments
Assignees

Comments

@wren
Copy link

wren commented Nov 29, 2017

Being able to pipe in an image, rather than having to read from a saved file, would be a very useful feature addition to an already very useful tool.

One use case that I've run into is trying reading thumbnail data from large file types (like Photoshop files). Using exiftool, it's easy to extract the thumbnail data from a Photoshop file, but I find myself having to save it to a temporary file in order to be able to view it.

Currently, this process looks something like this:

exiftool -b -PhotoshopThumbnail example.psd > temp.jpg
imgcat temp.jpg
rm temp.jpg

But having something like this would be much more useful:

exiftool -b -PhotoshopThumbnail example.psd | imgcat

@eddieantonio
Copy link
Owner

Thanks for the interest in the project! This is something I've thought of implementing, but wasn't sure if it would even be useful. You've proved that it has! I hope to get cracking on this on Friday.

@eddieantonio
Copy link
Owner

This issue is fixed! It's available in imgcat 2.1.0, which you can install with Homebrew.

@wren
Copy link
Author

wren commented Dec 2, 2017

Works like a charm. Thank you!

@rocaltair
Copy link

@JonathanWren try imgcat <(exiftool -b -PhotoshopThumbnail example.psd)

@wren
Copy link
Author

wren commented Dec 16, 2017

@rocaltair That also worked. Thanks!

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

No branches or pull requests

3 participants