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

Preventing image from outputting in ePub

Contributor ,
Dec 19, 2019 Dec 19, 2019

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
585
Translate
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

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.

Translate
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

Ok will do - thank you for the advice.

Translate
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
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?

Translate
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