XMP files

AfterShot Pro General Questions & Getting Started Forum
Post Reply
pgman
Posts: 79
Joined: Sun Feb 12, 2012 8:06 pm
operating_system: Linux
System_Drive: N/A

XMP files

Post by pgman »

Hi,

I'm not here to restart the debates on the XMP implementation with Bibble/ASP, BUT...

Is there a way of setting ASP to generate the standard XMP file at the same time as the ASP .cr2.XMP or .nef.XMP file so that other software can view the IPTC information?

I have forgotten too many times to generate the standard XMP, then I have a hard time finding the photo for which I should generate the standard XMP file.

Thanks
afx
Posts: 1675
Joined: Thu Jan 12, 2012 1:38 pm
operating_system: Linux
System_Drive: N/A
32bit or 64bit: 64 Bit
Video Card: FirePro 4900
Monitor/Display Make & Model: NEC PA301w, ColorMunki
Location: München
Contact:

Re: XMP files

Post by afx »

Unfortunately not ;-(

cheers
afx
Send bugs to the Monkey // AfterShot Kickstart Guide // sRGB clipping sucks and Adobe RGB is just as bad
Bibble since 2005 // W7 64 on quad Phenom // Ubuntu 14.4 on quad i7 and dualcore AMD // Images
andreas
Posts: 154
Joined: Thu Jan 12, 2012 1:53 pm
operating_system: Linux
System_Drive: X
32bit or 64bit: 64 Bit
motherboard: Asus in Workstation and Dell XPS Notebook
processor: i7-980 and i7-2720QM
ram: 12GB - 8GB
Video Card: ATI FireGL
sound_card: on board
Hard_Drive_Capacity: 4.5TB Rd10
Monitor/Display Make & Model: Samsung Syncmaster 2343sw
Location: DE - Wermelskirchen
Contact:

Re: XMP files

Post by andreas »

bash is you friend.. save this as checkForDefaultXMP, make executable and call with the path to check as its argument:

Code: Select all

#!/bin/bash

# if argument is directory check it 
if [ -d "$1" ]; then
	find "$1" -name "*.xmp" -exec checkForDefaultXMP {} \;
	exit 0
fi

# image argument...

# image name to check
IMG="$1"
ORG=$IMG

# raw patterns to include
IMG=${IMG%.nef.xmp}
IMG=${IMG%.cr2.xmp}

# no match for default xmps
[ "$ORG" = "$IMG" ] && exit 0

[ -f "$IMG.xmp" ] || echo "no default XMP for: ${ORG%.xmp}"

exit 0
Use with care, only quick test done. You can add more raw patterns in the script.

Andreas
Linux - not Windows
Post Reply