Why not? Windows Photo Viewer is EOL but i like it and a lot of people still use it. Besides, on a fresh install of Windows 7 you have nothing else to

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-04-23 23:00:08

Why not? Windows Photo Viewer is EOL but i like it and a lot of people still use it. Besides, on a fresh install of Windows 7 you have nothing else to open images (except Paint).

The DLL we need to patch (ImagingEngine.dll) is usually located in "C:\Program Files\Windows Photo Viewer\" or "C:\Program Files (x86)\Windows Photo Viewer\". I suggest patching both the x86 and x64 dll, most of the times Windows uses the x86 one even if you are in a x64 environment

Note that sometimes the antivirus may flag the .exe but it's a false positive and you can safely add it to the exclusions list.

When the image contains an unknown icc profile Windows Photo Viewer tries to perform color mapping by calling CreateMultiProfileTransform but fails, we can patch the check to ignore the invalid icc profile and move on. What happens if we ignore the invalid profile? Does it use the default one? I really don't know, I only know it starts working.

You can edit the image with an hex editor like HxD and corrupt the color profile indication. Search for the string ICC_PROFILE and just change a random letter (for example make it ICC_aROFILE). You can now normally open the image on every computer without needing the patch

Leave a Comment