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

gifski can't read input PNG images from /tmp/<whatever> directory #307

Open
ghiggi opened this issue Aug 7, 2023 · 4 comments
Open

gifski can't read input PNG images from /tmp/<whatever> directory #307

ghiggi opened this issue Aug 7, 2023 · 4 comments

Comments

@ghiggi
Copy link

ghiggi commented Aug 7, 2023

I just noticed that gifski can't read PNG images from a directory located at /tmp/ on Ubuntu systems.
It works just fine if images are located in whatever other directory.

@ghiggi ghiggi changed the title gifski can't read input PNG images from /tmp/tmp_<whatever> directory gifski can't read input PNG images from /tmp/<whatever> directory Aug 7, 2023
@kornelski
Copy link
Member

Do you have more info about it? What error do you get?

The tool should be able to read images from anywhere as long as the path and permissions are correct.

@ghiggi
Copy link
Author

ghiggi commented Aug 11, 2023

I specify the PNG input pattern as /<dir_path>/*.png.
The error appears if the PNG images are located in /tmp or whatever NAS /<some_nas/.
The funny thing is that the error message says "cannot find input file /<dir_path>/image_0001.png" which means that actually the software was able to detect the file since it get the first file image name correctly.

To get around the problem, I currently move the figure in a temporary directory created within /home/<user>/ ... and everything works fine.

BTW: Really great tool @kornelski !

@kornelski
Copy link
Member

On Unix the * is expanded by your shell (bash), not by the program you're running.

Does your os have any sandboxing or chroot or something that could make paths mean different thing to the shell than the running program?

@ghiggi
Copy link
Author

ghiggi commented Aug 23, 2023

Sorry for the late reply. No I don't have any sandboxing/containers/chroot ...

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