Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (imagesizerapp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
imagesizer
CLI to resize images with single and batch modes. App Store presets included.
Install
Python (dev)
pip install -e .NPM (global)
npm i -g imagesizer-cliThis installs a global imagesizer command that uses a local Python venv automatically.
Usage
- Version:
imagesizer version- Resize single image, fit inside 1242x2688 and pad white:
imagesizer resize input.png output.png --width 1242 --height 2688 --background "#FFFFFF"- Batch resize an entire folder to width=1280 (height auto):
imagesizer batch ./screens ./out --width 1280- Batch resize to exact 1024x1024 without keeping aspect (stretch):
imagesizer batch ./icons ./out --width 1024 --height 1024 --keep-aspect falseApp Store presets
Generate all four required sizes (portrait and landscape) from a single image:
imagesizer appstore input.png ./out --background "#000000"Or for a whole folder:
imagesizer appstore ./screens ./outYou will be prompted:
- "iPhone cihaz görseli eklensin mi?" If you choose yes, provide a frame PNG and screen rectangle via flags:
imagesizer appstore input.png ./out \
--frame-image ./frames/iphone.png \
--screen-x 100 --screen-y 200 --screen-w 1170 --screen-h 2532Outputs per input file:
- 1242x2688 (and optionally a
.framedvariant) - 2688x1242 (and optionally a
.framedvariant) - 1284x2778 (and optionally a
.framedvariant) - 2778x1284 (and optionally a
.framedvariant)