? graphics named "hmfile_hash_[number]" versus orig. name

Please post all questions and comments regarding Help & Manual 7 here.

Moderators: Alexander Halser, Tim Green

? graphics named "hmfile_hash_[number]" versus orig. name

Unread postby Dave Gehman » Tue Jan 29, 2019 4:50 pm

Our images are all PNG type.

In WebHelp, some of our graphics still carry their original file name, for example, "newui-a-createnewdesign.png" in the page source. And that's the name someone would have available if someone right-clicked and opted to save the image.

However, a number of graphic file names have become "hmfile_hash_[number}" where [number} is an 8-digit hex number ("32411b9c," for example).

Most of these "hash" names have been substituted for a longish name given to them by our graphics expert. He has a penchant for including as much as possible in the file name, and that's not a bad thing.

For example, "01_01_04 Example Parent Child Hierarchy.png" has become "hmfile_hash_02177161."

Is this due to the length of the original file name?
Dave Gehman
 
Posts: 370
Joined: Sat Sep 23, 2017 9:05 pm

Re: ? graphics named "hmfile_hash_[number]" versus orig. nam

Unread postby Tim Green » Tue Jan 29, 2019 5:47 pm

Is this due to the length of the original file name?

No, it's due to using characters in the file name that are not allowed in HTML. This will generally be spaces, but can also include accented characters, umlauts (üöä) and other special or unusual characters. If the original file name wasn't changed your images wouldn't display in your web pages because the browser wouldn't be able to find them. Help+Manual changes them to the hash + number format to make absolutely certain that their are no duplicate name collisions, which could easily happen when correcting some different names in a standardized way.

To avoid this just follow the following rules for file naming:

  • Only a..z, A..Z, 0..9, - and _ in file names. No other characters.
  • No spaces, accents, umlauts, non-alphanumeric characters.
  • Don't start filenames with a number.
These rules are stricter than absolutely necessary but reliable and easy to remember. 8)
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
User avatar
Tim Green
Site Admin
 
Posts: 20536
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany

Re: ? graphics named "hmfile_hash_[number]" versus orig. nam

Unread postby Dave Gehman » Tue Jan 29, 2019 5:58 pm

Life is fun. The guy who is most upset at the name change is the guy who insists on starting the file name with a number.... :D
Dave Gehman
 
Posts: 370
Joined: Sat Sep 23, 2017 9:05 pm

Re: ? graphics named "hmfile_hash_[number]" versus orig. nam

Unread postby Tim Green » Tue Jan 29, 2019 6:02 pm

Dave Gehman wrote:Life is fun. The guy who is most upset at the name change is the guy who insists on starting the file name with a number.... :D

You may be able to dispense with that part. Try it without changing the numbers (i.e. just eliminate spaces and special characters) and see how you go before going global on it. 8)
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
User avatar
Tim Green
Site Admin
 
Posts: 20536
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany


Return to Help & Manual 7 Forum

Who is online

Users browsing this forum: No registered users and 9 guests