An open API service indexing awesome lists of open source software.

https://github.com/zwiterrion/image-resizer

Automatically generate screenshots for different devices sizes with blank automatically filled with black
https://github.com/zwiterrion/image-resizer

android ios mobile resize-images resizer screenshot-utility

Last synced: 7 months ago
JSON representation

Automatically generate screenshots for different devices sizes with blank automatically filled with black

Awesome Lists containing this project

README

          

# Image resizer

## Automatically generate screenshots for different devices sizes with blank automatically filled with black

# Setup

Install dependencies
```
brew install imagemagick
brew install ffmpeg
```

Install project dependencies
```
yarn
or
npm install
```

# Run

1. Clone the repo

2. Setup your devices sizes inside the json file `devices.json`
```
Example :
{
"devices": [
{
"name": "iphone5",
"size": {
"w": 1242,
"h": 2208
}
}
}
```
will generate each screenshot presents inside screenshots folder with this dimension.

3. Launch
```
node index.js
```
will generate all files inside `out` folder.
```
out
| - iphone5
| - screenshot-file.png
```
with the screenshot-file.png previsouly added inside the `screenshots` directory
```
screenshots
| - screenshot-file.png
```