View Single Post
Old 06-19-2021, 02:14 PM   #6045
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,045
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Subtext View Post
Traceback (most recent call last):
File "calibre_plugins.fanficfare_plugin.fff_plugin" , line 1779, in update_books_loop
File "calibre_plugins.fanficfare_plugin.fff_plugin" , line 2318, in update_metadata
IndexError: string index out of range

Any idea what I can do to fix this?
Looking at the code, I suspect you have a custom_columns_settings line that has a comma(,) to indicate a flag but don't actually have a flag value (r, n or a).

Quote:
Originally Posted by Atherton25 View Post
...
So the question: Is there some sort of mechanism in FFF to auto-convert images to jpg (and possibly reduce large images)? If not, is there a way to do it without converting to mobi and then BACK to epub (which destroys the usability of it with FFF)?
Yes, as ownedbycats mentioned:

Quote:
Originally Posted by ownedbycats View Post
There is, but if I understand the comments right it doesn't work in plugin.

Code:
## jpg or png
## -- jpg produces smaller images, and may be supported by more
## readers, but it's older and doesn't allow transparency.
## Transparency removed as if remove_transparency: true
## -- png is newer but does allow transparency, but only in CLI.
## It doesn't work in calibre PI due to limitations of the API.
convert_images_to: jpg
That comment about PI limitations refers to not being able to convert to png. jpg should work.

There's also a image_max_size setting (default: 580, 725) and even grayscale_images for eInk readers.

Search in defaults.ini (there's a button on the personal.ini config tab) for images to see the possible settings and their default values.
JimmXinu is offline   Reply With Quote