web-convert
v1.0.0
Published
Conversor de imagens para padrões Web
Downloads
3
Maintainers
Readme
Web Convert ⚡
Conversor de imagens para padrões Web
Ideia: 💡
Web Convert - É uma cli que permite através de parametros passados, converter e redimencionar imagens.
Funcionalidades:
- Redimencionar imagens;
- Comprimir;
- Converter para Webp, Png, Jpg e Jpeg;
- Filtrar tarefas não finalizadas;
Começando: 🚀
Para utilizar a cli você precisará seguir os passos abaixo de instalação e utilização.
Pré-requisitos:
Abaixo estará listada as ferramentas necessárias para o funcionamento do projeto.
- NodeJS versão 14 Guia de instalação NodeJS.
Instalando a CLI:
Execute o comando abaixo para instalar a CLI globalmente:
npm install -g web-convert
Utilizando:
Após a instalação, a CLI estará disponível no seu terminal. Veja o exemplo de utilização.
Estrutura de pasta do exemplo:
.
├── Desktop
│ ├── montain1.png
│ └── nature1.png
└── converted *Pasta gerado ao final do processo*
├── nature1-L300-temp.jpg
├── nature1-L300-temp.jpeg
├── nature1-L668-temp.png
├── nature1-L720-temp.webp
├── montain-L430.png
├── montain-L430.webp
└── ...
Para o exemplo de utilização, estarei seguindo a estrutura acima
Como utilizar:
Conclusão:
Ao executar o comando web-convert
, siga os passos indicados pela própria CLI para obter os parametros de redimencionamento e conversão 👍
Depois de finalizado o processo, será criada uma pasta chamada converted
no diretório onde o comando foi executado, nela está as imagens redimencionadas, convertidas e comprimidas.
Links: 🌐
Libs utilizadas para tratamento das imagens: Image Min Node Pngquant Sharp
Licença
Este projeto está licenciado sob a licença [MIT] - consulte o arquivo LICENSE.md para obter detalhes