Skip to content

Display CRS Crop information stored in XMP Meta tags (Bash)

Notifications You must be signed in to change notification settings

tomkyle/show-crop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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 which is installable via Homebrew.

Usage

$ show-crop image1 [ images ...]

Example

$ 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

$ git clone https://github.com/tomkyle/show-crop.git

About

Display CRS Crop information stored in XMP Meta tags (Bash)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages