![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Mar 2023
Device: none
|
ebook-convert: You must specify the input AND output files ...
I am trying to use ebook-convert to convert compatible files to pdf and I need to log any warnings or messages that ebook-convert would generate while it does its work with each file.
I use essentially the same one liner to convert all webp files to png and I am doing a dry run first to make sure find is feeding the file paths properly. I would like to debug what ebook-convert is or isn't doing and compare it to the output of dwebp to understand why one works just fine but the other doesn't. # search directory and extensions of files to be fished by find _SDIR="<...>" _X=".\(mobi$\|djvu$\|epub$\|azw3$\)" ### # dry run shopt -s nocasematch; shopt -s nocaseglob; time find "${_SDIR}" -type f -iregex .*"${_X}" # conversion attempts shopt -s nocasematch; shopt -s nocaseglob; time find "${_SDIR}" -type f -iregex .*"${_X}" -exec bash -c '_F="$1"; _PRFX="${_F%.*}"; ebook-convert "${_F}" -o "${_PRFX}".pdf' - {} \; |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,187
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
ebook-convert --help
|
![]() |
![]() |
Advert | |
|
![]() |
Tags |
ebook-convert find |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
When Calibre convert, the input language is zh-tw, but the output language become zh | wealthtsay | Conversion | 14 | 06-06-2019 03:55 PM |
Multiple input files for ebook-convert or other Calibre CLI tools? | tomcam | Calibre | 1 | 04-08-2017 04:49 PM |
How does ebook-convert react to plain text input | porphyry5 | Conversion | 7 | 11-06-2015 07:27 PM |
ebook-convert mobi output is different than in windows | timoy_kindle | Recipes | 1 | 08-27-2013 01:50 AM |
ebook-convert error on PDF output without X | hiperlink | Conversion | 3 | 04-04-2011 07:23 AM |