Project

General

Profile

Feature #8743

Watermark: Date expansion

Added by Jesper Pedersen over 6 years ago.

Status:
Fixed
Priority:
Medium
Category:
Darkroom
Start date:
06/03/2012
Due date:
% Done:

100%

Affected Version:
System:
bitness:
64-bit
hardware architecture:
amd64/x86

Description

Allow current date expansion in the watermark module, like

$(DATE.DAY) -- 1..31
$(DATE.N_MONTH) -- 1..12
$(DATE.A_SHORT_MONTH) -- Jan, Feb, .., Dec
$(DATE.A_LONG_MONTH) -- January, February, .., December
$(DATE.SHORT_YEAR) -- 12
$(DATE.LONG_YEAR) -- 2012

Could include settings for hour (12h/24h), minute and second too.

Associated revisions

Revision 0cf39616
Added by Tobias Ellinghaus over 6 years ago

Fix #8743: Add more date variables

There are:
$(EXIF.DATE.SECOND) -- 00..60
$(EXIF.DATE.MINUTE) -- 00..59
$(EXIF.DATE.HOUR) -- 00..23
$(EXIF.DATE.HOUR_AMPM) -- 01..12
$(EXIF.DATE.DAY) -- 01..31
$(EXIF.DATE.MONTH) -- 01..12
$(EXIF.DATE.SHORT_MONTH) -- Jan, Feb, .., Dec, localized
$(EXIF.DATE.LONG_MONTH) -- January, February, .., December, localized
$(EXIF.DATE.SHORT_YEAR) -- 12
$(EXIF.DATE.LONG_YEAR) -- 2012

Revision 24dc48ba
Added by Tobias Ellinghaus over 6 years ago

Fix #8743: This time for real

$(DATE.SECOND) -- 00..60
$(DATE.MINUTE) -- 00..59
$(DATE.HOUR) -- 00..23
$(DATE.HOUR_AMPM) -- 01..12
$(DATE.DAY) -- 01..31
$(DATE.MONTH) -- 01..12
$(DATE.SHORT_MONTH) -- Jan, Feb, .., Dec, localized
$(DATE.LONG_MONTH) -- January, February, .., December, localized
$(DATE.SHORT_YEAR) -- 12
$(DATE.LONG_YEAR) -- 2012

Revision ec5dbf14
Added by Tobias Ellinghaus over 6 years ago

Fix #8743: Add more date variables

There are:
$(EXIF.DATE.SECOND) -- 00..60
$(EXIF.DATE.MINUTE) -- 00..59
$(EXIF.DATE.HOUR) -- 00..23
$(EXIF.DATE.HOUR_AMPM) -- 01..12
$(EXIF.DATE.DAY) -- 01..31
$(EXIF.DATE.MONTH) -- 01..12
$(EXIF.DATE.SHORT_MONTH) -- Jan, Feb, .., Dec, localized
$(EXIF.DATE.LONG_MONTH) -- January, February, .., December, localized
$(EXIF.DATE.SHORT_YEAR) -- 12
$(EXIF.DATE.LONG_YEAR) -- 2012

Revision f45b7317
Added by Tobias Ellinghaus over 6 years ago

Fix #8743: This time for real

$(DATE.SECOND) -- 00..60
$(DATE.MINUTE) -- 00..59
$(DATE.HOUR) -- 00..23
$(DATE.HOUR_AMPM) -- 01..12
$(DATE.DAY) -- 01..31
$(DATE.MONTH) -- 01..12
$(DATE.SHORT_MONTH) -- Jan, Feb, .., Dec, localized
$(DATE.LONG_MONTH) -- January, February, .., December, localized
$(DATE.SHORT_YEAR) -- 12
$(DATE.LONG_YEAR) -- 2012

History

#1 Updated by Tobias Ellinghaus over 6 years ago

  • Status changed from New to In Progress
  • Assignee set to Tobias Ellinghaus
  • Target version set to Candidate for next minor release

#2 Updated by Tobias Ellinghaus over 6 years ago

  • Status changed from In Progress to Fixed

Fixed in 0cf39616d3c8ebc0ead62f4e91ea3b669e65f6aa.

I added the following (almost like you proposed):

$(EXIF.DATE.SECOND) -- 00..60
$(EXIF.DATE.MINUTE) -- 00..59
$(EXIF.DATE.HOUR) -- 00..23
$(EXIF.DATE.HOUR_AMPM) -- 01..12
$(EXIF.DATE.DAY) -- 01..31
$(EXIF.DATE.MONTH) -- 01..12
$(EXIF.DATE.SHORT_MONTH) -- Jan, Feb, .., Dec, localized
$(EXIF.DATE.LONG_MONTH) -- January, February, .., December, localized
$(EXIF.DATE.SHORT_YEAR) -- 12
$(EXIF.DATE.LONG_YEAR) -- 2012

#3 Updated by Jesper Pedersen over 6 years ago

It wasn't the EXIF date - it was the current date.

A picture may be taken days/weeks/months/years ago, so you want to use the date of publication in the watermark. The EXIF data maybe stripped from the final image.

The above looks good though :) And adding the $(DATE.XXX) part should be easy now.

#4 Updated by Tobias Ellinghaus over 6 years ago

  • % Done changed from 0 to 50

Sorry, my failure. I'll add it in a sec.

Hmm, for some reason I can't reopen the ticket. Whatever.

#5 Updated by Tobias Ellinghaus over 6 years ago

  • % Done changed from 50 to 100

i really hope that 24dc48baeb7a78b91d45e92d3ca4a98dd710b59b fixed it. :)

#6 Updated by Jesper Pedersen over 6 years ago

Looks good - thanks !

#7 Updated by Simon Spannagel over 6 years ago

Tobias Ellinghaus wrote:

Hmm, for some reason I can't reopen the ticket. Whatever.

Ooops. Should be possible now...

Also available in: Atom PDF