export const loadExifImageCreatedDate = ( date , entityCreatedDate ? , imageCreatedDate ? ) : string => entityCreatedDate ?? imageCreatedDate ?? date . toISOString ( ) ; export const loadExifImagePublishedDate = ( date , entityPublishedDate ? ) : string => entityPublishedDate ?? date . toISOString ( ) ; export const loadExifImageSeoKeywords = ( entitySeoKeywords , imageSeoKeywords ? ) : string [ ] => { const entityKeywords = new Set ( [ 'Dark Rush Photography' , 'Photography' , ... entitySeoKeywords , ] ) ; if ( ! imageSeoKeywords ) return [ ... entityKeywords ] ; const entityAndImageSeoKeywords = new Set ( [ ... entityKeywords ] ) ; imageSeoKeywords . split ( ',' ) . forEach ( ( imageSeoKeyword ) => entityAndImageSeoKeywords . add ( imageSeoKeyword ) ) ; return [ ... entityAndImageSeoKeywords ] ; } ;