You can resize images in a docker container.
374
You can resize images in a docker container.
| Parameter | Description |
|---|---|
[mount path] | Host OS's directory to mount to docker container. |
[tag] | Docker image tag. Please check DockerHub/Tags. |
docker rundocker run --rm --it -v [mount path]:/home/worker tshion/image-resizer:[tag]
If you want to exit, please run exit command.
In detail, I would like you to check Dockerfile.
| Want to do | Commands | Note |
|---|---|---|
| Resize image to favicon size | node ../icon-fav.js | Please locate original image at icon/ |
| Resize image to iOS icon size | node ../icon-ios.js | Please locate original image at icon/ |
| Resize image to PWA icon size | node ../icon-pwa.js | Please locate original image at icon/ |
| Resize image to mobile app size | node ../index.js |
Content type
Image
Digest
Size
71.3 MB
Last updated
over 6 years ago
docker pull tshion/image-resizer:1.1.0