Is there a way to reset the sizes of all the images at once?

This forum is for all Flare issues related to the Microsoft HTML Help target.
This target produces "CHM" files in the output.
Post Reply
kryota
Jr. Propeller Head
Posts: 4
Joined: Tue Aug 12, 2014 4:21 am

Is there a way to reset the sizes of all the images at once?

Post by kryota »

Hello, I'm KR from Japan and I'm new to this forums hoping I can get some help here.
Please let me explain my situation:

- I have a Flare project containing 800 html files that will create a Microsoft CHM file
- Most of the images have been replaced(remade) with the same names
- The sizes of most of the replaced images have been changed
- So the values of width and height in each img tag need to be reset to the actual size in those 800 html files :roll: !

So my question is:
Is there any way to reset the sizes of all the images in the html files all at once in MadCap Flare?

Restrictions I have:
I'm not allowed to alter the structure of my Flare project so
- I cannot introduce style sheets that could control image sizes easily.
- I only can change the values specifed in an img tag such as <img src="dummy.gif" width:[reset value here]px;height:[reset value here]px...>.

I would appreciate your help.
Thanks
KR
Last edited by kryota on Wed Aug 13, 2014 6:03 am, edited 2 times in total.
NorthEast
Master Propellus Maximus
Posts: 6363
Joined: Mon Mar 05, 2007 8:33 am

Re: Is there a way to reset the sizes of all the images at once?

Post by NorthEast »

By default, Flare won't include sizes in the image tag (in the source), they're only included if you resize an image.

If you didn't need the sizes in the image tag, then removing them would mean the images would be displayed at the correct size.
You should be able to do that using a find/replace.

However, I guess it depends whether you actually need the sizes in the image tag.
kryota
Jr. Propeller Head
Posts: 4
Joined: Tue Aug 12, 2014 4:21 am

Re: Is there a way to reset the sizes of all the images at once?

Post by kryota »

Hello, Dave

Thank you for your reply.

Additional info. for my situation:
I actually work for a transation company and I'm involved in a project translating a Flare project file
that was originally created with RoboHelp by our client, which is why they have sizes in the img tags,
I guess.

A basic translation rule is that it is preferable to keep translated files in the same condition as the
source (=original) files so if possible at all, I'd like to avoid removing width and height information
which the source files have.

But I'll discuss with other project members and re-conisder your suggesion.

Thank you again for your input.
KR
NorthEast
Master Propellus Maximus
Posts: 6363
Joined: Mon Mar 05, 2007 8:33 am

Re: Is there a way to reset the sizes of all the images at once?

Post by NorthEast »

Ok, I don't think Flare can update the width/height to the actual size; e.g. the Reset Size option will just remove the width/height from the img tag.
kryota
Jr. Propeller Head
Posts: 4
Joined: Tue Aug 12, 2014 4:21 am

Re: Is there a way to reset the sizes of all the images at once?

Post by kryota »

Hello, Dave

Thanks for your reply again :)

We only have one license and I don't have MadCap Flare installed on my PC so I'm sorry
to ask you this but the Reset Size option that you mentioned only resets the size (or
removes the width/height values) of the selected image in Flare, right?

KR
NorthEast
Master Propellus Maximus
Posts: 6363
Joined: Mon Mar 05, 2007 8:33 am

Re: Is there a way to reset the sizes of all the images at once?

Post by NorthEast »

kryota wrote:the Reset Size option that you mentioned only resets the size (or
removes the width/height values) of the selected image in Flare, right?
That's correct, it simply removes the height/width from the img tag.

It's a manual process; e.g. you right-click on an image, then select 'Reset Size'.
If you wanted to do this for a whole project, it probably makes more sense to use find/replace in the HTML source code.
kryota
Jr. Propeller Head
Posts: 4
Joined: Tue Aug 12, 2014 4:21 am

Re: Is there a way to reset the sizes of all the images at once?

Post by kryota »

Hello, Dave

Thank you for answering my question one post ago.
This time some of our project members did their hard work to set the values to the actual sizes (not all manually, thought)
and it took them a whole day :shock: ! so I have created a Windows app automatically to do just that so we'll be fine next time.

Thank you again for all your replies :wink: !

KR
Post Reply