View Single Post
Old 09-13-2013, 04:21 AM   #32
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,734
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by PatNY View Post
Hi Charles,

I was testing only images in the comments section. And I was using only images that are available on the web.

When you click the button in calibre's comments editor window to add an image URL, isn't an image supposed to show up automatically both in Calibre's interface and in CC's book details page after the book is transferred over?
Not necessarily. It depends on what you insert.
Quote:
When I insert a URL this way, only the bare link itself is displayed. I can click on that link in the book details page of CC, and then the browser will open on my Nook showing the image on the web. But I believe the image itself is supposed to show.

Images will show up automatically in CC's book details page (as well as Calibre's interface) but only if the image URL is tagged like this:

<img src="http://www.ishs.org/sites/default/files/news-images/tomato.jpg">

Isn't that what Calibre should be doing automatically when you insert an image link? Automatically wrapping the image tag around the URL?
Things are complicated.

First, when you insert a link with the comments editor, and if what you are inserting is on the internet (not a file on your local machine), then calibre always inserts it as a link ("<a href..."), never an image ("<img href..."). One could perhaps argue that the user should have an option of choosing what sort of link should be inserted, but today you do not have that choice. The only way to get an image link is to insert an img directive either by copying some html that includes a reference to the image or by making one manually using the HTML Source tab.

Second, when you use "Insert link or image" to insert a link to a file, calibre will display the image. It can do this because it can "see" the file and can know what it is. CC cannot see the file on calibre's computer, so it cannot show the image. Related to this: if the comments are included on inserted book jacket, calibre copies the image into the book file (if it can) so that the image is available on the jacket when displayed by a reader.
chaley is offline   Reply With Quote