https://github.com/tomkyle/show-crop
Display CRS Crop information stored in XMP Meta tags (Bash)
https://github.com/tomkyle/show-crop
Last synced: 7 months ago
JSON representation
Display CRS Crop information stored in XMP Meta tags (Bash)
- Host: GitHub
- URL: https://github.com/tomkyle/show-crop
- Owner: tomkyle
- Created: 2017-05-22T07:28:08.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-30T19:19:30.000Z (about 9 years ago)
- Last Synced: 2024-12-29T11:45:53.212Z (over 1 year ago)
- Language: Shell
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Show XMP crs Crop information
**Bash script to display CRS Crop information stored in XMP Meta tags. Uses XMP sidecar file if used on RAW files.**
Requires Phil Harvey's [exiftool](http://www.sno.phy.queensu.ca/~phil/exiftool/) which is installable via Homebrew.
## Usage
```bash
$ show-crop image1 [ images ...]
```
## Example
```bash
$ show-crop image-nocrop.tif "image-cropped.tiff" "test-cropped.NEF"
# First image
Warning: No CRS crop data available for 'image-nocrop.tif'.
# Second image image
image-cropped.tiff
HasCrop: True
CropTop: 0.113804
CropLeft: 0.129985
CropBottom: 0.621707
CropRight: 0.868538
CropAngle: 0
CropWidth:
CropHeight:
CropUnits:
# Third image
Warning: Image 'test-cropped.NEF' itself has no CRS crop data, use XMP sidecar instead: test-cropped.xmp
test-cropped.xmp
HasCrop: True
CropTop: 0.02378
CropLeft: 0.075063
CropBottom: 0.87985
CropRight: 0.710592
CropAngle: 0
CropWidth:
CropHeight:
CropUnits:
```
## Release Notes
### v.1.1.0
When used on RAW files, its XMP sidecar file will be evaluated instead. The reason is: Since typical RAW files do not carry crop data in themselves, RAW converters will typically put a XMP sidecar file beneath them to store their editing actions like cropping.
## Development
```bash
$ git clone https://github.com/tomkyle/show-crop.git
```