Image PNG and BMP selection

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

Moderators: Alexander Halser, Tim Green

Image PNG and BMP selection

Unread postby alanmcd » Thu Nov 22, 2018 2:02 am

I sometimes have an image called filename.png and filename.bmp (both file extensions on the same filename) in my images directory.
When I place the .bmp file into the topic and then compile, I get the png file compiled in. Even though I clearly place the .bmp file and I see .bmp in the xmlsource.
How do I get the bmp file (or the one I really want into the project and not the other one?
Alan
alanmcd
 
Posts: 73
Joined: Thu Jan 06, 2005 3:02 pm

Re: Image PNG and BMP selection

Unread postby Martin Wynne » Thu Nov 22, 2018 2:12 am

Hi Alan,

Which output format? BMP files are not normally be used in HTML formats (Webhelp, CHM, EWriter). It's possible that H&M is loading the BMP file and converting it to PNG for the HTML output. That conversion may fail if a PNG with the same name already exists, and that PNG then gets used instead.

cheers,

Martin.
User avatar
Martin Wynne
 
Posts: 2384
Joined: Mon May 12, 2003 3:21 pm
Location: West of the Severn, UK

Re: Image PNG and BMP selection

Unread postby alanmcd » Thu Nov 22, 2018 2:39 pm

I'm outputting CHM, I'm renaming all the duplicates. I created the bmp with screen capture some time ago. With these edits I am using Snipping tool and pasting into H&M which saves as PNG.
Alan
alanmcd
 
Posts: 73
Joined: Thu Jan 06, 2005 3:02 pm

Re: Image PNG and BMP selection

Unread postby Tim Green » Thu Nov 22, 2018 7:25 pm

How do I get the bmp file (or the one I really want into the project and not the other one?

You will never get a BMP file in HTML-based output. BMP files are incompatible with HMTL; they can't be used there, so they must be converted to an HTML-friendly image format (PNG, JPG or GIF). If you have introduction.bmp and introduction.png and your image conversion settings for bitmaps are set to PNG, then they will both be called introduction.png in the output and whichever one is written last will overwrite the other one.

You need to have unique names, irrespective of the file format. Alternatively, you could change your bitmap conversion settings to JPG+GIF in Configuration > Publishing Options > HTML Help/WebHelp > HTML Export Options. But then you would have to be equally careful not to have any BMP files with the same names as JPG or GIF files, if you are inserting those directly. :)
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: 20355
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 6 guests