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

Option to not cache images #31

Open
mfiano opened this issue Mar 8, 2017 · 3 comments
Open

Option to not cache images #31

mfiano opened this issue Mar 8, 2017 · 3 comments

Comments

@mfiano
Copy link

mfiano commented Mar 8, 2017

I would like the option to not cache images locally, and instead only upload them. This means that the program will not hang and wait for input when the image directory does not exist. I simply want to scp an image file without leaving a trace locally. Possible or planned?

@AbrarSyed
Copy link

recent maim update has it spitting the image straight to STDOUT.. so theoretically its possible...
something like this could be used to make the SCP uploader work. When dealing with the HTTP uploaders, it would be much easier sicne im sure curl has a way to grab the body from STDIN.

In the meantime, you could just tell it to put cache the images in /tmp/ so that they get cleared every reboot.

I personally think this is unlikely to get in.. everything is so much easier when its a simple file rather than if its a stream... even if STDIN is technically just a file.

@carnager
Copy link
Owner

In theory it would be nice if each operation had a keyword (save, upload, delete, eg...), which can be chained. But this would need quite some restructuring.

@mfiano
Copy link
Author

mfiano commented Oct 9, 2017

Using /tmp/ is what I have been doing, and the reason for this issue is because on my machine, that is a ramdisk that has a lifetime of several months before I reboot. Remembering to clear that so I don't swap to disk is a real pain. Thanks anyway.

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