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

Filetype-specific actions on download actions #2876

Open
VlaDexa opened this issue Feb 13, 2024 · 1 comment
Open

Filetype-specific actions on download actions #2876

VlaDexa opened this issue Feb 13, 2024 · 1 comment

Comments

@VlaDexa
Copy link

VlaDexa commented Feb 13, 2024

Describe the solution you'd like

I run lossless optimizers of cover arts for any jpg/png that I download. Currently it is one big command that runs fd over the downloaded directory, searches and modifyes the images, but it looks awful. I would like to request a way to select that I need to run command optipng only on files with png extension.

Additional context

It would be even better if you could somehow match the file type pattern, because some people call their JPEGs as *.jpg, and some do *.jpeg. Both need the same command.

Events

Run command after file download finishes ($ for file path):

some other command

Possible look of this feature integrated into the settings:

File specific actions
TypeCommand
pngoptipng -o7 $
@slook
Copy link
Member

slook commented Feb 16, 2024

This suggestion would make a good use of the plugin system.

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

No branches or pull requests

2 participants