Combined/Multiple command line options #21

Closed
JamieMason opened this Issue Jun 8, 2013 · 0 comments

Comments

Projects
None yet
1 participant
Owner

JamieMason commented Jun 8, 2013

As mentioned by @joeldbirch in grunt-imageoptim issue 2, passing options in (the commonly expected format) of imageOptim -da 'assets/img' is not currently supported.

This will be addressed but in the meantime here is how to combine options.

Combining options

Run ImageOptim

  • imageOptim -d path/to/images
  • imageOptim --directory path/to/images

Run ImageOptim then quit it when finished

  • imageOptim -q -d path/to/images
  • imageOptim --quit --directory path/to/images

Run ImageAlpha then ImageOptim

  • imageOptim -a -d path/to/images
  • imageOptim --image-alpha --directory path/to/images

Run ImageAlpha then ImageOptim then quit ImageOptim when finished

  • imageOptim -q -a -d path/to/images
  • imageOptim --quit --image-alpha --directory path/to/images

Not yet supported

Until this issue is closed, the following formats are not supported;

Run ImageOptim then quit it when finished

  • imageOptim -qd path/to/images

Run ImageAlpha then ImageOptim

  • imageOptim -ad path/to/images

Run ImageAlpha then ImageOptim then Quit ImageOptim when finished

  • imageOptim -qad path/to/images

JamieMason referenced this issue in JamieMason/grunt-imageoptim Jun 8, 2013

Closed

How do I use the imageAlpha functionality? #2

@JamieMason JamieMason added a commit that referenced this issue Jun 8, 2013

@JamieMason JamieMason Merge branch 'refs/heads/master' into feature_JPEGmini
* refs/heads/master:
  1.3.2
  README
  Added `imageOptim -e` to display usage examples, refs #21
  README

Conflicts:
	imageOptim
	package.json
1d6aad5

JamieMason closed this Aug 7, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment