I would like to know if I can use output command to output .cimg images with names in a single file.
*.gmz?
That’s it, .gmz fomat has been specifically designed for having .cimg[z] + names stored.
Thanks, this works well. Now, I’d love to know how to check if a file exist in _path_rc.
$ e {isfile('$_path_rc\sample_peppers.png')}
Like this?
Yes, except that paths on Windows can contain backslashes (what a stupid idea!
), so you have to take care of that with escaping potential backslashes:
filename=C:\foo\file.txt
if isfile(['{/$filename}'])
I wanted a universal solution, not just a Windows solution. Just to update my pal command with the use of output .gmz file when it doesn’t exist, and just straight up import otherwise.
Ok, I think I did it.
Can any of you test if $ +pal aurora works after update?
This is what I did:
l[] {
i {``$_path_rc}pals.gmz
onfail
_pal_385_pals
o {``$_path_rc}pals.gmz
}
The above is valid? Name is good too? Should it be gmic_community_pals.gmz?
At least the new code is 6 ms where the old code is 18 ms.
Hiya, I’m not sure if I’m doing this right, but I made a command with this +pal aurora after updating and, yes, it seems to work. I only got it to output a 256x1 strip, but resizing it I got:
No idea if that helps or not?!
Yep, it works alright. Thanks. I wanted to check if it works on Linux too.
Yep, using Ubuntu in a Proot-Distro terminal emulator.
