View Single Post
Old 03-08-2023, 11:30 AM   #8180
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,025
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by watani View Post
- I wanted to put the images at a path which has special characters (& and ') and spaces in it (on Windows 10), but no matter how I escape the characters in the additional_images I always get a 404 error where it can't find them. I eventually gave up and used a location which had no spaces and special characters, but I want to know if it's possible.
additional_images takes URLs, not file paths. Use URL escaping, ie, %26 for &, %20 for space, etc.
See https://www.w3schools.com/tags/ref_urlencode.ASP

I find an easy way to get the URL is to drag the image onto my browser, then copy the location it shows.

Quote:
Originally Posted by watani View Post
- Once custom images are added into the fic, I don't know how to preserve their insertion into the text. Every time I update the story through FFF, the inserted images have their source and longdesc replaced by "failedtoload" when the text of the chapters are unmodified.
additional_images is intended for use with CSS, not directly including them in the text. There's no way in FFF currently to differentiate between images put in the story text by the author and ones you added manually.

Plus, there's an easier way to do it:

Put the <img> tags in the chapter text with src attr pointing to the URL of the image on disk (or where ever) and then run an FFF Update Always (if there aren't new chapters) and FFF will process it as if the author had put it in.

Your custom image will be 'downloaded', mapped to an ffdl-# name and included in the epub.
JimmXinu is offline   Reply With Quote