An open API service indexing awesome lists of open source software.

https://github.com/geocine/remeta

ReMeta is a tool for removing and reading metadata from images via the Windows context menu, making it simple and efficient for managing image metadata.
https://github.com/geocine/remeta

Last synced: 3 months ago
JSON representation

ReMeta is a tool for removing and reading metadata from images via the Windows context menu, making it simple and efficient for managing image metadata.

Awesome Lists containing this project

README

          

# ReMeta

ReMeta is a powerful tool for removing and reading metadata from PNG images generated by the Stable Diffusion Web UI.

### Reading Metadata
https://user-images.githubusercontent.com/507464/215328728-ba06be72-a0e0-4252-8e98-11b00f526ab6.mp4

### Removing Metadata
https://user-images.githubusercontent.com/507464/215329121-06af4bf1-341a-4970-8277-103b44e10a8b.mp4

> Note: This tool was specifically built for the Stable Diffusion Web UI. It may not work with other PNG images. This tool is only tested in Windows.

## Installation

Download `ReMeta.zip` from [this link](https://github.com/geocine/remeta/releases/download/v1.0/ReMeta.zip) or go to [Releases page](https://github.com/geocine/remeta/releases) to get the latest one. Extract it to any folder. Inside the folder you will see 3 files: `remeta.exe`, `add.reg` and `remove.reg`.

Modify path to `remeta.exe` in `add.reg`. Replace `D:\\SW\\bin` with your path to `remeta.exe`.

So if you downloaded `remeta.exe` to `C:\\tools` folder you need to change `add.reg` like this
> Notice that you need to always use double `\` , eg. `C:\\the\\folder\\of\\remeta`

```diff
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell]

[HKEY_CLASSES_ROOT\*\shell\ReMeta]
"MUIVerb"="ReMeta"
"AppliesTo"=".png"
"SubCommands"="ReMeta.clear;ReMeta.get"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ReMeta.clear]
@="Remove Metadata"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ReMeta.clear\command]
-@="D:\\SW\\bin\\remeta.exe remove \"%1\""
+@="C:\\tools\\remeta.exe remove \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ReMeta.get]
@="Get Metadata"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ReMeta.get\command]
-@="D:\\SW\\bin\\remeta.exe read \"%1\""
+@="C:\\tools\\remeta.exe read \"%1\""

```
After you have modified and saved this just double click the `add.reg` file.

Do you want to allow this app to make changes to your device? Yes (If asked)
Then click Yes once this shows up
![image](https://user-images.githubusercontent.com/507464/215338709-6cbb23c0-379c-4a9b-95d3-e74d0a5c1656.png)

## Uninstallation

Run `remove.reg` to remove ReMeta from the Windows context menu.

Do you want to allow this app to make changes to your device? Yes (If asked)
Then click Yes once this shows up
![image](https://user-images.githubusercontent.com/507464/215338833-a1e7ea96-71c1-4a1d-8097-1d32d1c96a4c.png)

------

> Note: If you are not a developer you don't need to the information below

## Building

You need to have `go1.20rc1`
```
go install golang.org/dl/go1.20rc1@latest
go1.20rc1 download
```
Then build using the following command:
```sh
.\build.bat
```

## Usage

ReMeta is a CLI tool so you can use it from the command line
Removing metadata from images. This will create a new image with the same name but with the suffix `_raw`:
```sh
remeta remove
```
You can remove in `silent` mode if you don't want to see a popup
```sh
remeta -s remove
```
Reading metadata from images. This will open a window with the metadata:
```sh
remeta read
```