Author Topic: substring for html export watermarks?  (Read 3717 times)

Offline ron_hiner

  • Full Member
  • ***
  • Posts: 222
    • View Profile
substring for html export watermarks?
« on: October 10, 2007, 04:33:48 PM »
I'd like to put on my watermarks a portion of my filename... but not the whole thing...

Is there a way to do that? 
For example: If my file name is.... "the_hannah_montana_concert_where_i_sat_in_the_first_row_322.jpg"
I want my watermark to say simply  "Image #322"

syntax something like this:
Image #{those_last_three_chars of{filenamebase}}

Is there a way to do that?  (I can't find anything relevant when I search for the word substring)

Thanks!

Ron

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: substring for html export watermarks?
« Reply #1 on: October 10, 2007, 05:38:54 PM »
Ron,

I'd like to put on my watermarks a portion of my filename... but not the whole thing...

Is there a way to do that? 
For example: If my file name is.... "the_hannah_montana_concert_where_i_sat_in_the_first_row_322.jpg"
I want my watermark to say simply  "Image #322"

syntax something like this:
Image #{those_last_three_chars of{filenamebase}}

Is there a way to do that?  (I can't find anything relevant when I search for the word substring)

As long as you have PM 4.5.2 or higher you can do this:

Image #{filename:-3}

That should do what you want.

-Kirk