https://github.com/tesar-tech/renamephotos
dotnet global tool that renames photos based on theri EXIF date taken
https://github.com/tesar-tech/renamephotos
Last synced: 2 months ago
JSON representation
dotnet global tool that renames photos based on theri EXIF date taken
- Host: GitHub
- URL: https://github.com/tesar-tech/renamephotos
- Owner: tesar-tech
- Created: 2020-05-26T06:56:35.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-09T19:48:20.000Z (over 4 years ago)
- Last Synced: 2025-01-20T08:50:07.324Z (over 1 year ago)
- Language: PowerShell
- Size: 15.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rename photos
From this: `DSC106.jpg` To: `20200312_2345.jpg`
Dotnet tool for renaming photos in **date taken** metadata style. Works with .net5.0.
## Install
> dotnet tool install renamephotos -g
[](https://www.nuget.org/packages/RenamePhotos/)
## Usage
Use `RenamePhotos` command in folder with `.jpg` pictures. It will rename them all.
## How to create and publish NuGet package
This is mostly selfnote for me.
When I will be buildingcreating next nuget package I know I will look at here ¯\\_(ツ)_/¯ .
### Create nuget package
- change the package vesion inside `.csproj`: `1.0.6`
- instal nuget with choco: `choco install nuget.commandline`
- publish project `dotnet publish -c release`
- this will generate package, because there is `./nupkg` and `true` that will ensure package will be created in `nupkg` folder. In that case `.nuspec` is not needed here.
### Publish
- (easy way) Login to nuget.org and drag the package in there, or:
- generate api key on nuget.org
- store the api key: `nuget setApiKey iamthesecretkey`
- push the package: `nuget push .\nupkg\RenamePhotos.1.0.7.nupkg -Source https://api.nuget.org/v3/index.json`
- More info [here](https://docs.microsoft.com/en-us/nuget/nuget-org/publish-a-package)
- [Properties](https://docs.microsoft.com/en-us/nuget/reference/msbuild-targets#pack-target) for `.nuspec` file and their alternatives in `.csproj`.