Downloads:

16,809

Downloads of v 0.7.7:

1,696

Last Update:

12/28/2017

Package Maintainer(s):

Software Author(s):

  • Cosmin Truta

Tags:

optipng png gif tiff compression optimization cli cross-platform foss

OptiPNG: Advanced PNG Optimizer

0.7.7 | Updated: 12/28/2017

Downloads:

16,809

Downloads of v 0.7.7:

1,696

Software Author(s):

  • Cosmin Truta

OptiPNG: Advanced PNG Optimizer 0.7.7

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

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 https://chocolatey.org/api/v2. 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 https://chocolatey.org/api/v2)

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'" 
$exitCode = $LASTEXITCODE

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

Exit $exitCode

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

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

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


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

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: optipng,
    Version: 0.7.7,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller optipng
{
   Name     = 'optipng'
   Ensure   = 'Present'
   Version  = '0.7.7'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


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

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


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

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 11/2/2019.

Description

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.

Notes

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

legal\LICENSE.txt
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.
legal\VERIFICATION.txt
VERIFICATION
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 <http://optipng.sourceforge.net/>
and can be verified by doing the following:

1. Download the following <http://prdownloads.sourceforge.net/optipng/optipng-0.7.7-win32.zip?download>
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: 287700CF86BB0B1B4C2BE54F98F3EBFA121FD47FB38C97CD310A212CB6D441D9

The file 'LICENSE.txt' has been obtained from <http://optipng.sourceforge.net/license.txt>
tools\chocolateyInstall.ps1
$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\optipng.zip"
  destination    = $toolsPath
}

Get-ChocolateyUnzip @packageArgs

Remove-Item -Force -ea 0 $packageArgs.file
tools\optipng.zip
md5: BFABA1548AE5B52F2ACB1D6800DCD936 | sha1: 2A1484D27BF63C7A15C3494EEA95A2C804F5BDBC | sha256: 287700CF86BB0B1B4C2BE54F98F3EBFA121FD47FB38C97CD310A212CB6D441D9 | sha512: DEA0EF2E7DD739BB72AE90A0F478A83DDEB75A27FFF50A160BC770D378AF28B66C9053C748528C30B526DA432D8B2A0343FD054990DEEE26856ED40A5D471843

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 1284 Tuesday, July 18, 2017 Approved
OptiPNG: Advanced PNG Optimizer 0.7.5.20141004 4414 Saturday, October 4, 2014 Approved
OptiPNG : Advanced PNG Optimizer 0.7.5 2162 Tuesday, March 25, 2014 Unknown
OptiPNG : Advanced PNG Optimizer 0.7.4 2167 Tuesday, September 10, 2013 Unknown
OptiPNG : Advanced PNG Optimizer 0.7.1.20120913 4356 Thursday, September 13, 2012 Unknown
OptiPNG : Advanced PNG Optimizer 0.7.1 730 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