Results 1 to 5 of 5
  1. #1
    Shawn is offline Senior Member
    Join Date
    Aug 2007
    Location
    Topsham, Maine
    Posts
    192

    Default InDesign CS5 Auto-Captioning Images without extensions

    I've got a catalog project were hundreds of images need to be automatically captioned with the filename.

    It looks like using the Generate Caption in InDesign CS5 would be perfect for this, but when I use it and base the caption on the name, it applies the filename with the extension. I need the image name only without the .jpg or .tif extension.

    I don't see an easy way to do this in the InDesign settings. I can think of a couple of workarounds involving nested styles or messing with the EXIF data in Adobe Bridge, but before going down that route--and possibly pulling something in my head--I thought I'd check to see if I'm missing something? Seems like it would be a useful option to have.

    Thanks
    Shawn

  2. #2
    DCurry is offline Senior Member
    Join Date
    Aug 2007
    Posts
    248

    Default

    You could just do a Find/Change and replace ".jpg" with nothing. You'd have to do it for each extension used, but it would not take long at all.

  3. #3
    Sherbert's Avatar
    Sherbert is offline Senior Member
    Join Date
    Sep 2007
    Posts
    108

    Default

    Just add the caption in bridge instead of using the file name?
    Prepress Monkey

  4. #4
    Lukas Engqvist's Avatar
    Lukas Engqvist is offline Senior Member
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    1,591

    Default

    use a GREP style making ".jpg" invisible?

  5. #5
    Shawn is offline Senior Member
    Join Date
    Aug 2007
    Location
    Topsham, Maine
    Posts
    192

    Default

    Thanks everyone for the suggestions.

    I'd prefer to avoid doing a simple find and replace, since the placement isn't going to be done in house and we'd rather have something a little more automatic. Plus the images could be coming in as various formats so we'd have to do a find for .jpg, .tif, .eps, .pdf, .png, etc.

    Using Bridge alone to manually change things wouldn't work, since there would be hundreds of images for each catalog. It can be part of a solution though with a script. More on that in a bit.

    I'm going to present this to the client and let them choose how they want to do it.

    The nested style solution is the same idea as the GREP style that Lucas brought up. I set up a character style called hidden that set the type size to 1pt, the horz scaling to 1% and the type fill to none. Then I set a Paragraph style for the caption with a nested style setting. It used the base style until the first period, then switched the next 4 characters to the hidden style. So any captions placed with this paragraph style will include the extension, but it will be invisible. This works fine for Static captions, but doesn't work for Live captioning.

    The second solution came from the forums at ps-scripts.com. Credit goes to Mike Hale, he wrote a javascript which copies the file name minus the extension into the headline field in the exif data in Adobe Bridge.
    <http://www.ps-scripts.com/bb/viewtopic.php?f=18&t=2406&sid=abb69282c947bc40ec10 81d5c7b9a6fc>

    Then you just need to use the Headline field in the caption settings instead of the name field. I have a feeling that this is the solution we'll go with. This one works as a live caption, which allows images to be moved a little more easily, since their captions will now follow them around.

    Shawn


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Sponsors

Esko Sponsored Content