Created
March 21, 2014 18:24
-
-
Save rrdial/9692570 to your computer and use it in GitHub Desktop.
Image conversion techniques
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Square an image by adding padding to appropriate top/bottom or sides | |
convert {{input_file_name}} \( +clone -rotate 90 +clone -mosaic +level-colors white \) +swap -gravity center -composite {{output_file_name}} | |
## Optimize and compress a png | |
pngquant -f --speed 1 {{file_name}} | |
## Convert an EPS to a web-usable image format | |
convert -units PixelsPerInch -density 300 {{input_file_name}} -resize 700x700 {{output_file_name}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment