https://github.com/yasha424/reformat-images
Simple tool for converting all images with specified format to another format
https://github.com/yasha424/reformat-images
format formatting formatting-images image image-reformatting images-formatting macos reformat reformatting-image shell shell-script xcode
Last synced: about 1 month ago
JSON representation
Simple tool for converting all images with specified format to another format
- Host: GitHub
- URL: https://github.com/yasha424/reformat-images
- Owner: yasha424
- Created: 2025-04-07T15:45:37.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-07T16:02:26.000Z (about 1 year ago)
- Last Synced: 2025-04-10T01:58:21.860Z (about 1 year ago)
- Topics: format, formatting, formatting-images, image, image-reformatting, images-formatting, macos, reformat, reformatting-image, shell, shell-script, xcode
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# reformat-images
Simple tool for macOS (primarily designed for XCode projects) for converting all images with specified format to another format
## Dependencies:
For converting images imagemagick is used. You can install it using brew:
```console
brew install imagemagick
```
## Installation:
```console
git clone https://github.com/yasha424/reformat-images
cd reformat-images
mv reformat-images /usr/local/bin/
chmod u+x /usr/local/bin/reformat-images
```
chmod u+x is used for making bash script executable.\
After intsallation open new terminal window and you are ready to go
## Usage:
### Enter project directory in terminal then write:
```console
reformat-images {input_file_format} {output_file_format}
```
Supported file formats for converting images are:
##### **pdf**, **png**, **jpeg**, **jpg** and **heic**
##### *AppIcon is left untouched
## Background
When xcode generates Assets.car - heic image format takes up to 5 times less space than jpeg and up to 10 time less space than png.\
So of your images are using one of those formats try converting them to heic to reduce your app size.\
Note that if your image is vector based (pdf or svg) you should not convert it to heic, because it will drastically reduce image quality.