Adding some new support for writing resized files, pusing the
caption to thouse files. Returning if False if xmp is missing.
if retcode:
print 'Error: '+' '.join(cmd)+' Returncode ['+str(retcode)+']'
exit
+ else:
+ cmd = ['exiftool', '-XMP:CreatorTool=treecutter','-quiet','-overwrite_original', outfile]
+ retcode = subprocess.call(cmd)
+ if retcode:
+ print 'Error: '+' '.join(cmd)+' Returncode ['+str(retcode)+']'
+ exit
xmpfile.close_file()
self._format[size] = outfile
return outfile
def generated(self):
xmpfile = XMPFiles(file_path=self._filename)
xmp = xmpfile.get_xmp()
+ if not xmp:
+ return False
cr = None
if xmp.does_property_exist(consts.XMP_NS_XMP, u'CreatorTool'):
cr = xmp.get_property(consts.XMP_NS_XMP, u'CreatorTool')