Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
* Update notes on JPEGView's new need for Microsoft Visual C++ Redistributable for Visual Studio 2022. Also to serve as a nice point to tag this release.
* After prior messy commits, the "minimal" set of VCRedist DLLs needed by JXL & AVIF has been determined, and baked into JPEGView.zip distro and JPEGView's MSI installer.
Hopefully, it's now 'portable' once again, with just a little more bloat.
  • Loading branch information
sdneon committed Jan 29, 2023
1 parent c7bb411 commit e3d6bf9
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,17 @@ Roughly follow the steps in [aom's guide](https://aomedia.googlesource.com/aom)
* Many project may fail to build (like owing to bad jpeg libs, etc), but they probably don't matter / aren't needed.
* Desired output: `libavif_build/avif.lib` and `avif.dll`, which are needed by JPEGView =)

### JPEGView
### Building JPEGView
The above `avif.lib` then goes into `src\JPEGView\libavif\lib64`.
`avif.dll` goes to `src\JPEGView\bin\x64\Release` and/or Debug folder.
These are added in `JPEGView.vcxproj`'s configuration.

Simply build using the VS solution file.

## ICO Image Format
ICO file can contain multiple icons of various sizes.
WICLoader can read the 'frame' count, i.e. number of images. It has been modified to find the largest one amongst them and extract that image.

# Installation

## Official Releases
Expand All @@ -281,7 +287,15 @@ Official releases will be made to [sylikc's GitHub Releases](https://github.com/

JPEGView _does not require installation_ to run. Just **unzip, and run** either the 64-bit version, or the 32-bit version depending on which platform you're on. It can save the settings to the extracted folder and run entirely portable.

With the addition of support for AVIF and especially JPEG XL, _additional installation of VC redistributables_ is needed. This is owing to their dependency on [Microsoft Visual C++ Redistributable for Visual Studio 2022](https://visualstudio.microsoft.com/downloads/#microsoft-visual-c-redistributable-for-visual-studio-2022)'s trio of vcruntime140.dll, vcruntime140_1.dll, and msvcp140.dll - which in turn requires many other VC DLLs!
### Mostly
With the addition of support for AVIF and especially JPEG XL, _additional VC redistributable DLLs_ are needed. This is owing to their dependency on [Microsoft Visual C++ Redistributable for Visual Studio 2022](https://visualstudio.microsoft.com/downloads/#microsoft-visual-c-redistributable-for-visual-studio-2022)'s trio of vcruntime140.dll, vcruntime140_1.dll, and msvcp140.dll - which in turn requires many other VC DLLs!

These DLLs are now packed in the mod's
* `JPEGView.zip`'s `extras` folder in case you need them.
* Try running JPEGView without using them - you may already have the VCRedist installed for other apps.
* If fail, move the DLLs out from `extras` folder to the same folder as JPEGView.exe. It should then work.
* `JPEGView.Setup.msi` installer - this will by default install the DLLs in JPEGView's folder.
* If you already have a proper VCRedist installation, you may skip this set's installation by going into Advanced options and deselect "VCRedist for AVIF and JXL".

### Mod Update Portable Apps Version

Expand Down

0 comments on commit e3d6bf9

Please sign in to comment.