JSPM

imagesizerapp

0.1.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q36539F
  • License MIT

App Store/Android image resizer CLI with device frame compositing (Python backend)

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-cli

    This 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 false

    App 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 ./out

    You 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 2532

    Outputs per input file:

    • 1242x2688 (and optionally a .framed variant)
    • 2688x1242 (and optionally a .framed variant)
    • 1284x2778 (and optionally a .framed variant)
    • 2778x1284 (and optionally a .framed variant)