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 !
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
Is there a way to reset the sizes of all the images at once?
Is there a way to reset the sizes of all the images at once?
Last edited by kryota on Wed Aug 13, 2014 6:03 am, edited 2 times in total.
Re: Is there a way to reset the sizes of all the images at once?
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.
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.
Re: Is there a way to reset the sizes of all the images at once?
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
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
Re: Is there a way to reset the sizes of all the images at once?
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.
Re: Is there a way to reset the sizes of all the images at once?
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
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
Re: Is there a way to reset the sizes of all the images at once?
That's correct, it simply removes the height/width from the img tag.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?
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.
Re: Is there a way to reset the sizes of all the images at once?
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 ! 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 !
KR
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 ! 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 !
KR