Get the Preview context menu item for Photo Viewer in Windows 10

Some time ago, we covered how to get the Photo Viewer app back in Windows 10. While that trick works perfectly, the only thing missing was the "Preview" context menu verb in File Explorer. In previous Windows versions, you were able to right click an image in Explorer and pick "Preview" to see it quickly. Today, we will revive this option for Windows 10. The benefit of adding a Preview verb is that even if you use some other image viewer as the default, you can quickly open any image in Windows Photo Viewer whenever required.

Advertisement


To get the Preview context menu item for Photo Viewer in Windows 10, all you need to do is apply a simple Registry tweak as described below.
  1. Open Registry Editor.
  2. Go to the following Registry key:
    HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell

    Tip: You can access any desired Registry key with one click.
    If you do not have such a key, then just create it.

  3. At this key, create a new subkey named Image Preview to get the following path
    HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\Image Preview
  4. Under it, create a new subkey named Command to get the following path
    HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\Image Preview\Command
  5. Set the default (unnamed) parameter to the following value:
    %SystemRoot%\System32\rundll32.exe "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen %1

    (You can copy paste the text above)
    You will get something like this:Photo Viewer Context Menu WIndows 10

Now, right click any image in File Explorer. A new "Image Preview" item will appear:

Photo Viewer Context Menu WIndows 10 - 02

If you click it, the Photo Viewer app will open.

Windows 10 get photoviewer backThat's it.

I prepared Registry files so you can get the context menu entry with one click:

Download Registry files

Double click the file "Image Preview.reg" to get the context menu item in your File Explorer. The Undo file is included. Thanks to our reader "ThePhinx" for sharing this tip.

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

Advertisment

26 thoughts on “Get the Preview context menu item for Photo Viewer in Windows 10

  1. helmutcheese

    I do not see why this differs from Preview at top of menu, it opens the exact same.

    Reply
    1. Gary R

      If you’re on the desktop, or just prefer not to turn on the preview page, this is necessary and much quicker.

      Reply
  2. Gandalf

    This tweak works well on new build 10532

    Thank you very much

    Reply
    1. Sergey Tkachenko Post author

      You are welcome

      Reply
  3. helmutcheese

    Can you please explain why it is different from what I said above (in case I am missing something)?

    (I already did your tweak to use the Photo Viewer and that is great).

    Reply
    1. Chris (Slinky Grafix)

      I agree with @melmutcheese, I see no point in this tutorial as the ‘Preview’ option is at the top of the right click menu already. Likewise once the image is opened in Photo Viewer the user can press the next button at the bottom of the window to view the next image in that folder.

      Reply
  4. cj4soccer

    this works great to preview one image file at a time; is there any way to preview multiple selected files? in previous versions of windows, i could select a group of files and preview them all in windows photo viewer, flipping through very easily. would like this functionality to be restored. thanks!

    Reply
    1. ThePhinx

      Hi cj4soccer,
      Yes, there is a way to preview multiple selected files with the Windows Photo Viewer (context menu) for Windows 10. To be fair, I forgot to add a step in my original tip to restore the Image Preview context menu. To restore this functionality:

      1) First, follow Sergey’s steps outlined above to get the Image Preview context menu working in Windows 10.
      2) Then, in Regedit, navigate to:
      “HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\Image Preview”
      3) Create a new Key under “Image Preview” named DropTarget
      4) With the new DropTarget key selected, on the right hand side, now create a new String named CLSID and set its value to {FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}
      5) Close Regedit.

      That’s it. Scrolling through multiple selected files using the Image Preview context menu now works in Windows 10. Sergey, feel free to update this blog entry to include this extra Registry key required to get scrolling through multiple selected files working again.

      – ThePhinx

      Reply
      1. Sergey Tkachenko Post author

        Thank you. I will update the article tomorrow :)

        Reply
  5. helmutcheese

    How about a reply to my question since you seem to be replying to others.

    I cannot see any difference in the 2 Menu Choices.

    Reply
    1. Chris (Slinky Grafix)

      The simple truth is that there is no difference! This tutorial only duplicates what is already available at the top of the right-click context menu. If people look at the second image of this tutorial they can see that ‘Preview’ is already shown in BOLD type, what’s the point of adding it again?? I think the preview option has moved up the list in Windows 10, maybe that’s why Sergey over-looked it?? LOL!!!

      Reply
  6. helmutcheese

    I only asked n case I was missing something not to be smartarse but think the OP may have though so.

    I wondered if it was different as you could hover and not click or something but the descriptions clearly states you click and its no different to what I already have by default.

    Reply
  7. Steven

    I don’t know about everyone, but for me, ther is NOT a PREVIEW option in the Right-Click Context Menu in my Windows 10 Enterprise Edition. this gives me back the capability to just preview images without invoking a program like Photoshop which is set as my default for numerous types of image files. HTH

    Reply
  8. Tranber44

    Hello,

    I followed strictly your tutorial but when I click on Image preview for a photo situéedans a directory of the record(disk) C:/, I have the following message:

    “Windows does not succeed in reaching the ring road(peripheral), the access path(road) or the specified file. You do not maybe arrange authorizations suited to have access to the element.”

    Have you an idea of the reason of this message?
    I am the administrator of my PC.

    Regards

    B. Delassus

    Reply
    1. Morvyn Finch

      Same as above comment. A fix would be appreciated!

      Reply
    2. Halv

      I had the same problem. Following the steps in ThePhinx’s reply to cj4soccer on August 30, 2015 fixed it for me. :)

      Reply
  9. Jay G. Stone

    Thanks for the “Image preview” registry hack. It works great!!!! Cheers.

    Reply
    1. Sergey Tkachenko Post author

      don’t mention it.

      Reply
  10. Gary R

    Ran the .reg file you provided, worked perfectly. Been trying to find this for a month. Thank you!!!

    Reply
    1. Sergey Tkachenko Post author

      You are welcome.

      Reply
  11. Paul

    Hello. When I add this to the registry, and try the ‘Image Preview’ context menu, I get: “Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item.” Thoughts?

    Reply
    1. Paul

      I must have typed something incorrect, as the reg download file works great!

      Reply
  12. m

    There’s an easy way to make it work the old way.

    Open any folder with an image file – ie *.jpg
    Right click on the file, and select “Properties” from the menu.
    Under the “General” tab, you’ll see an “Opens with” option. Click “Change”. In the list of options is “Windows Photo Viewer”. Select this, then click “Apply”.

    This will give you back the right-click Preview option, which works just like it did in Windows 7/8.

    Reply
  13. Jim Connell

    If I follow the listed instructions, I get a REG_SZ value and I get the same error as Paul above. If I run the downloaded *.reg file, I get a REG_EXPAND_SZ value, and it works. Something’s not right.

    Reply
  14. Ruudtes

    to begin: the new key “command” must be typed all lower case
    in the key “command” the default (unnamed) parameter must be deleted
    instead create a new “Expendable String Value”
    rename it in (Default)
    and set its parameters as described

    works perfect, I have been searching fo this for ages

    Reply
    1. Billy Thomas

      I don’t know why this is so difficult to understand what is being asked. The issue is NOT that preview is not a default option in the context menu, The issue is that in earlier versions of Windows, If you right clicked on an image file in Windows explorer, a thumbnail image appeared in the context menu, along with the standard options. Are the MS engineers trying to confuse the issue are are they just that thick headed?

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *