Graphic files are displayed incorrectly

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

Moderators: Alexander Halser, Tim Green

Graphic files are displayed incorrectly

Unread postby Iwona Politea » Fri Jul 27, 2018 8:14 am

In my project consisting of main and subordinate files (master and merged files), compiled to chm incorrectly inserted graphic files are displayed (randomly inserted / displayed in chm). On the other hand, if I run the sub project itself, it displays correct. What could be the reason for this?
Regards,
Politea
--
Regards,
Politea
Iwona Politea
 
Posts: 3
Joined: Wed Jan 31, 2018 12:10 pm

Re: Graphic files are displayed incorrectly

Unread postby Tim Green » Fri Jul 27, 2018 9:45 am

Hi Iwona,

This is caused by the way that H&M locates images: In your project only the image name is stored, without any path information. H&M finds the images by searching all the paths listed in your Project Search Path (in Project Explorer > Configuration > Common Properties) and using the FIRST image that it finds with a matching name. If you have multiple images with identical names in more than one folder H&M will only ever see the first image. This also applies to modular projects merged at publish time.

Images with identical names and different extensions are also affected (e.g. demo.bmp and demo.png), and this is probably what is happening here. Images frequently need to be converted when you generate your output and this changes the extensions. If the image names are the same you will have a conflict across different output formats and may get different images in the same location in different formats because of it. Rather than trying to keep track of which image formats might be affected, it is much better to assume that all names that are the same before the extension can cause conflicts and to avoid them.

This has both an upside and a downside: The upside is that it makes your projects completely portable and enables you change the source and locations of your images very easily -- you just need to change the image locations in the Project Search Path. The downside is that you have to be careful to avoid images with identical names in the same project, including modular projects.

The only way to solve this problem is to make sure that you do not use duplicate image names, even if the files have different extensions. This is covered along with good strategies for avoiding the problem in this topic in the Help & Manual help:

https://helpandmanual.com/help/index.ht ... naging.htm
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: 20214
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany

Re: Graphic files are displayed incorrectly

Unread postby Iwona Politea » Mon Jul 30, 2018 12:49 pm

Thanks for your answer :D
--
Regards,
Politea
Iwona Politea
 
Posts: 3
Joined: Wed Jan 31, 2018 12:10 pm


Return to Help & Manual 7 Forum

Who is online

Users browsing this forum: Bing [Bot] and 8 guests

cron