01-26-2021, 04:55 PM | #1 |
Member
Posts: 20
Karma: 10
Join Date: Jan 2009
Device: pocketbook PB741
|
external links to images ; two questions
1. Is it possible to view external links to images in the GUI calibre database interface if the field is HTML based ? Now I only can view these links if a make a catalog and download the external links/images with the epub tools (example : <div><p align="center">Issue 3</p></div><p align="center"> <img src="https://stripwinkeldickbos.nl/pub/media/catalog/product/cache/f073062f50e48eb0f0998593e568d857/z/w/zwendel_3_1.jpg" title ="03 - Lady Z" width="145" height="190"> <hr></div>
2. A second option would be to download the external image to a local path and convert the link from external to internal. I have > 5000 links to covers and sometimes external links are broken or removed creating empty spaces in my view Thank you to advice how this could be done but I couldn't find directly any solution describing my needs |
01-26-2021, 09:27 PM | #2 |
creator of calibre
Posts: 44,161
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No it isn't. that would mean unacceptable and highly variable latencies simply showing things in th einterface.
|
Advert | |
|
01-27-2021, 01:02 AM | #3 |
Member
Posts: 20
Karma: 10
Join Date: Jan 2009
Device: pocketbook PB741
|
thank you Kovid - and option 2 ? This should reduce the risk if all is local and the option exists with the insert link or image, but can this change (external->internal) be automated , like in the epub edit book tools (download external link) ?
|
01-27-2021, 01:09 AM | #4 |
creator of calibre
Posts: 44,161
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There is an insert link or image button for comment type columns in the metadata editor. See what it does and if you want to automate it, use calibredb to write a script to update the comments accordingly.
|
02-26-2021, 07:54 AM | #5 |
Member
Posts: 20
Karma: 10
Join Date: Jan 2009
Device: pocketbook PB741
|
In html field in calibre user interface the following link shows perfect
<img src="file:///X:/Calibre%20Portable/Calibre%20Settings/covers/cover.jpg" In edit books tools (calibre, version 5.12.0) when using download external links in catalog epub that has been generated by calibre following error is given : WARNING: Some downloads failed: Failed to download some external resources, click "Show Details" for more information. file:///X:/Calibre Portable/Calibre Settings/covers/cover.jpg [Errno 22] Invalid argument: '/X:/Calibre Portable/Calibre Settings/covers/cover.jpg' Can you tell me what I can do to embed the cover.jpg into the epub ? Do I have to do something about the syntax or should I move my cover.jpg file to another location ? thanks |
Advert | |
|
02-26-2021, 10:18 AM | #6 |
creator of calibre
Posts: 44,161
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That's just the download external links tool not working with file:// urls on windows, edit the url to remove one slash before X: and it should be fine.
|
02-26-2021, 10:54 AM | #7 |
Member
Posts: 20
Karma: 10
Join Date: Jan 2009
Device: pocketbook PB741
|
Thanks - Did so (removed one slash) and a) lost the image view in the interface and b) now get another error.
calibre, version 5.12.0 ERROR: Download failed: Failed to download external resources, click "Show Details" for more information. file://X:/Calibre%20Portable/Calibre%20Settings/covers/cover.jpg [Errno 2] No such file or directory: '/Calibre%20Portable/Calibre%20Settings/covers/cover.jpg' any other advice or possibility ? |
02-26-2021, 12:13 PM | #8 |
creator of calibre
Posts: 44,161
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you are in the editor anyway simply import the image into the book using the editors native import functionality.
|
Tags |
download, external links, html-viewer, images |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Convert external links to internal links | sup | Recipes | 2 | 11-28-2013 09:39 AM |
Links to external PDFs | Kmcd | ePub | 4 | 09-25-2013 05:56 PM |
External links in EPUB files? | toolong | ePub | 3 | 06-21-2011 09:37 PM |
external links on Kindle | superChuck | Kindle Developer's Corner | 5 | 11-23-2010 03:50 PM |
HTML with external links | posativ | LRF | 2 | 02-07-2010 07:27 AM |