Skip to content

Releases: sergiye/fb2kindle

2.1.9767

Choose a tag to compare

@sergiye sergiye released this 28 Sep 15:46

What's new

Security and safety

  • Fixed an unsafe file write: a crafted .fb2 could make the converter write files outside its temporary folder.
  • Unsafe content is removed from books: scripts, embedded objects, forms, event handlers and javascript:/vbscript:/data: links taken from the source are no longer copied into the book.
  • Zip archives are limited to 512 MB per book and 2 GB per archive, so a crafted archive cannot fill the disk.
  • -d is safer: it deletes only books that were actually converted. Unsupported files, unreadable books and archives with any unreadable book are kept.
  • -optimizeSource rewrites files safely: the original is replaced only after the new copy is completely written, and its encoding and line endings are preserved.

EPUB and Send to Kindle

  • EPUB output was rebuilt to follow the EPUB 2 structure, so strict readers and Amazon's Send to Kindle should accept it. This covers the OPF 2.0 package, valid XHTML, a complete manifest, a correct NCX table of contents and a proper archive.
  • -mailto always creates EPUB, because Send to Kindle no longer accepts MOBI.
  • Stable book identifier: a re-converted book gets the same identifier, based on the FB2 document id, title and authors. Readers can recognize it instead of adding a duplicate.
  • Book metadata now includes the book's own date and a clean annotation. The table of contents shows the book title.

Better books

  • Images keep their original quality: JPEG, PNG and GIF are no longer recompressed. JPEGs labelled image/jpg or without a type are no longer turned into much larger PNGs.
  • Formatting is preserved:
    • words split by formatting no longer get extra spaces;
    • non-breaking spaces are kept;
    • strikethrough, inline styles and poem dates are converted properly;
    • ordinary internal links keep their formatting, and only footnotes become superscript.
  • Cleaner title page and TOC: books without a series, publisher, city or year no longer show empty lines or stray spaces, and untitled note sections no longer create empty TOC entries.
  • Titles in joined books: a .zip with a single book, or a folder where only one book could be read, keeps the book's own title instead of the series name.
  • Joined books: in joined books, each following book starts with its own cover.
  • Drop caps (-dc) are applied consistently to the first paragraph of each chapter. Custom stylesheets and embedded fonts, including .woff2, are detected more reliably.
  • Books with deeply nested chapters convert much faster.

More robust conversion

  • Problem input is skipped instead of stopping the run: a broken .fb2, a book without text, a corrupt .zip, or a missing or damaged cover or image. Joined series are built from the remaining books.
  • Folder handling: with -r, folders without access, junctions and symbolic links are skipped.
  • Long titles: long book titles no longer break the conversion.
  • Clearer errors: you now get a clear message when KindleGen fails to produce a .mobi, and when SMTP port 465 is used, which is not supported.
  • Scripts: the app no longer crashes waiting for a key press when run from a script with redirected input.
  • KindleGen is extracted once instead of for every book, and old copies are cleaned up.

Explorer integration

  • The context menu is registered for the current user and no longer needs administrator rights.
  • -register and -unregister now work as the help describes.

Upgrading: menus from older versions were stored system-wide. To avoid duplicate items, run Fb2Kindle.exe -unregister once as administrator, then Fb2Kindle.exe -register as a normal user.

Command line and settings

  • Input path:
    • the input path can be placed anywhere among the options;
    • a folder can be given with or without a trailing backslash;
    • a path without a folder is looked up in the current folder (-a still uses the app folder).
  • Saved options can be turned off for one run by adding - at the end, for example -d- or -dc-.
  • -save works without an input file, so you can create Fb2Kindle.json with a single command.
  • Warnings: unknown options and options given without a value produce a warning instead of being silently ignored.
  • An invalid Fb2Kindle.json is reported and ignored, and the app runs with default settings.
  • SMTP setup: default settings no longer contain placeholder SMTP credentials, and a missing SMTP setup is reported clearly.
  • -optimizeSource reports that it does not support books inside .zip archives.
  • The final summary counts only successfully converted books.

Full Changelog: 2.1.9632...2.1.9767

2.1.9632

Choose a tag to compare

@sergiye sergiye released this 16 May 08:12
  • Fixed a bug in OptimizeSource: if the scaled image is larger, it should not be replaced
  • code optimizations & cleanup
  • product company changed to SergiyE (repository moved)

Full Changelog: 2.1.9346...2.1.9632

2.1.9346 (Hotfix)

Choose a tag to compare

@sergiye sergiye released this 03 Aug 08:44
  • AutoScaleImage condition fix
  • Taskbar progress indicator added (win10)
  • optimize images default size increased to 824x1200 (kindle 9 screen resolution)

2.1.9344

Choose a tag to compare

@sergiye sergiye released this 01 Aug 17:14

new command-line arguments added:

  • -optimizeSource: optimize images in source file (decrease to 600x800 by default)
  • -optimize: optimize images in target (decrease to 600x800 by default)

2.1.9338

Choose a tag to compare

@sergiye sergiye released this 26 Jul 11:03
  • register/unregister parameters support added
  • when started without arguments app will propose to register explorer integration to add context menu for fb2 files (and directories)
  • code clean & minor fixes

2.1.9280

Choose a tag to compare

@sergiye sergiye released this 29 May 20:44
  • added support for zip files - archive is processed as a sequence

2.1.9256

Choose a tag to compare

@sergiye sergiye released this 07 May 12:56
  • fix updater
  • minor code optimizations & fixes

2.1.9216

Choose a tag to compare

@sergiye sergiye released this 26 Mar 13:25
  • zip library replaced

Full Changelog: https://github.com/sergiye/fb2kindle/commits/2.1.9216

2.1.8680

Choose a tag to compare

@sergiye sergiye released this 07 Oct 11:49
  • fixed sending by mail with document title instead of file name (amazon title auto-detect issue)
  • stable version

Full Changelog: 2.1.8675...2.1.8680

2.1.8675

Choose a tag to compare

@sergiye sergiye released this 02 Oct 20:13
  • options reorganized
  • auto-update improved
  • compression added for epub files
  • joined sequence navigation menu improved
  • mobi format fixed
  • auto-depth added for navigation points (kindle chapters menu)
  • app info & output messages reorganized
  • send book by email with document title in subject (instead of file name)
  • code clean