Downloads:

4,459

Downloads of v 1.0.37:

2,480

Last Update:

4/21/2018

Package Maintainer(s):

Software Author(s):

  • David Kleiner

Tags:

image admin

JPEGView

1.0.37 | Updated: 4/21/2018

Downloads:

4,459

Downloads of v 1.0.37:

2,480

Maintainer(s):

Software Author(s):

  • David Kleiner

Tags:

image admin

JPEGView 1.0.37

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

To install JPEGView, run the following command from the command line or from PowerShell:

>

To upgrade JPEGView, run the following command from the command line or from PowerShell:

>

To uninstall JPEGView, 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 jpegview -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 jpegview -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 jpegview installed
  win_chocolatey:
    name: jpegview
    state: present
    version: 1.0.37
    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 'jpegview' do
  action    :install
  version  '1.0.37'
  source   'STEP 3 URL'
end

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


Chocolatey::Ensure-Package
(
    Name: jpegview,
    Version: 1.0.37,
    Source: STEP 3 URL
);

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


cChocoPackageInstaller jpegview
{
   Name     = 'jpegview'
   Ensure   = 'Present'
   Version  = '1.0.37'
   Source   = 'STEP 3 URL'
}

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


package { 'jpegview':
  provider => 'chocolatey',
  ensure   => '1.0.37',
  source   => 'STEP 3 URL',
}

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


salt '*' chocolatey.install jpegview version="1.0.37" 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.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved by moderator gep13 on 9/6/2019.

Description

JPEGView is a lean, fast and highly configurable viewer/editor for JPEG, BMP, PNG, WEBP, TGA, GIF and TIFF images with a minimal GUI. Basic on-the-fly image processing is provided - allowing adjusting typical parameters as sharpness, color balance, rotation, perspective, contrast and local under-/overexposure.


tools\chocolateyInstall.ps1
# if any command fails, stop immediately.
$ErrorActionPreference = 'Stop'

$packageName = 'JPEGView'
$url = 'https://downloads.sourceforge.net/project/jpegview/jpegview/1.0.37/JPEGView_1_0_37.zip'
$url = 'https://sourceforge.net/projects/jpegview/files/jpegview/1.0.37/JPEGView_1.0.37.zip/download'
$sha256 = 'f0d6c62bc7c5aa49a7a8f45294d8199355d7c1a940df5a322dc163effad22591'

$osBitness = Get-ProcessorBits

# the gist is quite simple:
# 1. create a tmp subdirectory under the directory where the package
#    will be installed (e.g. C:\ProgramData\chocolatey\lib\jpegview.1.0.32.1\tools\tmp)
#
#    the tools subdirectory is given by:
#
#      Split-Path -parent $MyInvocation.MyCommand.Definition
#
# 2. download the JPEGView zip file and extract it to the tmp directory.
# 3. copy the 32 or 64 bits binaries to the app subdirectory.
# 4. remove the temporary directory.
# 5. associate several image file extensions with the installed application.

$toolsPath = Split-Path -parent $MyInvocation.MyCommand.Definition
$appPath = "$toolsPath\app"
$jpegviewPath = Join-Path $appPath "$($packageName).exe"
$tmpPath = Join-Path $toolsPath tmp
$extractPath = Join-Path $tmpPath $packageName

Install-ChocolateyZipPackage $packageName $url $extractPath -ChecksumType sha256 -Checksum $sha256 
New-Item -Type Directory $appPath | Out-Null
Move-Item (Join-Path $extractPath "JPEGView$osBitness\*") $appPath
Remove-Item -Force -Recurse $tmpPath

# XXX setting the file association is so slow (it starts another shell)
# NB Starting on Windows 8, file associations cannot be really changed by
#    simply writting on the registry... we, as a user, still need to
#    right-click the file and select the "Open With" option. so sad...
# See Application Registration at http://msdn.microsoft.com/en-us/library/windows/desktop/ee872121(v=vs.85).aspx
# See How File Associations Work at http://msdn.microsoft.com/en-us/library/windows/desktop/dd758090(v=vs.85).aspx
# NB this creates, at least, the following registry keys:
#      [HKEY_LOCAL_MACHINE\Software\Classes\JPEGView.exe\shell\open\command]
#       @="\"C:\\Program Files\\JPEGView\\JPEGView.exe\" \"%1\" \"%*\""
#      [HKEY_LOCAL_MACHINE\Software\Classes\Applications\JPEGView.exe\shell\open\command]
#       @="\"C:\\Program Files\\JPEGView\\JPEGView.exe\" \"%1\" \"%*\""
#    and modifies the following values:
#      [HKEY_CLASSES_ROOT\.png]
#      @="JPEGView.exe"
#      [HKEY_CLASSES_ROOT\.png\OpenWithProgIds]
#      "JPEGView.exe"=""
Install-ChocolateyFileAssociation ".png" $jpegviewPath
Install-ChocolateyFileAssociation ".jpg" $jpegviewPath
Install-ChocolateyFileAssociation ".jpeg" $jpegviewPath
Install-ChocolateyFileAssociation ".webp" $jpegviewPath
Install-ChocolateyFileAssociation ".bmp" $jpegviewPath

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
JPEGView 1.0.35.1 1137 Sunday, November 27, 2016 Approved
JPEGView 1.0.33.0 405 Friday, May 1, 2015 Approved
JPEGView 1.0.32.1 437 Thursday, September 25, 2014 Approved

This package has no dependencies.

Discussion for the JPEGView Package

Ground Rules:

  • This discussion is only about JPEGView and the JPEGView 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 JPEGView, 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