Unlike ImageOptim however, pngcrush does not work on other image file formats. Click Install when prompted to proceed with the installation. In the terminal, run the following command to install Xcode command line tools: xcode-select -install. Much like ImageOptim, it’s very effective at reducing the file size of PNG documents: From the Finder, select Go and click Utilities to display all the utilities. Pngcrush will provide a report of the compression, demonstrating the total file size reduction and how much CPU was used in the process:īest pngcrush method = 10 (fm 5 zl 9 zs 1) for /Users/OSXDaily/Desktop/PngCrushTest.pngĬPU time used = 0.249 seconds (decoding 0.024, Pngcrush ~/Desktop/BloatedImage.png ~/Desktop/CompressedImage.png The input file will not be modified, it will be duplicated as the output file given a different name like so: Regardless of having used Homebrew, MacPorts, or an Xcode alias to install pngcrush, using the tool is the same, and the basic format is like so: Free and available from Apple, installing Command Line Tools separately requires a developer center login (the free variety works fine). If you’re having trouble installing Homebrew or MacPorts, you probably haven’t installed Command Line Tools recently. Of course, you’ll need to install Homebrew first, which is easily done by executing the following command from the Terminal: Sudo port install pngcrush Installing pngcrush with Homebrewįor Homebrew users, installing pngcrush is simple as usual: Having MacPorts installed in OS X is obviously a prerequisite, if you don’t have it yet you can install it through source, a simple package, or svn directly from the developers. ImageOptim and ImageOptimCLI not doing it for you, and you don’t want to install Xcode? You can get pngcrush through MacPorts or Homebrew as well. Going this route obviously requires the installation of Xcode, which is fairly sizable, and if you’re not an iOS or Mac developer then it’s a bit excessive just to get a command line pngcrush tool, thus MacPorts and Homebrew are better options. bash_profile:Īlias pngcrush='/Applications/Xcode.app/Contents/Developer/Platforms/atform/Developer/usr/bin/pngcrush' That’s quite a ginormous path, so if you plan on using pngcrush directly you can either add that to your PATH directly, or make an alias for it within your. Applications/Xcode.app/Contents/Developer/Platforms/atform/Developer/usr/bin/pngcrush If you have Xcode installed in OS X, you’ve already have pngcrush installed, it just happens to be buried fairly deep within the Xcode app package at the following location: Nonetheless, there is also a command line version of ImageOptim-CLI available here, or those who are comfortable with the Terminal can proceed and use MacPorts or Homebrew to install pngcrush without ImageOptim. Those that are uncomfortable with the command line should stick with ImageOptim because it’s so easy to use, supports drag & drop and batch processing, and is basically foolproof. It’s also an excellent tool to quickly strip EXIF data from image files, which is done simultaneously alongside file size reduction: ImageOptim is very effective, and on average it reduces a file size of an image losslessly between 15-35%. Grab ImageOptim free from the developer.I only changed colors to fit my preference. Because it is simple and responsible design for devices such as mobile phone. Regarding the design, I thought about changing theme, but stayed the current one. Using brackets, I opened mkdocs.yml and changed following mandatory area. Thank you for Kamakura instructor’s advice. Finally I found the tipsīrackets spell check tips and installed. I tried to add extension from File > Extension manager, however Brackets rejected the install. So I thought I could add it easily, but it was long way. But spell checker is not default feature. The “brackets” is seemed easy to use not only for Markdown but also for HTML / CSS coding for future use.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |