npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

project-image-downloader

v2.0.21

Published

用于快速批量下载project中的图片,并按需实现图像的人头裁切。

Downloads

10

Readme

project-image-downloader

1、介绍

用于快速批量下载project中的图片,并按需实现图像的人头裁切。

2、环境要求

node版本:>=v10.22.0

3、安装与使用

3.1 安装

npm i project-image-downloader -g

3.2 参数

参数|类型|默认值|介绍 :----|:-----:|:----:|:----| -h,--help|||显示帮助 -p,--pids|string|无|设置一组projectId,","分割表示多个项目id,"-"分割表示projectId范围 -m,-mids|string|无|设置一组encImgId,以","分割 -t,--thumb-size|number|1000|设置下载的图片尺寸,默认1000 -c, --config-path|string|无|传入配置文件路径 -cb,--config-portal|string|无|设置Portal的域名,首次使用需设置,存储在本机 -cu,--config-user|string|无|设置Portal登录的用户名,首次使用需设置,存储在本机 -cp,--config-pass|string|无|设置Portal登录的密码,首次使用需设置,存储在本机 -cf,--cut-face|boolean|false|设置是否开启头像裁切 -cs,face-size|number|112|设置头像裁切后的尺寸,默认112 -r,--extend-ratio|number|1.2|设置裁切头像基于原图裁切框的放大比例,默认1.2 -mn, --image-path-name|string|images|保存图片的目录名 -fn, --face-path-name|string|faces|保存人头的目录名 -pp, --path-with-params|boolean|false|保存的目录是否需要带参数,比如thumbSize... -cm, --cut-image-path|string|无|需要裁切头像的图片路径 -o, --output-path|string|process.cwd()|保存目录名 -gpu,--use-gpu|boolean|false|设置是都在gpu中运行

3.3 使用

// 前置操作
dm --cb 设置portal的域名
dm --cu 设置portal登录的用户名
dm --cp 设置portal登录的用户名和密码

dm -p 123,456 // 下载projectId为123和456下的所有图片
dm -p 123-456 // 下载123到456范围内的projectId的图片
dm -m xxx,yyy -cf // 下载图片encImgId为xxx和yyy的图片,并开启头像裁切