Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Viewer

Notices

Reply
 
Thread Tools Search this Thread
Old 01-26-2021, 04:55 PM   #1
whitespirit
Member
whitespirit began at the beginning.
 
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
whitespirit is offline   Reply With Quote
Old 01-26-2021, 09:27 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,965
Karma: 22669822
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.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-27-2021, 01:02 AM   #3
whitespirit
Member
whitespirit began at the beginning.
 
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) ?
whitespirit is offline   Reply With Quote
Old 01-27-2021, 01:09 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,965
Karma: 22669822
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.
kovidgoyal is offline   Reply With Quote
Old 02-26-2021, 07:54 AM   #5
whitespirit
Member
whitespirit began at the beginning.
 
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
whitespirit is offline   Reply With Quote
Advert
Old 02-26-2021, 10:18 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,965
Karma: 22669822
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.
kovidgoyal is offline   Reply With Quote
Old 02-26-2021, 10:54 AM   #7
whitespirit
Member
whitespirit began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Jan 2009
Device: pocketbook PB741
Question

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 ?
whitespirit is offline   Reply With Quote
Old 02-26-2021, 12:13 PM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,965
Karma: 22669822
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.
kovidgoyal is offline   Reply With Quote
Reply

Tags
download, external links, html-viewer, images


Forum Jump

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


All times are GMT -4. The time now is 06:17 PM.


MobileRead.com is a privately owned, operated and funded community.