Skip to content

Commit

Permalink
Add Ubuntu instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan P.C. McQuen authored Nov 1, 2016
1 parent 6c69f3e commit 9d3d900
Showing 1 changed file with 26 additions and 8 deletions.
34 changes: 26 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
image-ultimator
`imgult`, The image-ultimator.
===============

## What is it?
imgult is a tiny and mighty script that will recursively loop through a directory and its subdirectories optimizing all GIFs, JPGs, PNGs and SVGs (the script supports several types of these kinds of extensions, check the source to see). It also removes EXIF data (run with ```EXIFREMOVE=n``` to keep EXIF data). You can backup the images by running it with (```BACKUPIMAGES=true```).
`imgult` is a tiny and mighty script that will recursively loop through a directory and its subdirectories optimizing all GIFs, JPGs, PNGs and SVGs (the script supports several types of these kinds of extensions, check the source to see). It also removes EXIF data (run with ```EXIFREMOVE=n``` to keep EXIF data). You can backup the images by running it with (```BACKUPIMAGES=true```).

Check out the [imgult site](https://imgult.github.io)!

Expand All @@ -14,7 +14,6 @@ Check out the [imgult site](https://imgult.github.io)!

curl https://raw.githubusercontent.com/ryanpcmcquen/image-ultimator/master/imgult | sh


### I love this script! I want to *install* it and use it everywhere!

wget -N https://raw.githubusercontent.com/ryanpcmcquen/image-ultimator/master/imgult; sudo install -m755 imgult /usr/local/bin/; rm imgult
Expand All @@ -40,15 +39,35 @@ https://github.com/ryanpcmcquen/image-ultimator/issues/5#issuecomment-198301854

Of course, newer versions are probably even better! :smiley:

Linux:
### Linux:

#### Slackware:

sbopkg -i jpegoptim -i mozjpeg -i optipng -i pngquant -i gifsicle

Mac:
#### Ubuntu (`16.04+` recommended):

sudo apt-get install jpegoptim optipng pngquant gifsicle exiv2

You will need to compile `mozjpeg` from source. You will probably need these:

sudo apt-get install nasm libtool autoconf build-essential

After that, download the most recent release and run something like this:

```sh
autoreconf -fiv
./configure --disable-static

make
sudo make install
```

### Mac:

brew install jpegoptim mozjpeg optipng pngquant gifsicle exiv2

Linux & Mac:
### Linux & Mac:

npm install -g svgo

Expand All @@ -58,7 +77,6 @@ Linux & Mac:
Just run this command in any directory with images, note that it will *OVERWRITE* images (GIFs, JPGs, PNGs & SVGs) and loop recursively through all directories INSIDE the directory you run it in. There is a BACKUP option though. ;^)



##### If it is installed, how do I use it?

- 'cd' to the directory you want to use it in
Expand All @@ -73,7 +91,7 @@ Or feed imgult directories and/or files:

##### EXIF removal

Default is to remove exif data, to keep EXIF data, run:
The default is to remove EXIF data, to keep EXIF data, run:

EXIFREMOVE=n imgult

Expand Down

0 comments on commit 9d3d900

Please sign in to comment.