epub generation: fail for CSS image path mis-detecting?
See original GitHub issueSummary
Create PDF & EPUB, EPUB is success but PDF is failed. PDF include CSS background image for ./images/*.png contain fail. (Web Hosted also success see source’s GitHub Pages)
- HonKit version: 3.6.6 at 2020/09/23
Step to reproduce
- checkout source
- build to PDF
Link to code example:
- source : https://github.com/tsuyoshicho/WhenScarletIceMelted
- result : https://github.com/tsuyoshicho/WhenScarletIceMelted/runs/1152526006?check_suite_focus=true#step:7:43
Expected results
Create PDF with image success.
Actual results
see result link
log attaching
- stdout log : pdf.log
- stderr log : pdf_stderr.log
- Generate CSS: pdf-1600823806151.css.txt
$ tree /f C:\Users\<userid>\AppData\Local\Temp\tmp-1952MQvyf79s5qc7
Folder PATH listing for volume Windows
Volume serial number is 000001DA 0882:F2A0
C:\USERS\<userid>\APPDATA\LOCAL\TEMP\TMP-1952MQVYF79S5QC7
│ .editorconfig
│ .gitattributes
│ .gitignore
│ .textlintrc
│ 6c50c8.png
│ ebook-1600823806054.css
│ GLOSSARY.html
│ index.html
│ LICENSE.html
│ oldplugin.txt
│ package-lock.json
│ package.json
│ pdf-1600823806151.css
│ SUMMARY.html
│ website-1600823805986.css
│
├───.github
│ │ renovate.json
│ │
│ └───workflows
│ deploy.yml
│ release.yml
│ reviewdog.yml
│
├───assets
│ └───images
│ └───uml
│ .gitkeep
│
├───doc
│ .textlintrc
│ chapter1-1.adoc
│ chapter1-1.html
│
├───gitbook
│ │ ebook.css
│ │ epub.css
│ │ mobi.css
│ │ pdf.css
│ │
│ └───gitbook-plugin-highlight
│ ebook.css
│ website.css
│
├───images
│ gm.png
│ oreshalarry2.png
│ reaper.png
│ reapermini.png
│ tako.png
│ takomini.png
│
└───styles
ebook.scss
pdf.scss
website.scss
_common.scss
_commonh.scss
_commonv.scss
_replay.scss
_replayh.scss
_replayv.scss
_speechballoonsh.scss
_speechballoonsv.scss
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (7 by maintainers)
Top Results From Across the Web
CSS background image URL failing to load - Stack Overflow
I'm trying to use background image in CSS but even though I gave the full path of the image, it doesn't work. Firebug...
Read more >How to fix CSS background-image not working | HTML/CSS
Working with background images in CSS can be tricky. ... The path needs to be relative to where your HTML file is. If...
Read more >CSS background image doesn't work with relative paths since ...
I confirm the problem. At least if the image is located in the same directory as the css file the url without any...
Read more >X-Ways Forensics & WinHex Manual
A only if contained in path X plus files of type B if not deleted plus files ... WinHex may be unable to...
Read more >Changelog - Sphinx documentation
#10444: html theme: Allow specifying multiple CSS files through the ... #8959: using UNIX path separator in image directive confuses Sphinx on Windows ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
research ebook-convert and epub rule
version
in Windows 10 Pro 20H1
epub
Open Publication Structure (OPS) 2.0.1 v1.0
ebook-convert
E-book conversion — calibre 5.1.0 documentation
table
row
structure
rel info ebook-convert(1) — calibre — Debian unstable — Debian Manpages
trial convert
This process success image and result epub contain flat html/css and move image to root.
patch in book/book_mod
result
css
background-image: url(gm.png);
html
<img src="tako.png" alt="知性化タコ 「メルクリウスの盗掘屋」" class="calibre8"/>
conclusion
Perhaps honkit (old gitbook) is overworking assets for epub
Constraint
attach
I’ve tested your https://github.com/tsuyoshicho/WhenScarletIceMelted. epub is flat dir.
It is an issue or limitation of epub, it is not pdf issue. (I’m not faimilar with epub spec)
Maybe, we need to create another issue about epub’s image path.