Windows自带的照片查看软件名为:Windows Photo Viewer
当有一天电脑里的图片打不开了,而且打开方式里少了“Windows 照片查看器”,可以尝试以下方式恢复:
方法一:编辑注册表
Window键+R,输入regedit
进入目录
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations
在【FileAssociations】目录下,在该界面击【右键】,选择【新建】-【字符串值】
如果想要打开【.png】后缀的文件,那么数值名称要写为【.png】,数值数据写为【PhotoViewer.FileAssoc.Tiff】,点击【确定】;
此处以打开【.jpg】后缀的文件为例。
重命名为“.jpg”
方法二:将以下文本保存为Viewer.reg,再导入注册表:
Win10企业版
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations]
".bmp"="PhotoViewer.FileAssoc.Tiff"
".gif"="PhotoViewer.FileAssoc.Tiff"
".jpg"="PhotoViewer.FileAssoc.Tiff"
".jpeg"="PhotoViewer.FileAssoc.Tiff"
".png"="PhotoViewer.FileAssoc.Tiff"
".tif"="PhotoViewer.FileAssoc.Tiff"
".tiff"="PhotoViewer.FileAssoc.Tiff"
".ico"="PhotoViewer.FileAssoc.Tiff"
Win10专业版
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations\.jpg] @="PhotoViewer.FileAssoc.Tiff"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations\.jpeg] @="PhotoViewer.FileAssoc.Tiff"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations\.gif] @="PhotoViewer.FileAssoc.Tiff"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations\.png] @="PhotoViewer.FileAssoc.Tiff"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations\.bmp] @="PhotoViewer.FileAssoc.Tiff"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations\.tiff] @="PhotoViewer.FileAssoc.Tiff"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations\.ico] @="PhotoViewer.FileAssoc.Tiff"
在桌面新建文本文档:
重命名为View及后缀名为.reg
打开及粘贴
Window键+R
运行注册表及导入
导进后,注册表就自动生成