jpg -> djvu
Есть манга в виде много-много jpg-картинок. Для удобства чтения на читалке (запоминание позиции) хочу перегнать это все в один файл djvu или pdf. Собственно, как? Желательно cli
convert *.jpg manga.pdf
Повесил систему, зохавал все 4 ГиБ в /tmp. Пришлось убивать из соседней консоли.
Всегда пользовался этим способом.
Но в виду жалобы, решил для теста увеличить объём обработки, скормив ему домашних фотографий, отщипнув мегабайт 600.
В отличие от вашего случая — у меня было сожрано 8мь оперативки, и 16ть свопа. Система повесилась перманентно.
Тысяча извинений, попросту не подозревал, что оно работает только с крохотными желаниями.
У меня там 300 глав по 15 картинок в среднем. Не выдержало 🙂
Можно как-то так сочинить, наверное, будет меньше памяти жрать:
Нафига тебе djvu, если можно просто все сделать cbz? На нормальных читалках положение запоминается.
Нафига тебе djvu, если можно просто все сделать cbz? На нормальных читалках положение запоминается.
Да, это, кстати, правда: cbz или cb7 подошли бы лучше. Другое дело, что их далеко не всякая читалка читает.
У меня и так cbz, читалка их не умеет. Я хочу распаковать в jpg и их склеить.
Источник
PDF, PS and DjVu
This article covers software to view, edit and convert PDF, PostScript (PS), DjVu (déjà vu) and XPS files.
Contents
Engines
- Poppler — PDF rendering library based on Xpdf. For CJK (Chinese, Japanese, Korean) support with Poppler, installpoppler-data .
https://poppler.freedesktop.org/ || poppler
- Mupdf — MuPDF is a lightweight PDF, XPS, and EPUB viewer, consisting of a software library, command line tools, and viewers.
https://mupdf.com/ || libmupdf
- libspectre — Small library for rendering Postscript documents.
https://www.freedesktop.org/wiki/Software/libspectre || libspectre
- Ghostscript — Interpreter for PostScript and PDF. Provides the gs(1) command-line interface, see also /usr/share/doc/ghostscript/*/Use.htm (online), along with many wrapper scripts like ps2pdf and pdf2ps.
https://ghostscript.com/ || ghostscript
- DjVuLibre — Suite to create, manipulate and view DjVu documents.
http://djvu.sourceforge.net/ || djvulibre
- libgxps — GObject based library for handling and rendering XPS documents.
https://wiki.gnome.org/Projects/libgxps || libgxps
Viewers
Framebuffer
- fbgs — Poor man’s PostScript/pdf viewer for the linux framebuffer console.
https://www.kraxel.org/blog/linux/fbida/ || fbida
- fbpdf — Small framebuffer PDF and DjVu viewer based on MuPDF, with Vim keybindings and written in C
https://repo.or.cz/w/fbpdf.git || fbpdf-gitAUR
- jfbview — Framebuffer PDF and image viewer. Features include Vim-like controls, zoom-to-fit, a TOC (outline) view and fast multi-threaded rendering.
https://github.com/jichu4n/jfbview || jfbviewAUR
Graphical
- Adobe Reader — Proprietary PDF file viewer offered by Adobe. Discontinued for Linux.
https://www.adobe.com/products/reader.html || acroreadAUR
- apvlv — Lightweight document viewer with Vim keybindings. Supports PDF, DjVu, EPUB, HTML and TXT.
https://naihe2010.github.io/apvlv/ || apvlvAUR
- Atril — Simple multi-page document viewer for MATE. Supports DjVu, DVI, EPS, EPUB, PDF, PostScript, TIFF, XPS and Comicbook.
https://github.com/mate-desktop/atril || atril
- CorePDF — Simple lightweight PDF viewer based on Qt and poppler. Part of C-Suite.
https://cubocore.org/ || corepdfAUR
- Deepin Document Viewer — A simple PDF and DjVu reader, supporting bookmarks, highlights and annotations.
https://github.com/linuxdeepin/deepin-reader || deepin-reader
- DjView — Viewer for DjVu documents.
http://djvu.sourceforge.net/djview4.html || djview
- ePDFView — Lightweight PDF document viewer using the Poppler and GTK libraries. Development stopped.
http://freecode.com/projects/epdfview || epdfview
- Emacs — See also pdf-tools for improved pdf support ( emacs-pdf-tools-gitAUR ) and the djvu package for djvu support.
https://www.gnu.org/software/emacs/ || emacs
- Evince — Document viewer for GNOME. Supports DjVu, DVI, EPS, PDF, PostScript, TIFF, XPS and Comicbook.
https://wiki.gnome.org/Apps/Evince || evince
- Foxit Reader — Small, fast (compared to Acrobat) proprietary PDF viewer. Discontinued for Linux.
https://www.foxitsoftware.com/pdf-reader/ || foxitreaderAUR
- gv — Graphical user interface for the Ghostscript interpreter that allows to view and navigate through PostScript and PDF documents.
https://www.gnu.org/software/gv/ || gv
- llpp — Very fast PDF reader based off of MuPDF, that supports continuous page scrolling, bookmarking, and text search through the whole document.
https://repo.or.cz/w/llpp.git || llpp
- MuPDF — Very fast EPUB, FictionBook, PDF, XPS and Comicbook viewer written in portable C. Features CJK font support.
https://mupdf.com/ || mupdf
- Okular — Universal document viewer for KDE. Supports CHM, Comicbook, DjVu, DVI, EPUB, FictionBook, Mobipocket, ODT, PDF, Plucker, PostScript, TIFF and XPS.
https://okular.kde.org/ || okular
- pdfpc — Presenter console with multi-monitor support for PDF files.
https://pdfpc.github.io/ || pdfpc
- qpdfview — Tabbed document viewer. It uses Poppler for PDF support, libspectre for PS support, DjVuLibre for DjVu support, CUPS for printing support and the Qt toolkit for its interface.
https://launchpad.net/qpdfview || qpdfview
- Xpdf — Viewer that can decode LZW and read encrypted PDFs.
https://www.xpdfreader.com/ || xpdf
- Xreader — Document viewer part of the X-Apps Project. Supports DjVu, DVI, EPUB, PDF, PostScript, TIFF, XPS, Comicbook.
https://github.com/linuxmint/xreader/ || xreader
- Zathura — Highly customizable and functional document viewer (plugin based). Supports PDF, DjVu, PostScript and Comicbook.
https://pwmt.org/projects/zathura/ || zathura
Comparison
The factual accuracy of this article or section is disputed.
Asterisk next to library denotes optional dependency needs to be installed for specified feature.
Name | PostScript | DjVu | XPS | PDF forms | PDF Annotation | License | |
---|---|---|---|---|---|---|---|
Adobe Reader | Custom | – | – | – | Yes | – | proprietary |
apvlv | Poppler | – | DjVuLibre | – | No | – | GPLv2 |
Atril | Poppler | libspectre | DjVuLibre | libgxps | Yes | – | GPLv2 |
DjView | – | – | DjVuLibre | – | – | – | GPLv2 |
Emacs | Ghostscript* | DjVuLibre* | – | No | Yes | GPLv3 | |
ePDFView | Poppler | – | – | – | No | – | GPLv2 |
Evince | Poppler | libspectre | DjVuLibre | libgxps | Yes | Yes | GPLv2 |
Foxit Reader | Custom | – | – | – | Yes | Yes | proprietary |
gv | Ghostscript | – | – | No | – | GPLv3 | |
llpp | libmupdf | – | – | libmupdf | Yes | – | GPLv3 |
MuPDF | Custom | – | – | Custom | Yes | Yes | AGPLv3 |
Okular | Poppler | libspectre | DjVuLibre | Custom | Yes | Yes | GPL, LGPL |
pdfpc | Poppler | – | – | – | No | – | GPLv2 |
qpdfview | Poppler | libspectre* | DjVuLibre* | – | Yes | Yes | GPLv2 |
Xpdf | Custom | – | – | – | No | – | GPLv3 |
Xreader | Poppler | libspectre* | DjVuLibre* | libgxps* | Yes | Yes | GPLv2 |
Zathura | Poppler* / libmupdf* | libspectre* | DjVuLibre* | libmupdf* | No | – | zlib |
PDF forms
The PDF forms column in the above table refers to AcroForms support. If you do not need your input to be directly extractable from the PDF, you can also use the applications in #Annotation or #Graphical PDF editing to put text on top of a PDF. PDF forms can be created with LibreOffice Writer (View > Toolbars > Form Controls) and the advanced PDF editors.
The proprietary and deprecated XFA format for forms is not fully supported by Poppler[1][2] and only supported by Adobe Reader and Master PDF Editor.
Alternatively, web browsers such as Firefox or Chromium feature a built-in PDF viewer capable of filling out forms.
Источник