How to convert calibre (cbr) to pdf format in Linux?
I have a comic strip book in cbr (Calibre?) format. How can I convert it to pdf in my Ubuntu 12.04? I tried to install calibre hoping that it is able to do so. But it seems to be buggy and does not show up. Appreciate your hints to do the conversion.
pdf conversion calibre
add a comment |
I have a comic strip book in cbr (Calibre?) format. How can I convert it to pdf in my Ubuntu 12.04? I tried to install calibre hoping that it is able to do so. But it seems to be buggy and does not show up. Appreciate your hints to do the conversion.
pdf conversion calibre
add a comment |
I have a comic strip book in cbr (Calibre?) format. How can I convert it to pdf in my Ubuntu 12.04? I tried to install calibre hoping that it is able to do so. But it seems to be buggy and does not show up. Appreciate your hints to do the conversion.
pdf conversion calibre
I have a comic strip book in cbr (Calibre?) format. How can I convert it to pdf in my Ubuntu 12.04? I tried to install calibre hoping that it is able to do so. But it seems to be buggy and does not show up. Appreciate your hints to do the conversion.
pdf conversion calibre
pdf conversion calibre
asked Oct 31 '12 at 22:17
wbadwbad
257414
257414
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
CBR is just a renamed RAR archive containing sequentially numbered images inside. Install UnRAR from the Software Center and extract the archive.
Then using ImageMagick you can convert the images to PDF like so: convert *.jpg out.pdf
If you want a GUI, use gscan2pdf.
Edit: BTW, why do you want to convert? There are great Comic Book Readers apps available on virtually every platform (see here and here for Linux apps), and CBRs/CBZs (renamed ZIP archives) are way better than PDFs.
Wanted to post it in a forum that does not accept cbr format. Thanks for your help.
– wbad
Nov 1 '12 at 17:05
Ah I see. Oh well, their loss. :)
– Karan
Nov 1 '12 at 17:09
add a comment |
Calibre has a command-line interface if you're unable to get the GUI to come up for some reason. You can use that to convert.
This manual explains the command line usage and options: http://manual.calibre-ebook.com/cli/ebook-convert.html
Here is some more information on Calibre's E-Book Conversion capabilities:
http://manual.calibre-ebook.com/conversion.html
Aside from Calibre, there aren't many ideal options for e-book conversion. I would try reinstalling Calibre. Ubuntu 12.04 also uses an outdated version of Calibre. The Calibre website recommends installing the latest version from the website, rather than any distro's package management utility. Calibre updates are released every week, including bug fixes, enhancements (especially to the conversion system). The distros are regularly many versions behind. Directions for installing the updated version of Calibre are here: http://calibre-ebook.com/download_linux
Here is a listing of other options for converting ebooks on multiple platforms and multiple platforms. If you can't get Calibre to work, I would suggest trying some of them: http://wiki.mobileread.com/wiki/E-book_conversion
CBR is unrelated to Calibre. It's an archive file for sequential viewing of images. You can read more about that here: http://en.wikipedia.org/wiki/Comic_book_archive
add a comment |
Unfortunately convert
and calibre
changes the image quality/resolution, which is very important to CBR and CBZ, so to have no loss of quality, practically using the original jpg
that is inside the CBR(CBZ) files you need to use img2pdf
, I use this commands:
First need to install this:
sudo apt install img2pdf p7zip-full
1) This to make a pdf
file out of every jpg
image without loss of either resolution or quality:
ls -1 ./*jpg | xargs -L1 -I {} img2pdf {} -o {}.pdf
2) This to concatenate the pdf
pages into one:
pdftk *.pdf cat output combined.pdf
I made this batch files
./cbr2pdf.sh:
#!/bin/bash
set -xev
ORIGINAL_FOLDER=`pwd`
JPEGS=`mktemp -d`
cp "$1" "$JPEGS"
cd "$JPEGS"
7z e "$1"
ls -1 ./*jpg | xargs -L1 -I {} img2pdf {} -o {}.pdf
pdftk *.pdf cat output combined.pdf
cp "$JPEGS/combined.pdf" "$ORIGINAL_FOLDER/$1.pdf"
cat cbz2pdf.sh
#!/bin/bash
#set -xev
ORIGINAL_FOLDER=`pwd`
JPEGS=`mktemp -d`
unzip -j "$1" -d "$JPEGS"
cd "$JPEGS"
ls -1 ./*jpg | xargs -L1 -I {} img2pdf {} -o {}.pdf
pdftk *.pdf cat output combined.pdf
cp "$JPEGS/combined.pdf" "$ORIGINAL_FOLDER/$1.pdf"
To convert all cbr
and cbz
in the folder and subfolders:
tree -fai . | grep -P "cbr$" | xargs -L1 -I{} ./cbr2pdf.sh {}
and
tree -fai . | grep -P "cbz$" | xargs -L1 -I{} ./cbz2pdf.sh {}
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f497293%2fhow-to-convert-calibre-cbr-to-pdf-format-in-linux%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
CBR is just a renamed RAR archive containing sequentially numbered images inside. Install UnRAR from the Software Center and extract the archive.
Then using ImageMagick you can convert the images to PDF like so: convert *.jpg out.pdf
If you want a GUI, use gscan2pdf.
Edit: BTW, why do you want to convert? There are great Comic Book Readers apps available on virtually every platform (see here and here for Linux apps), and CBRs/CBZs (renamed ZIP archives) are way better than PDFs.
Wanted to post it in a forum that does not accept cbr format. Thanks for your help.
– wbad
Nov 1 '12 at 17:05
Ah I see. Oh well, their loss. :)
– Karan
Nov 1 '12 at 17:09
add a comment |
CBR is just a renamed RAR archive containing sequentially numbered images inside. Install UnRAR from the Software Center and extract the archive.
Then using ImageMagick you can convert the images to PDF like so: convert *.jpg out.pdf
If you want a GUI, use gscan2pdf.
Edit: BTW, why do you want to convert? There are great Comic Book Readers apps available on virtually every platform (see here and here for Linux apps), and CBRs/CBZs (renamed ZIP archives) are way better than PDFs.
Wanted to post it in a forum that does not accept cbr format. Thanks for your help.
– wbad
Nov 1 '12 at 17:05
Ah I see. Oh well, their loss. :)
– Karan
Nov 1 '12 at 17:09
add a comment |
CBR is just a renamed RAR archive containing sequentially numbered images inside. Install UnRAR from the Software Center and extract the archive.
Then using ImageMagick you can convert the images to PDF like so: convert *.jpg out.pdf
If you want a GUI, use gscan2pdf.
Edit: BTW, why do you want to convert? There are great Comic Book Readers apps available on virtually every platform (see here and here for Linux apps), and CBRs/CBZs (renamed ZIP archives) are way better than PDFs.
CBR is just a renamed RAR archive containing sequentially numbered images inside. Install UnRAR from the Software Center and extract the archive.
Then using ImageMagick you can convert the images to PDF like so: convert *.jpg out.pdf
If you want a GUI, use gscan2pdf.
Edit: BTW, why do you want to convert? There are great Comic Book Readers apps available on virtually every platform (see here and here for Linux apps), and CBRs/CBZs (renamed ZIP archives) are way better than PDFs.
edited Oct 31 '12 at 22:30
answered Oct 31 '12 at 22:24
KaranKaran
49.3k1489161
49.3k1489161
Wanted to post it in a forum that does not accept cbr format. Thanks for your help.
– wbad
Nov 1 '12 at 17:05
Ah I see. Oh well, their loss. :)
– Karan
Nov 1 '12 at 17:09
add a comment |
Wanted to post it in a forum that does not accept cbr format. Thanks for your help.
– wbad
Nov 1 '12 at 17:05
Ah I see. Oh well, their loss. :)
– Karan
Nov 1 '12 at 17:09
Wanted to post it in a forum that does not accept cbr format. Thanks for your help.
– wbad
Nov 1 '12 at 17:05
Wanted to post it in a forum that does not accept cbr format. Thanks for your help.
– wbad
Nov 1 '12 at 17:05
Ah I see. Oh well, their loss. :)
– Karan
Nov 1 '12 at 17:09
Ah I see. Oh well, their loss. :)
– Karan
Nov 1 '12 at 17:09
add a comment |
Calibre has a command-line interface if you're unable to get the GUI to come up for some reason. You can use that to convert.
This manual explains the command line usage and options: http://manual.calibre-ebook.com/cli/ebook-convert.html
Here is some more information on Calibre's E-Book Conversion capabilities:
http://manual.calibre-ebook.com/conversion.html
Aside from Calibre, there aren't many ideal options for e-book conversion. I would try reinstalling Calibre. Ubuntu 12.04 also uses an outdated version of Calibre. The Calibre website recommends installing the latest version from the website, rather than any distro's package management utility. Calibre updates are released every week, including bug fixes, enhancements (especially to the conversion system). The distros are regularly many versions behind. Directions for installing the updated version of Calibre are here: http://calibre-ebook.com/download_linux
Here is a listing of other options for converting ebooks on multiple platforms and multiple platforms. If you can't get Calibre to work, I would suggest trying some of them: http://wiki.mobileread.com/wiki/E-book_conversion
CBR is unrelated to Calibre. It's an archive file for sequential viewing of images. You can read more about that here: http://en.wikipedia.org/wiki/Comic_book_archive
add a comment |
Calibre has a command-line interface if you're unable to get the GUI to come up for some reason. You can use that to convert.
This manual explains the command line usage and options: http://manual.calibre-ebook.com/cli/ebook-convert.html
Here is some more information on Calibre's E-Book Conversion capabilities:
http://manual.calibre-ebook.com/conversion.html
Aside from Calibre, there aren't many ideal options for e-book conversion. I would try reinstalling Calibre. Ubuntu 12.04 also uses an outdated version of Calibre. The Calibre website recommends installing the latest version from the website, rather than any distro's package management utility. Calibre updates are released every week, including bug fixes, enhancements (especially to the conversion system). The distros are regularly many versions behind. Directions for installing the updated version of Calibre are here: http://calibre-ebook.com/download_linux
Here is a listing of other options for converting ebooks on multiple platforms and multiple platforms. If you can't get Calibre to work, I would suggest trying some of them: http://wiki.mobileread.com/wiki/E-book_conversion
CBR is unrelated to Calibre. It's an archive file for sequential viewing of images. You can read more about that here: http://en.wikipedia.org/wiki/Comic_book_archive
add a comment |
Calibre has a command-line interface if you're unable to get the GUI to come up for some reason. You can use that to convert.
This manual explains the command line usage and options: http://manual.calibre-ebook.com/cli/ebook-convert.html
Here is some more information on Calibre's E-Book Conversion capabilities:
http://manual.calibre-ebook.com/conversion.html
Aside from Calibre, there aren't many ideal options for e-book conversion. I would try reinstalling Calibre. Ubuntu 12.04 also uses an outdated version of Calibre. The Calibre website recommends installing the latest version from the website, rather than any distro's package management utility. Calibre updates are released every week, including bug fixes, enhancements (especially to the conversion system). The distros are regularly many versions behind. Directions for installing the updated version of Calibre are here: http://calibre-ebook.com/download_linux
Here is a listing of other options for converting ebooks on multiple platforms and multiple platforms. If you can't get Calibre to work, I would suggest trying some of them: http://wiki.mobileread.com/wiki/E-book_conversion
CBR is unrelated to Calibre. It's an archive file for sequential viewing of images. You can read more about that here: http://en.wikipedia.org/wiki/Comic_book_archive
Calibre has a command-line interface if you're unable to get the GUI to come up for some reason. You can use that to convert.
This manual explains the command line usage and options: http://manual.calibre-ebook.com/cli/ebook-convert.html
Here is some more information on Calibre's E-Book Conversion capabilities:
http://manual.calibre-ebook.com/conversion.html
Aside from Calibre, there aren't many ideal options for e-book conversion. I would try reinstalling Calibre. Ubuntu 12.04 also uses an outdated version of Calibre. The Calibre website recommends installing the latest version from the website, rather than any distro's package management utility. Calibre updates are released every week, including bug fixes, enhancements (especially to the conversion system). The distros are regularly many versions behind. Directions for installing the updated version of Calibre are here: http://calibre-ebook.com/download_linux
Here is a listing of other options for converting ebooks on multiple platforms and multiple platforms. If you can't get Calibre to work, I would suggest trying some of them: http://wiki.mobileread.com/wiki/E-book_conversion
CBR is unrelated to Calibre. It's an archive file for sequential viewing of images. You can read more about that here: http://en.wikipedia.org/wiki/Comic_book_archive
answered Oct 31 '12 at 22:28
Max BurnsMax Burns
2951212
2951212
add a comment |
add a comment |
Unfortunately convert
and calibre
changes the image quality/resolution, which is very important to CBR and CBZ, so to have no loss of quality, practically using the original jpg
that is inside the CBR(CBZ) files you need to use img2pdf
, I use this commands:
First need to install this:
sudo apt install img2pdf p7zip-full
1) This to make a pdf
file out of every jpg
image without loss of either resolution or quality:
ls -1 ./*jpg | xargs -L1 -I {} img2pdf {} -o {}.pdf
2) This to concatenate the pdf
pages into one:
pdftk *.pdf cat output combined.pdf
I made this batch files
./cbr2pdf.sh:
#!/bin/bash
set -xev
ORIGINAL_FOLDER=`pwd`
JPEGS=`mktemp -d`
cp "$1" "$JPEGS"
cd "$JPEGS"
7z e "$1"
ls -1 ./*jpg | xargs -L1 -I {} img2pdf {} -o {}.pdf
pdftk *.pdf cat output combined.pdf
cp "$JPEGS/combined.pdf" "$ORIGINAL_FOLDER/$1.pdf"
cat cbz2pdf.sh
#!/bin/bash
#set -xev
ORIGINAL_FOLDER=`pwd`
JPEGS=`mktemp -d`
unzip -j "$1" -d "$JPEGS"
cd "$JPEGS"
ls -1 ./*jpg | xargs -L1 -I {} img2pdf {} -o {}.pdf
pdftk *.pdf cat output combined.pdf
cp "$JPEGS/combined.pdf" "$ORIGINAL_FOLDER/$1.pdf"
To convert all cbr
and cbz
in the folder and subfolders:
tree -fai . | grep -P "cbr$" | xargs -L1 -I{} ./cbr2pdf.sh {}
and
tree -fai . | grep -P "cbz$" | xargs -L1 -I{} ./cbz2pdf.sh {}
add a comment |
Unfortunately convert
and calibre
changes the image quality/resolution, which is very important to CBR and CBZ, so to have no loss of quality, practically using the original jpg
that is inside the CBR(CBZ) files you need to use img2pdf
, I use this commands:
First need to install this:
sudo apt install img2pdf p7zip-full
1) This to make a pdf
file out of every jpg
image without loss of either resolution or quality:
ls -1 ./*jpg | xargs -L1 -I {} img2pdf {} -o {}.pdf
2) This to concatenate the pdf
pages into one:
pdftk *.pdf cat output combined.pdf
I made this batch files
./cbr2pdf.sh:
#!/bin/bash
set -xev
ORIGINAL_FOLDER=`pwd`
JPEGS=`mktemp -d`
cp "$1" "$JPEGS"
cd "$JPEGS"
7z e "$1"
ls -1 ./*jpg | xargs -L1 -I {} img2pdf {} -o {}.pdf
pdftk *.pdf cat output combined.pdf
cp "$JPEGS/combined.pdf" "$ORIGINAL_FOLDER/$1.pdf"
cat cbz2pdf.sh
#!/bin/bash
#set -xev
ORIGINAL_FOLDER=`pwd`
JPEGS=`mktemp -d`
unzip -j "$1" -d "$JPEGS"
cd "$JPEGS"
ls -1 ./*jpg | xargs -L1 -I {} img2pdf {} -o {}.pdf
pdftk *.pdf cat output combined.pdf
cp "$JPEGS/combined.pdf" "$ORIGINAL_FOLDER/$1.pdf"
To convert all cbr
and cbz
in the folder and subfolders:
tree -fai . | grep -P "cbr$" | xargs -L1 -I{} ./cbr2pdf.sh {}
and
tree -fai . | grep -P "cbz$" | xargs -L1 -I{} ./cbz2pdf.sh {}
add a comment |
Unfortunately convert
and calibre
changes the image quality/resolution, which is very important to CBR and CBZ, so to have no loss of quality, practically using the original jpg
that is inside the CBR(CBZ) files you need to use img2pdf
, I use this commands:
First need to install this:
sudo apt install img2pdf p7zip-full
1) This to make a pdf
file out of every jpg
image without loss of either resolution or quality:
ls -1 ./*jpg | xargs -L1 -I {} img2pdf {} -o {}.pdf
2) This to concatenate the pdf
pages into one:
pdftk *.pdf cat output combined.pdf
I made this batch files
./cbr2pdf.sh:
#!/bin/bash
set -xev
ORIGINAL_FOLDER=`pwd`
JPEGS=`mktemp -d`
cp "$1" "$JPEGS"
cd "$JPEGS"
7z e "$1"
ls -1 ./*jpg | xargs -L1 -I {} img2pdf {} -o {}.pdf
pdftk *.pdf cat output combined.pdf
cp "$JPEGS/combined.pdf" "$ORIGINAL_FOLDER/$1.pdf"
cat cbz2pdf.sh
#!/bin/bash
#set -xev
ORIGINAL_FOLDER=`pwd`
JPEGS=`mktemp -d`
unzip -j "$1" -d "$JPEGS"
cd "$JPEGS"
ls -1 ./*jpg | xargs -L1 -I {} img2pdf {} -o {}.pdf
pdftk *.pdf cat output combined.pdf
cp "$JPEGS/combined.pdf" "$ORIGINAL_FOLDER/$1.pdf"
To convert all cbr
and cbz
in the folder and subfolders:
tree -fai . | grep -P "cbr$" | xargs -L1 -I{} ./cbr2pdf.sh {}
and
tree -fai . | grep -P "cbz$" | xargs -L1 -I{} ./cbz2pdf.sh {}
Unfortunately convert
and calibre
changes the image quality/resolution, which is very important to CBR and CBZ, so to have no loss of quality, practically using the original jpg
that is inside the CBR(CBZ) files you need to use img2pdf
, I use this commands:
First need to install this:
sudo apt install img2pdf p7zip-full
1) This to make a pdf
file out of every jpg
image without loss of either resolution or quality:
ls -1 ./*jpg | xargs -L1 -I {} img2pdf {} -o {}.pdf
2) This to concatenate the pdf
pages into one:
pdftk *.pdf cat output combined.pdf
I made this batch files
./cbr2pdf.sh:
#!/bin/bash
set -xev
ORIGINAL_FOLDER=`pwd`
JPEGS=`mktemp -d`
cp "$1" "$JPEGS"
cd "$JPEGS"
7z e "$1"
ls -1 ./*jpg | xargs -L1 -I {} img2pdf {} -o {}.pdf
pdftk *.pdf cat output combined.pdf
cp "$JPEGS/combined.pdf" "$ORIGINAL_FOLDER/$1.pdf"
cat cbz2pdf.sh
#!/bin/bash
#set -xev
ORIGINAL_FOLDER=`pwd`
JPEGS=`mktemp -d`
unzip -j "$1" -d "$JPEGS"
cd "$JPEGS"
ls -1 ./*jpg | xargs -L1 -I {} img2pdf {} -o {}.pdf
pdftk *.pdf cat output combined.pdf
cp "$JPEGS/combined.pdf" "$ORIGINAL_FOLDER/$1.pdf"
To convert all cbr
and cbz
in the folder and subfolders:
tree -fai . | grep -P "cbr$" | xargs -L1 -I{} ./cbr2pdf.sh {}
and
tree -fai . | grep -P "cbz$" | xargs -L1 -I{} ./cbz2pdf.sh {}
edited Feb 5 at 9:31
answered Feb 13 '18 at 3:30
Eduard FlorinescuEduard Florinescu
1,24352039
1,24352039
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f497293%2fhow-to-convert-calibre-cbr-to-pdf-format-in-linux%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown