简体   繁体   English

通过 Windows 10 文件资源管理器中的上下文菜单水平翻转

[英]Flip Horizontally Through the Context Menu in the Windows 10 File Explorer

When I right-click on an image in the Windows 10 File Explorer, I get the option to either rotate right or rotate left in the context menu, but not to flip horizontally.当我在 Windows 10 文件资源管理器中右键单击图像时,我可以在上下文菜单中选择向右旋转或向左旋转,但不能水平翻转。 I instead click edit, which opens up Paint, and I flip my images one at a time.我改为单击编辑,这会打开画图,然后我一次翻转一张图像。 This is very time consuming, and it would be really convenient to be able to bulk flip a bunch of images with a single click.这非常耗时,并且能够通过单击批量翻转一堆图像真的很方便。

Registry File RotateNoneFlipX.reg注册表文件 RotateNoneFlipX.reg

Windows Registry Editor Version 5.00 Windows 注册表编辑器版本 5.00

[HKEY_CLASSES_ROOT\Directory\shell\RotateNoneFlipX] [HKEY_CLASSES_ROOT\Directory\shell\RotateNoneFlipX]

[HKEY_CLASSES_ROOT\Directory\shell\RotateNoneFlipX\command] @="PowerShell.exe -File "C:\RotateNoneFlipX.ps1" -path "%V" " [HKEY_CLASSES_ROOT\Directory\shell\RotateNoneFlipX\command] @="PowerShell.exe -File "C:\RotateNoneFlipX.ps1" -path "%V" "

The RotateNoneFlipX.ps1 PowerShell Script in C:\RotateNoneFlip.ps1 C:\RotateNoneFlip.ps1 中的 RotateNoneFlipX.ps1 PowerShell 脚本

param([string]$path)

[System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
Get-ChildItem -recurse ($path) -include @("*.png", "*.jpg") |
ForEach-Object {
  $image = [System.Drawing.image]::FromFile( $_ )
  $image.rotateflip("RotateNoneFlipX")
  $image.save($_)
}

Use: Select Folder in File Explorer, Right-Click and Select RotateNoneFlipX command to flip all png en jpg files in folder使用:Select 文件夹在文件资源管理器中,右键单击和 Select RotateNoneFlipX 命令翻转文件夹中的所有 png 和 jpg 文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM