Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2015-07-28 03:35:51

bcobb10b
Member
From: Sandy Springs GA
Registered: 2014-03-28
Posts: 77

Image files with "(" or ")" in file name

I've encountered an interesting situation with image files containing ")" or "(" in their file name.  These characters are valid file naming characters based on all sources I can find, and while I don't produce images containing them, I do receive some from other sources who may have created a duplicate image on their system (e.g., filename(2).jpg) or used the old Microsoft image resizing tool to resize images submitted for publication (e.g., filename(medium).jpg).

I can make the situation go away with some pain by manually removing the ")" or "(" from the file name of the 350 or so submitted images in my lightroom catalog.  I am documenting it here in case another user encounters the situation or you guys have time to take a look at it.

Here are the facts:

  • I am running CE4 Publisher 2.3.0b and Gallery 6.1.6.  And Lightroom 6.

  • Thumbnails without ")" or "(" in film name are rendered properly on gallery index pages and the large image format overlay produced by magnific on both desktop and mobile clients.

  • Thumbnails with ")" or "(" in file name are rendered properly on gallery desktop index pages, but the link to the large image format does not produce a large image overlay.  Nothing happens when the thumbnail image on the index page is selected.

  • Thumbnails with ")" or "(" in file name are not included in gallery mobile index pages regardless of the large image rendering tool selected in the gallery template.  Thumbnails without ")" or "(" in file name are rendered properly in the mobile index pages.

  • On a mobile client:

    • I can click on a thumbnail and the related large image overlay will be rendered properly.

    • If the Gallery template is set up to render large image overlays using magnific, I can advance from large image to large image (flip through using the ">" link) for images which have a thumbnail image displayed on the index page.  When I get to the last large image which has a thumbnail displayed on the index page, I can advance no further.

    • If the Gallery template is set up to render large image overlays using touch, I can advance through ALL large images.  In other words, unlike with magnific, when I get to the last large image overlay which has a thumbnail displayed on the index page, I can keep advancing to the end of the images.

I have not tried to recreate this situation with other odd-ball file name characters.

Bill Cobb
Sandy Springs GA

Last edited by bcobb10b (2015-07-28 03:40:32)

Offline

#2 2015-07-28 04:27:54

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Image files with "(" or ")" in file name

they may be valid for computer file names but they cause problems on the web. Characters like ; ' " ( ) { } and more mean something to languages like javascript and php and can cause problems ranging from whatever you've seen to completely breaking a page. So don't use them in file names.

For file and folder naming on the web use only letters, numbers, dashes, or underscores. No spaces or special characters.

http://ce4.theturninggate.net/docs/doku … ile_naming


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

Board footer

Powered by FluxBB