Image classes and zombie file name changes

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
thirob
Jr. Propeller Head
Posts: 5
Joined: Thu Jul 02, 2015 11:53 am

Image classes and zombie file name changes

Post by thirob »

First post! (Be gentle. :)

When I apply the following style class to an image:

Code: Select all

img.img500
{
	height: auto;	
	max-width: 500px;
	width: 100%;
}
Flare appends the image file name IN OUTPUT with the style's width and height values. Why does it do this and how can I stop it from happening? None of my styled images are displaying in online output.

Example from my project:

In Flare:

Code: Select all

<p><img src="../Resources/Images/CMSplash.png" class="img500" /></p>
Project built and HTM source viewed In Chrome/IE/Firefox:

Code: Select all

<p><img src="../Resources/Images/CMSplash_500x376.png" class="img500" style="width: 500;height: 376;" /></p>
Of course this file does not display because CMSplash_500x376.png does not exist in my project! Flare renamed it.

I can't be the first person to encounter this issue. Any workaround out there?
GregStenhouse
Sr. Propeller Head
Posts: 330
Joined: Tue May 13, 2008 3:27 pm
Location: Christchurch, New Zealand

Re: Image classes and zombie file name changes

Post by GregStenhouse »

Hi,

In your target, try clearing the 'Generate resized copies of scaled images' check box. Here's some info from the help:

===
Note: When you use Flare's resizing features to scale images, you can specify whether you want Flare to pre-compile the resized images. You can do this for the online outputs (DotNet Help, Eclipse Help, Microsoft HTML Help, HTML5, WebHelp, WebHelp AIR, WebHelp Mobile, WebHelp Plus), as well as for Microsoft Word and Adobe FrameMaker output. What does this mean? It means that Flare will create new copies of images wherever you have specified resizing, rather than relying on the browser to render the new size from the original. This means better quality images, but it also means more image files in the output. It is recommended that you leave the default pre-compile setting as it is (enabled). However, if you want to disable it, you can open the Target Editor, select the Advanced tab, and select Generate resized copies of scaled images to remove the check mark. (For Adobe PDF, Microsoft XPS, and XHTML output, the resized images will always be pre-compiled, whether this option is enabled or not.)
thirob
Jr. Propeller Head
Posts: 5
Joined: Thu Jul 02, 2015 11:53 am

Re: Image classes and zombie file name changes

Post by thirob »

Thanks Greg for taking the time to reply to my post.

I did do that and it did not resolve the issue. I did conduct more testing and realized I was adding the source content image names to my TFS manifest file, and NOT the output file names. I'm going to try fixing the manifest and then see if it resolves my issue.

Cheers
brunchbox
Jr. Propeller Head
Posts: 1
Joined: Tue Jun 26, 2018 1:43 pm

Re: Image classes and zombie file name changes

Post by brunchbox »

I was having the same issue with the file names for certain images adding the file size to the image output filename, only when the project was published. I was able to resolve by unchecking the 'Generate resized copies of scaled images' check box, but I'm not sure why the problem surfaced in the first place as nothing had changed in my Flare project other than this issue randomly starting today. Thanks for the info.
Post Reply