Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/azproduction/squareup
https://github.com/azproduction/squareup
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/azproduction/squareup
- Owner: azproduction
- Created: 2024-07-07T20:11:07.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-07T20:14:56.000Z (4 months ago)
- Last Synced: 2024-07-07T21:29:17.727Z (4 months ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Squareup
When you want to publish a non-square picture on Instagram without photoshopping too much.
A script to convert a non-square picture to a square one filling the gaps with a blur.[Example](https://www.instagram.com/p/CyBs3MWoRrL/?img_index=2)
## Requirements
- node 20.x
- yarn## Install
```sh
yarn
```## Usage
Manually for a single file
```sh
./src/index.ts path-to-file.jpg
```For a batch of files. A script in Automator App
```sh
cd /Path/to/squareup
for f in "$@"
do
/Path/to/squareup/src/index.ts "$f"
done
```