Downloads of v 0.7.6:


Last Update:

18 Jul 2017

Package Maintainer(s):

Software Author(s):

  • Cosmin Truta


optipng png gif tiff compression optimization cli cross-platform foss

OptiPNG: Advanced PNG Optimizer

This is not the latest version of OptiPNG: Advanced PNG Optimizer available.

0.7.6 | Updated: 18 Jul 2017



Downloads of v 0.7.6:


Software Author(s):

  • Cosmin Truta

OptiPNG: Advanced PNG Optimizer 0.7.6

This is not the latest version of OptiPNG: Advanced PNG Optimizer available.

All Checks are Passing

2 Passing Test

Validation Testing Passed

Verification Testing Passed


To install OptiPNG: Advanced PNG Optimizer, run the following command from the command line or from PowerShell:


To upgrade OptiPNG: Advanced PNG Optimizer, run the following command from the command line or from PowerShell:


To uninstall OptiPNG: Advanced PNG Optimizer, run the following command from the command line or from PowerShell:


NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to

4. Choose your deployment method:

choco upgrade optipng -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:

choco upgrade optipng -y --source="'STEP 3 URL'"

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0

Exit $exitCode

- name: Ensure optipng installed
    name: optipng
    state: present
    version: 0.7.6
    source: STEP 3 URL

See docs at

Coming early 2020! Central Managment Reporting available now! More information...

chocolatey_package 'optipng' do
  action    :install
  version  '0.7.6'
  source   'STEP 3 URL'

See docs at

    Name: optipng,
    Version: 0.7.6,
    Source: STEP 3 URL

Requires Otter Chocolatey Extension. See docs at

cChocoPackageInstaller optipng
   Name     = 'optipng'
   Ensure   = 'Present'
   Version  = '0.7.6'
   Source   = 'STEP 3 URL'

Requires cChoco DSC Resource. See docs at

package { 'optipng':
  provider => 'chocolatey',
  ensure   => '0.7.6',
  source   => 'STEP 3 URL',

Requires Puppet Chocolatey Provider module. See docs at

salt '*' chocolatey.install optipng version="0.7.6" source="STEP 3 URL"

See docs at

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved by moderator AdmiringWorm on 20 Dec 2017.


OptiPNG is a PNG optimizer that recompresses image files to a smaller size, without losing any information. This program also converts external formats (BMP, GIF, PNM and TIFF) to optimized PNG, and performs PNG integrity checks and corrections.


  • Please uninstall any versions prior to version 0.7.6, otherwise you may experience problems with multiple optipng.exe file being available.

Copyright (C) 2001-2016 Cosmin Truta and the Contributing Authors.
For the purpose of copyright and licensing, the list of Contributing
Authors is available in the accompanying AUTHORS file.

This software is provided 'as-is', without any express or implied
warranty.  In no event will the author(s) be held liable for any damages
arising from the use of this software.

Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not
   claim that you wrote the original software.  If you use this software
   in a product, an acknowledgment in the product documentation would be
   appreciated but is not required.

2. Altered source versions must be plainly marked as such, and must not
   be misrepresented as being the original software.

3. This notice may not be removed or altered from any source distribution.
Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

The embedded software have been downloaded from the listed download
location on <>
and can be verified by doing the following:

1. Download the following <>
2. Get the checksum using one of the following methods:
  - Using powershell function 'Get-FileHash'
  - Use chocolatey utility 'checksum.exe'
3. The checksums should match the following:

  checksum type: sha256
  checksum: 0012EC30EE5292E1FD19E0F8C45DE4CC291FB5872C5BC83355C17E0B6CE662F7

The file 'LICENSE.txt' has been obtained from <>
$ErrorActionPreference = 'Stop';

$toolsPath = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

if (Test-Path "$toolsPath\optipng-*win32") {
  # Remove the directory from a previous installation
  Remove-Item -Force -Recurse -ea 0 "$toolsPath\optipng-*win32"

$packageArgs = @{
  packageName    = $env:ChocolateyPackageName
  fileType       = 'zip'
  file           = "$toolsPath\"
  destination    = $toolsPath

Get-ChocolateyUnzip @packageArgs

Remove-Item -Force -ea 0 $packageArgs.file
md5: C179925368B83890FC93A6CCB05031FF | sha1: 5CFAA48F01E354645B4CF415A0EAEDCC76F542EA | sha256: 0012EC30EE5292E1FD19E0F8C45DE4CC291FB5872C5BC83355C17E0B6CE662F7 | sha512: 2091CF93DB577D20545C12B9DDA5E5113D118EBE135CF4B050EC5D4A571E67A3B1905B743A573B212851755E4032374016C7274ECA7759551A4E2E6FEB56A0C9

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
OptiPNG: Advanced PNG Optimizer 0.7.6 1339 Tuesday, July 18, 2017 Approved
OptiPNG: Advanced PNG Optimizer 4472 Saturday, October 4, 2014 Approved
OptiPNG : Advanced PNG Optimizer 0.7.5 2212 Tuesday, March 25, 2014 Unknown
OptiPNG : Advanced PNG Optimizer 0.7.4 2217 Tuesday, September 10, 2013 Unknown
OptiPNG : Advanced PNG Optimizer 4410 Thursday, September 13, 2012 Unknown
OptiPNG : Advanced PNG Optimizer 0.7.1 789 Thursday, September 13, 2012 Unknown

This package has no dependencies.

Discussion for the OptiPNG: Advanced PNG Optimizer Package

Ground Rules:

  • This discussion is only about OptiPNG: Advanced PNG Optimizer and the OptiPNG: Advanced PNG Optimizer package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or OptiPNG: Advanced PNG Optimizer, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus