Get pngcrush for Mac OS with or without Xcode

Discover how to install pngcrush on your Mac OS, with or without Xcode, and optimize your PNG files for faster loading times on your website or app.

This guide is about the Get pngcrush for Mac OS X with or without Xcode. I will try my best so that you understand this guide very well. I hope you all like this guide Get pngcrush for Mac OS X with or without Xcode.

PNGcrush is an image optimization tool whose primary function is to reduce the file size of PNG images in a lossless manner. It’s pretty popular with developers and designers, and while it’s included with some versions of Linux from the get-go app, it’s not included in OS X by default without installing Xcode software. We’ll cover four easy ways to get the utility on your Mac with or without Xcode code, and we also offer an excellent free GUI option that may be more appropriate for many users.

ImageOptim, an excellent pngcrush interface

ImageOptim is a comprehensive image optimization tool that also happens to integrate pngcrush into its features. Because ImageOptim works outside of png files and also handles JPG and GIF files, it has long been our general recommendation for compressing and optimizing images from OS X:

  • Grab ImageOptim for free from the developer

ImageOptim is very powerful and on average reduces image file size losslessly by between 15-35%. It is also a great tool for quickly removing EXIF ​​data from image files, which happens at the same time as Reducing File Size:

ImageOptim pngcrush interface option for Mac OS X.

Those who are uncomfortable on the command line should stay with ImageOptim because it is so easy to use, supports drag and drop as well as batch processing, and is basically silly. Nevertheless, a command line version of ImageOptim-CLI is also available here, or those who are happy with the terminal can continue and install pngcrush without ImageOptim using MacPorts or Homebrew.

Getting png crushing with Xcode

If you have Xcode installed on OS X, you already have pngcrush installed, it will just be buried quite deep in the Xcode application package in the following location:


It’s a pretty nice path, so if you plan to use pngcrush directly, you can either add it directly to your PATH or make it an alias to a .bash_profile file:

alias pngcrush = ”/ Applications / / Contents / Developer / Platforms / iPhoneOS.platform / Developer / usr / bin / pngcrush”

Choosing this route, of course, requires installing Xcode software, which is quite large, and if you’re not an iOS or Mac developer, it’s a little unreasonable to just get a command line pngcrush tool, so MacPorts and Homebrew are better options.

Install pngcrush on OS X with MacPorts

ImageOptim and ImageOptimCLI don’t do it for you, and you don’t want to install Xcode? You can also get pngcrush through MacPorts or Homebrew. Of course, installing MacPorts on OS X is a prerequisite, if you don’t already have one, you can install it from source, a simple package, or svn directly from the developers.

sudo port install pngcrush

Installing Pngcrush with Homebrew

For homebrew users, installing pngcrush is simple:

brew install pngcrush

Of course, you must first install Homebrew, which is easy to do by running the following command from the terminal:

ruby -e “$ (curl -fsSL”

If you’re having trouble installing Homebrew or MacPorts, you probably haven’t installed command-line tools recently. Free and available from Apple, installing the command line tools separately requires a Developer Center login (the free variety works well).

From the command line pngcrush

Whether you used a Homebrew, MacPorts, or Xcode alias to install pngcrush, the use of the tool is the same and the basic format is as follows:

pngcrush inputfile.png outputfile.png

The input file is not modified, it is copied to an output file with a different name, such as:

pngcrush ~ / Desktop / BloatedImage.png ~ / Desktop / CompressedImage.png

pngcrush reports a package that shows the overall file size reduction and how much processor was used in the process:

Best pngcrush method = 10 (fm 5 zl 9 zs 1) /Users/bollyinside/Desktop/PngCrushTest.png(29.90% IDAT reduction) (25.23% file size reduction) CPU time used = 0.249 seconds (decoding 0.024, encoding 0.217, other 0.008 seconds)

Just like ImageOptim, it is very effective in reducing the file size of PNG documents:

The pngcrush command line in Mac OS X reduces image sizes

However, unlike ImageOptim, pngcrush does not work with other image file formats.

Benefits: Get pngcrush for Mac OS X with or without Xcode

[wpsm_list type=”star”]

  • The Get pngcrush for Mac OS X with or without Xcode guide is free to read.
  • We help many internet users follow up with interest in a convenient manner.
  • The price of the Get pngcrush for Mac OS X with or without Xcode guide is free.


FAQ: Get pngcrush for Mac OS X with or without Xcode

[wpsm_accordion_section title=”Guide about Get pngcrush for Mac OS X with or without Xcode”]
In this guide, I told you about the Get pngcrush for Mac OS X with or without Xcode.
[wpsm_accordion_section title=”How this Guide helping you?”]
In this guide, I discuss about the Get pngcrush for Mac OS X with or without Xcode, which is very helpful.
[wpsm_accordion_section title=”What are the supported devices for this guide?”]
Apple Devices only.
[wpsm_accordion_section title=”What are the supported Operating system?”]
mac OS or iOS
[wpsm_divider top=”2px” bottom=”15px” style=”fadeout”]

Final note: Get pngcrush for Mac OS X with or without Xcode

If you have any queries regards the Get pngcrush for Mac OS X with or without Xcode, then please ask us through the comment section below or directly contact us.
Education: This guide or tutorial is just for educational purposes.
Misinformation: If you want to correct any misinformation about the guide “Get pngcrush for Mac OS X with or without Xcode”, then kindly contact us.
Want to add an alternate method: If anyone wants to add more methods to the guide Get pngcrush for Mac OS X with or without Xcode, then kindly contact us.
Our Contact: Kindly use our contact page regards any help.

Editorial Staff
Editorial Staff
The Bollyinside editorial staff is made up of tech experts with more than 10 years of experience Led by Sumit Chauhan. We started in 2014 and now Bollyinside is a leading tech resource, offering everything from product reviews and tech guides to marketing tips. Think of us as your go-to tech encyclopedia!


Please enter your comment!
Please enter your name here

Related Articles

Best Telemedicine Software: for your healthcare practice

Telemedicine software has transformed my healthcare visits. It's fantastic for patients and doctors since they can obtain aid quickly. I...
Read more
I love microlearning Platforms in today's fast-paced world. Short, focused teachings that engage me are key. Microlearning platforms are great...
Think of a notebook on your computer or tablet that can be changed to fit whatever you want to write...
As of late, Homeschool Apps has gained a lot of popularity, which means that an increasing number of...
From what I've seen, HelpDesk software is essential for modern businesses to run easily. It's especially useful for improving customer...
For all of our important pictures, stories, and drawings, Google Drive is like a big toy box. But sometimes the...