gifski icon indicating copy to clipboard operation
gifski copied to clipboard

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

Open ghiggi opened this issue 1 year ago • 4 comments

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 avatar Aug 07 '23 10:08 ghiggi

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.

kornelski avatar Aug 11 '23 13:08 kornelski

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 !

ghiggi avatar Aug 11 '23 15:08 ghiggi

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?

kornelski avatar Aug 16 '23 13:08 kornelski

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

ghiggi avatar Aug 23 '23 09:08 ghiggi