A Java command-line tool to create and edit Capture One metadata presets (.copreset files).
Your new Java project is ready to use. This tool will save you time by automating the creation of Capture One metadata presets.
p:\CaptureOneMetadataPresetCreator
launcher.batThis opens a menu where you can:
- Create presets interactively by answering prompts
- Edit existing presets interactively
- Run command-line commands directly
- Browse your Capture One presets folder
- Get help
java -jar dist\capture-one-preset-creator.jar --name "My Preset" --output "my_preset.copreset" --country "Canada"β
Automatic UUID Generation - Each preset gets a unique ID
β
Edit Existing Presets - Update selected fields while preserving other preset content
β
Full IPTC Support - Country, state, city, location metadata
β
Subject Codes - Support for IPTC subject codes
β
Command-Line Driven - Perfect for automation
β
Interactive Launcher - Easy-to-use menu
β
Standalone JAR - No external dependencies
java -jar dist\capture-one-preset-creator.jar --helpcd p:\CaptureOneMetadataPresetCreator
java -jar dist\capture-one-preset-creator.jar ^
--name "Test Preset" ^
--output "test.copreset" ^
--country "Canada"Copy the generated .copreset file to:
C:\Users\Ian\AppData\Local\CaptureOne\Presets60\Metadata
Your new preset will appear in the metadata presets menu!
Requires Java 11+ and either Apache Ant or Maven.
cd p:\CaptureOneMetadataPresetCreator
build.batcd p:\CaptureOneMetadataPresetCreator
mvn clean packageThis creates a JAR with all dependencies in target/capture-one-preset-creator.jar. The build output is placed in the dist/ directory for easy access.
| File | Purpose |
|---|---|
| launcher.bat | Easy interactive menu launcher π― |
| dist/capture-one-preset-creator.jar | The executable application |
| README.md | This comprehensive guide and reference |
| QUICKSTART.md | Quick reference with examples |
| PRESET_TEMPLATES.md | Pre-made templates for your presets |
| create_example_presets.bat | Example of batch creation |
java -jar dist\capture-one-preset-creator.jar -n "My Preset" -o "my.copreset"java -jar dist\capture-one-preset-creator.jar ^
-n "IPTC nature at Algonquin" ^
-o "nature_algonquin.copreset" ^
-c "Canada" ^
-s "Ontario" ^
-l "Algonquin Provincial Park"java -jar dist\capture-one-preset-creator.jar --helpQ: Do I need to install anything?
A: No! Java 11+ must be installed, but the JAR has all dependencies built-in.
Q: How do I add this to Capture One?
A: Copy the .copreset file to your Capture One presets folder and restart the app.
Q: Can I create multiple presets?
A: Yes! Run the command multiple times to create presets individually.
Q: What if I make a mistake?
A: Just create a new preset file - there's no limit!
Q: Can I edit existing presets?
A: Yes. Use --input to edit in place, or add --output to create an edited copy. You can also choose interactive editing in launcher.bat.
- Language: Java 11+
- Build System: Apache Ant (primary) / Maven (reference)
- Dependencies: Apache Commons CLI 1.5.0 (included in JAR)
- Output: XML format compatible with Capture One 60+
A unique UUID is automatically generated for each new preset and edited copy. In-place editing preserves the existing UUID. The UUID is:
- Printed to console after successful creation
- Included in the XML; newly created presets also contain a UUID comment
- Used internally by Capture One to identify the preset
Required when creating:
--name, -n <string>- Preset name (displayed in Capture One)--output, -o <path>- Output file path (e.g., 'preset.copreset')
Optional:
--input <path>- Edit an existing preset; omitted fields stay unchanged--interactive-edit- Edit interactively--country, -c <string>- Country name--state, -s <string>- State/Province name--iso-country-code, -i <string>- ISO country code (e.g., 'CAN', 'USA')--city, -C <string>- City name--location, -l <string>- Location description--category, -cat <string>- Image category--content-category, -cc <string>- Content category--subject-codes, -sc <string>- Subject codes in format:20000032||0,20000035||1--help, -h- Display help message
Edit selected fields in place, retaining the existing UUID:
java -jar dist\capture-one-preset-creator.jar --input "existing.copreset" --city "Toronto"Create an edited copy with a new UUID, leaving the input unchanged:
java -jar dist\capture-one-preset-creator.jar --input "existing.copreset" --output "copy.copreset" --name "New name"Explicitly passing an empty value, for example --city "", or a field name with no value, for example --city, removes that field. --state "" or --state removes both state fields. A specified output must be a different file from the input. Unsupported XML elements, attributes and comments are preserved, although XML formatting may change. The interactive editor uses Enter to keep a value and a separate confirmation to clear it.
-
Create a new preset:
java -jar dist\capture-one-preset-creator.jar ^ --name "IPTC nature at Baxter Park" ^ --output "new_preset.copreset" ^ --country "Canada" ^ --state "Ontario" ^ --location "Baxter Conservation Area"
-
Copy the generated file to your Capture One presets folder
-
Open Capture One and select your new preset from the metadata presets menu
CaptureOneMetadataPresetCreator/
βββ build.bat / build.sh # Build scripts
βββ launcher.bat # Interactive launcher
βββ README.md # This file (comprehensive guide)
βββ QUICKSTART.md # Quick reference guide
βββ PRESET_TEMPLATES.md # Template examples
βββ PROJECT_SUMMARY.md # Technical summary
βββ dist/ # Build output
βββ src/main/java/com/lesliesoftware/captureone/
βββ PresetCreator.java # Main CLI application
βββ MetadataPreset.java # Preset data model and XML generation
- Apache Commons CLI 1.5.0 - Command-line argument parsing
- JAXB 2.3.1 - XML handling (included for Java 11+)
After generating the .copreset file, copy it to your Capture One presets folder:
C:\Users\<YourUsername>\AppData\Local\CaptureOne\Presets60\Metadata
The preset will appear in Capture One's metadata presets menu on next restart.
"java: command not found"
- Install Java from https://adoptium.net
"JAR not found"
- Run
setup.batfirst to build the project
"Preset doesn't appear in Capture One"
- Verify the file is in the correct folder
- Restart Capture One
- Check that the filename ends with
.copreset
"Invalid argument" error
- Check that your command-line arguments are properly formatted
- Use
--helpto verify syntax
- New presets and edited copies get a new UUID; in-place edits retain the existing UUID
- Presets are stored as XML files
- All generated files are standalone and can be shared
- The tool is fast - you can create presets in seconds
- Read this README for detailed examples and reference
- Try launcher.bat for the interactive experience
- Explore PRESET_TEMPLATES.md for your existing presets
- Copy the .copreset files to Capture One's presets folder
- Restart Capture One and use your presets!
π You're all set! Enjoy creating presets programmatically!
For quick examples, see QUICKSTART.md