Skip to content

How can I target output to a dynamic subdirectory? #43

@winston0410

Description

@winston0410

I have multiples subdirectories in my image directories, and I want to convert images inside these subdirectories and output the formatted files there.

I tried with the following cmd but it outputs all files in the main directory, images. Is something like this possible? Do I need to hard code subdirectories?

npx sharp --input './dist/images/**/*.jpg' --output './dist/images/' -f webp;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions