• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Preventing image from outputting in ePub

Contributor ,
Dec 19, 2019 Dec 19, 2019

Copy link to clipboard

Copied

I have a small graphic which is to be used as a section break ornament in an ePub file. It's assigned a paragraph style called "Section break ornament" and in the Export Tagging section of this style's dialogue box, it's set to output an hr tag. The following code is what it outputs into the html file:

 

<hr class="ornament"><img class="_idGenObjectAttribute-3" src="image/4.png" alt="" /></hr>

 

The graphic in the ID file is really just a placeholder so I don't need it to be exported when the ePub is created (as it is doing in the code above). Instead of using an html img tag in the ePub I plan to set a background image using css. Because of this I need to output the hr tag but not the img tag within the hr tag. Instead of:

 

 <hr class="ornament"><img class="_idGenObjectAttribute-3" src="image/4.png" alt="" /></hr>

 

I need the ePub to output this:

 

<hr class="ornament"></hr>

 

So just an empty hr tag.

 

I've checked the object export options dialogue to see if I could switch off the ouput of the image but I don't see an option.

 

I wondered if someone could tell me if there is a way to suppress the output of the image when exporting to ePub?

 

Thanks in advance.

 

TOPICS
EPUB

Views

418

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Dec 19, 2019 Dec 19, 2019

Copy link to clipboard

Copied

I am unaware of such an option in InDesign.

 

I would simply do a quick search and replace in the epub code using any code editor to fix this.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 19, 2019 Dec 19, 2019

Copy link to clipboard

Copied

Ok will do - thank you for the advice.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Dec 21, 2019 Dec 21, 2019

Copy link to clipboard

Copied

LATEST

Since the image is just a placeholder, is there a need to include it in the InDesign file? Could you use settings in the paragraph style to represent the section break?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines