DEV Community

Discussion on: I made a simple CLI that generates a vanilla HTML project. What do you think?

Collapse
 
goody85 profile image
Steven Goodram

Hey, what about an import of an images folder that would resize all images to selective sizes for ready use

Collapse
 
braydentw profile image
Brayden W ⚡️ • Edited

Nice idea! How would this be implemented into the CLI?

Would one of the parameters be a path to the image folder they want converted into different sizes?

Collapse
 
goody85 profile image
Steven Goodram

Yeah, pass parameter of image folder, and use eg imagemagick cli convert command (google.com/url?sa=t&source=web&rct...)

I think would take a good load off , if say you had lots of high res images that needed to be reized and compressed , or even multiple sets in folders so that you could generate srcset attribs later.

This command could be seperate from the main build app, as i think could be useful during design stage also.👍