This question is answered. Helpful answers available: 0. Correct answers available: 1.


Permlink Replies: 59 - Pages: 4 [ Previous | 1 2 3 4 | Next ] - Last Post: 25-Jan-2017 07:44 Last Post By: Laza Threads: [ Previous | Next ]
jGromit

Posts: 33,207
Registered: 31-Jan-2006
Re: Base Skin Pimped with a new init.bsh
Posted: 12-Jan-2017 16:22   in response to: ChuckT in response to: ChuckT
 
  Click to reply to this thread Reply
ChuckT wrote:
Nope. using the last init.bsh (copy and paste in, save, set as default) I'm getting the background color I like and the file name but not the document title.
Drat

Where are you specifying the document title? And what is a "document title?" If you're talking about what shows up here in the <head> section on an index page:
<title>The Album Title</title>
That's specified under Settings > General > Album title.

Normally, jAlbum picks up whatever title you've entered for an image within the jAlbum user interface:



You can tell jAlbum to retrieve a couple of IPTC fields and use them for the title, under Settings > Advanced > Metadata > Title source.
jGromit

Posts: 33,207
Registered: 31-Jan-2006
Re: Base Skin Pimped with a new init.bsh
Posted: 12-Jan-2017 16:23   in response to: ChuckT in response to: ChuckT
 
  Click to reply to this thread Reply
ChuckT wrote:
Am I doing this correctly?

No, definitely not. Please wait for me to move this thread, and give Laza a "heads up."
ChuckT

Posts: 30
Registered: 6-Jan-2017
Re: Base Skin Pimped with a new init.bsh
Posted: 12-Jan-2017 16:33   in response to: ChuckT in response to: ChuckT
 
  Click to reply to this thread Reply
Thanks, appreciate the help. Looong time I tried any thing like programming.

cvt
Laza

Posts: 9,472
Registered: 6-Sep-2005
Re: Base Skin Pimped with a new init.bsh
Posted: 13-Jan-2017 12:28   in response to: ChuckT in response to: ChuckT
 
  Click to reply to this thread Reply
I don't know what you mean by "File Properties/Filename"? Is this an IPTC or Xmp field? If so you can use it.

As a general rule if you can see the field by "right-click -> List metadata" you can use it in the caption box. Probably neither "IPTC/Document Title" nor "Camera Data (Exif)/Date Time Original" will work. The default setting has it this way: "Xmp.Title, objectName, Xmp.Subject" and "originalDate|Date/Time Original|Date/Time|CreateDate|ModifyDate" - didn't it work for you?

The Caption will be constructed from "Title" + "Comment" + "Photo data". The template stands only for the last - the photo data. So if your images have "Titles" (see jGromits screenshot) or "Comments" they will show up independently of the "Photo data" - you don't need to specify "title" again.
ChuckT

Posts: 30
Registered: 6-Jan-2017
Re: Base Skin Pimped with a new init.bsh
Posted: 18-Jan-2017 13:56   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
For "File Properties/Filename" – I should have said the filename that both Windows and Apple display.
jGromit

Posts: 33,207
Registered: 31-Jan-2006
Re: Base Skin Pimped with a new init.bsh
Posted: 18-Jan-2017 14:02   in response to: ChuckT in response to: ChuckT
 
  Click to reply to this thread Reply
The file name is not metadata - it's not stored within the image file itself (if it were, you would never be able to change the name of a file!). Within jAlbum, right-click on a thumbnail and choose List metadata. That will show you the fields you can choose for the metadata display in the album.
ChuckT

Posts: 30
Registered: 6-Jan-2017
Re: Base Skin Pimped with a new init.bsh
Posted: 18-Jan-2017 14:02   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
The last change I've made is this:
1. Open the skin editor: Ctrl-Shift-E
2. Choose "page-header.inc"
3. Find line 108 (<ja:if test="${slideShowTopTitle}"><%= title.replaceAll("_", " ") %></ja:if>)
4. Replace <%= title.replaceAll("_", " ") %> with ${fileName} or ${label}. The latter is the filename without the extension.
5. Save + Make

<ja:if test="${slideShowTopTitle}"><%= title.replaceAll("_", " ") %></ja:if> became:
<ja:if test="${slideShowTopTitle}">${label}></ja:if>
Gave me this: label change_red.jpg (attached).
Is it possible to do this without having the ">" and the "-" displayed?
TIA
cvt
jGromit

Posts: 33,207
Registered: 31-Jan-2006
Re: Base Skin Pimped with a new init.bsh
Posted: 18-Jan-2017 14:16   in response to: ChuckT in response to: ChuckT
 
  Click to reply to this thread Reply
ChuckT wrote:
<ja:if test="${slideShowTopTitle}">${label}></ja:if>

You've left an unmatched bracket in there. What you want is this:
<ja:if test="${slideShowTopTitle}">${label}</ja:if>

Is it possible to do this without having ... the "-" displayed?

The dashes are part of the file name. Do you want to replace those with something? Do you also want to replace the underbar with something?
ChuckT

Posts: 30
Registered: 6-Jan-2017
Re: Base Skin Pimped with a new init.bsh
Posted: 18-Jan-2017 14:25   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Attachment No Metadata.jpg (321,7 KB)
Somethings is not working right. Screen shot of this AM attempt "No Metadata.jpg"

The files in this attempt are tiffs generated by Adobe Bridge/Camera Raw 9.7 and Bridge displays all the metadata from the original Raw files.

FYI I stopped using the Camera Raw files because the slides that jAlbum was creating was ignoring the corrections recorded in the "xmp" files.
jGromit

Posts: 33,207
Registered: 31-Jan-2006
Re: Base Skin Pimped with a new init.bsh
Posted: 18-Jan-2017 14:29   in response to: ChuckT in response to: ChuckT
 
  Click to reply to this thread Reply
The metadata extractor doesn't handle TIFF files. Generally speaking, TIFF files are for printing and publishing. If you're working with material for web display, stick to JPG's, sRGB color space.
ChuckT

Posts: 30
Registered: 6-Jan-2017
Re: Base Skin Pimped with a new init.bsh
Posted: 18-Jan-2017 14:31   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Thank you I will correct that ASAP.

The actual file name is"KSC-20170104-PH-AWG01_0001.tif"

I would like it to display as "KSC-20170104-PH-AWG01_0001".
The file extension is not vital to the viewer.
jGromit

Posts: 33,207
Registered: 31-Jan-2006
Re: Base Skin Pimped with a new init.bsh
Posted: 18-Jan-2017 14:38   in response to: ChuckT in response to: ChuckT
 
  Click to reply to this thread Reply
The label variable does not include the file extension, so that's already taken care of. Look at your own screenshot!
jGromit

Posts: 33,207
Registered: 31-Jan-2006
Re: Base Skin Pimped with a new init.bsh
Posted: 18-Jan-2017 15:02   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
The trailing dash on the file name in the caption below the slide image is the result of a bit of faulty logic in the skin template. I'll leave it to Laza to address that.

Laza - in init.bsh is the script for assembling the caption. It's putting a trailing sep after the title/comment if the user has chosen to display photo data and meta exists. But it doesn't account for the situation in which the user has chosen to display photo data, but the exact fields he's chosen don't exist for this image.

So, for example, he's chosen to display only IPTC.something, but the image doesn't include IPTC.something. In that case, meta may exist (there might be all kinds of EXIF info, for example), but there won't actually be anything to display. So, the trailing sep shouldn't be there.
ChuckT

Posts: 30
Registered: 6-Jan-2017
Re: Base Skin Pimped with a new init.bsh
Posted: 18-Jan-2017 16:19   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Attachment surpress byline.jpg (305,2 KB)
Thank you Grommit.

This is where I'm at <surpress byline.jpg, attached>. So I am getting somewhere :)

It should be possible to surppress the "iptc.nnnn" labels, how do I do that?
And why do I see only the first one?

I'm guessing that my syntax, the "|", is not correct. What should it be?
jGromit

Posts: 33,207
Registered: 31-Jan-2006
Re: Base Skin Pimped with a new init.bsh
Posted: 18-Jan-2017 16:34   in response to: ChuckT in response to: ChuckT
 
  Click to reply to this thread Reply
The pipe symbol is, as in most programming languages, an "or" choice. So, you're telling it to pick up Iptc.By-Line or Iptc.Date Created or Iptc.Keywords or Iptc.Sub-location, whichever one it encounters first. I suspect that's not what you intend. If you want it to pick up all of those, separate the choices with a comma, not a pipe.

I don't know how to suppress the labels. That's buried somewhere in Laza's compiled utilities.

Edited by: jGromit, for typos
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums