mirror of
https://github.com/gen2brain/cbconvert
synced 2026-06-30 09:11:54 +02:00
Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a9e3281a5f | |||
| 962fde8c8d | |||
| a8084ed897 | |||
| 183c42613f | |||
| cad75231b1 | |||
| c32019615d | |||
| dd9000cfea | |||
| 4fc3209b4e | |||
| 000bd20f71 | |||
| f558b109e5 | |||
| 5922f102be | |||
| f84d2d4333 | |||
| 551ab9e137 | |||
| 046cc2c1fd |
@@ -8,7 +8,7 @@ It can convert comics to different formats to fit your various devices.
|
||||
|
||||
<img src="cmd/cbconvert-gui/screenshots/linux-01.jpg" width="700" alt="screenshot" />
|
||||
|
||||
See more [screnshots](https://github.com/gen2brain/cbconvert/blob/master/cmd/cbconvert-gui/screenshots/).
|
||||
See more [screenshots](https://github.com/gen2brain/cbconvert/blob/master/cmd/cbconvert-gui/screenshots/).
|
||||
|
||||
### Features
|
||||
|
||||
@@ -27,6 +27,8 @@ See more [screnshots](https://github.com/gen2brain/cbconvert/blob/master/cmd/cbc
|
||||
* [macOS x86_64](https://github.com/gen2brain/cbconvert/releases/latest/download/cbconvert-1.0.0-darwin-x86_64.zip)
|
||||
* [macOS aarch64](https://github.com/gen2brain/cbconvert/releases/latest/download/cbconvert-1.0.0-darwin-aarch64.zip)
|
||||
|
||||
[](https://flathub.org/apps/io.github.gen2brain.cbconvert)
|
||||
|
||||
### Using cbconvert in file managers to generate FreeDesktop thumbnails
|
||||
|
||||
Copy `cbconvert` cli binary to your PATH and create file `~/.local/share/thumbnailers/cbconvert.thumbnailer`:
|
||||
|
||||
+31
-31
@@ -20,7 +20,7 @@ import (
|
||||
"image/jpeg"
|
||||
"image/png"
|
||||
|
||||
"github.com/chai2010/webp"
|
||||
"git.sr.ht/~jackmordaunt/go-libwebp/webp"
|
||||
"golang.org/x/image/tiff"
|
||||
|
||||
"github.com/disintegration/imaging"
|
||||
@@ -132,8 +132,8 @@ type Options struct {
|
||||
LevelsOutMax int
|
||||
}
|
||||
|
||||
// Convertor type.
|
||||
type Convertor struct {
|
||||
// Converter type.
|
||||
type Converter struct {
|
||||
// Options struct
|
||||
Opts Options
|
||||
// Current working directory
|
||||
@@ -186,16 +186,16 @@ func NewOptions() Options {
|
||||
return o
|
||||
}
|
||||
|
||||
// New returns new convertor.
|
||||
func New(o Options) *Convertor {
|
||||
c := &Convertor{}
|
||||
// New returns new converter.
|
||||
func New(o Options) *Converter {
|
||||
c := &Converter{}
|
||||
c.Opts = o
|
||||
|
||||
return c
|
||||
}
|
||||
|
||||
// convertDocument converts PDF/EPUB document to CBZ.
|
||||
func (c *Convertor) convertDocument(ctx context.Context, fileName string) error {
|
||||
func (c *Converter) convertDocument(ctx context.Context, fileName string) error {
|
||||
var err error
|
||||
|
||||
c.Workdir, err = os.MkdirTemp(os.TempDir(), "cbc")
|
||||
@@ -248,7 +248,7 @@ func (c *Convertor) convertDocument(ctx context.Context, fileName string) error
|
||||
}
|
||||
|
||||
// convertArchive converts archive to CBZ.
|
||||
func (c *Convertor) convertArchive(ctx context.Context, fileName string) error {
|
||||
func (c *Converter) convertArchive(ctx context.Context, fileName string) error {
|
||||
var err error
|
||||
|
||||
c.Workdir, err = os.MkdirTemp(os.TempDir(), "cbc")
|
||||
@@ -358,7 +358,7 @@ func (c *Convertor) convertArchive(ctx context.Context, fileName string) error {
|
||||
}
|
||||
|
||||
// convertDirectory converts directory to CBZ.
|
||||
func (c *Convertor) convertDirectory(ctx context.Context, dirPath string) error {
|
||||
func (c *Converter) convertDirectory(ctx context.Context, dirPath string) error {
|
||||
var err error
|
||||
|
||||
c.Workdir, err = os.MkdirTemp(os.TempDir(), "cbc")
|
||||
@@ -466,7 +466,7 @@ func (c *Convertor) convertDirectory(ctx context.Context, dirPath string) error
|
||||
}
|
||||
|
||||
// imageConvert converts image.Image.
|
||||
func (c *Convertor) imageConvert(ctx context.Context, img image.Image, index int, pathName string) error {
|
||||
func (c *Converter) imageConvert(ctx context.Context, img image.Image, index int, pathName string) error {
|
||||
err := ctx.Err()
|
||||
if err != nil {
|
||||
return fmt.Errorf("imageConvert: %w", err)
|
||||
@@ -515,7 +515,7 @@ func (c *Convertor) imageConvert(ctx context.Context, img image.Image, index int
|
||||
}
|
||||
|
||||
// imageTransform transforms image (resize, rotate, brightness, contrast).
|
||||
func (c *Convertor) imageTransform(img image.Image) image.Image {
|
||||
func (c *Converter) imageTransform(img image.Image) image.Image {
|
||||
var i = img
|
||||
|
||||
if c.Opts.Width > 0 || c.Opts.Height > 0 {
|
||||
@@ -553,7 +553,7 @@ func (c *Convertor) imageTransform(img image.Image) image.Image {
|
||||
}
|
||||
|
||||
// imageLevel applies a Photoshop-like levels operation on an image.
|
||||
func (c *Convertor) imageLevel(img image.Image) (image.Image, error) {
|
||||
func (c *Converter) imageLevel(img image.Image) (image.Image, error) {
|
||||
mw := imagick.NewMagickWand()
|
||||
defer mw.Destroy()
|
||||
|
||||
@@ -595,7 +595,7 @@ func (c *Convertor) imageLevel(img image.Image) (image.Image, error) {
|
||||
}
|
||||
|
||||
// imageDecode decodes image from reader.
|
||||
func (c *Convertor) imageDecode(reader io.Reader) (image.Image, error) {
|
||||
func (c *Converter) imageDecode(reader io.Reader) (image.Image, error) {
|
||||
img, _, err := image.Decode(reader)
|
||||
if err != nil {
|
||||
return img, fmt.Errorf("imageDecode: %w", err)
|
||||
@@ -605,7 +605,7 @@ func (c *Convertor) imageDecode(reader io.Reader) (image.Image, error) {
|
||||
}
|
||||
|
||||
// imDecode decodes image from reader (ImageMagick).
|
||||
func (c *Convertor) imDecode(reader io.Reader, fileName string) (image.Image, error) {
|
||||
func (c *Converter) imDecode(reader io.Reader, fileName string) (image.Image, error) {
|
||||
mw := imagick.NewMagickWand()
|
||||
defer mw.Destroy()
|
||||
|
||||
@@ -644,7 +644,7 @@ func (c *Convertor) imDecode(reader io.Reader, fileName string) (image.Image, er
|
||||
}
|
||||
|
||||
// imageEncode encodes image to file.
|
||||
func (c *Convertor) imageEncode(img image.Image, w io.Writer) error {
|
||||
func (c *Converter) imageEncode(img image.Image, w io.Writer) error {
|
||||
var err error
|
||||
|
||||
switch c.Opts.Format {
|
||||
@@ -655,7 +655,7 @@ func (c *Convertor) imageEncode(img image.Image, w io.Writer) error {
|
||||
case "jpeg":
|
||||
err = jpeg.Encode(w, img, &jpeg.Options{Quality: c.Opts.Quality})
|
||||
case "webp":
|
||||
err = webp.Encode(w, img, &webp.Options{Quality: float32(c.Opts.Quality)})
|
||||
err = webp.Encode(w, img, webp.Quality(float32(c.Opts.Quality)))
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
@@ -666,7 +666,7 @@ func (c *Convertor) imageEncode(img image.Image, w io.Writer) error {
|
||||
}
|
||||
|
||||
// imEncode encodes image to file (ImageMagick).
|
||||
func (c *Convertor) imEncode(i image.Image, w io.Writer) error {
|
||||
func (c *Converter) imEncode(i image.Image, w io.Writer) error {
|
||||
mw := imagick.NewMagickWand()
|
||||
defer mw.Destroy()
|
||||
|
||||
@@ -742,7 +742,7 @@ func (c *Convertor) imEncode(i image.Image, w io.Writer) error {
|
||||
}
|
||||
|
||||
// coverArchive extracts cover from archive.
|
||||
func (c *Convertor) coverArchive(fileName string) (image.Image, error) {
|
||||
func (c *Converter) coverArchive(fileName string) (image.Image, error) {
|
||||
var images []string
|
||||
|
||||
contents, err := c.archiveList(fileName)
|
||||
@@ -787,7 +787,7 @@ func (c *Convertor) coverArchive(fileName string) (image.Image, error) {
|
||||
}
|
||||
|
||||
// coverDocument extracts cover from document.
|
||||
func (c *Convertor) coverDocument(fileName string) (image.Image, error) {
|
||||
func (c *Converter) coverDocument(fileName string) (image.Image, error) {
|
||||
doc, err := fitz.New(fileName)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("coverDocument: %w", err)
|
||||
@@ -803,7 +803,7 @@ func (c *Convertor) coverDocument(fileName string) (image.Image, error) {
|
||||
}
|
||||
|
||||
// coverDirectory extracts cover from directory.
|
||||
func (c *Convertor) coverDirectory(dir string) (image.Image, error) {
|
||||
func (c *Converter) coverDirectory(dir string) (image.Image, error) {
|
||||
contents, err := imagesFromPath(dir)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("coverDirectory: %w", err)
|
||||
@@ -837,7 +837,7 @@ func (c *Convertor) coverDirectory(dir string) (image.Image, error) {
|
||||
}
|
||||
|
||||
// coverName returns the filename that is the most likely to be the cover.
|
||||
func (c *Convertor) coverName(images []string) string {
|
||||
func (c *Converter) coverName(images []string) string {
|
||||
if len(images) == 0 {
|
||||
return ""
|
||||
}
|
||||
@@ -868,7 +868,7 @@ func (c *Convertor) coverName(images []string) string {
|
||||
}
|
||||
|
||||
// coverImage returns cover as image.Image.
|
||||
func (c *Convertor) coverImage(fileName string, fileInfo os.FileInfo) (image.Image, error) {
|
||||
func (c *Converter) coverImage(fileName string, fileInfo os.FileInfo) (image.Image, error) {
|
||||
var err error
|
||||
var cover image.Image
|
||||
|
||||
@@ -893,24 +893,24 @@ func (c *Convertor) coverImage(fileName string, fileInfo os.FileInfo) (image.Ima
|
||||
}
|
||||
|
||||
// Initialize inits ImageMagick.
|
||||
func (c *Convertor) Initialize() {
|
||||
func (c *Converter) Initialize() {
|
||||
imagick.Initialize()
|
||||
}
|
||||
|
||||
// Terminate terminates ImageMagick.
|
||||
func (c *Convertor) Terminate() {
|
||||
func (c *Converter) Terminate() {
|
||||
imagick.Terminate()
|
||||
}
|
||||
|
||||
// Cancel cancels the operation.
|
||||
func (c *Convertor) Cancel() {
|
||||
func (c *Converter) Cancel() {
|
||||
if c.OnCancel != nil {
|
||||
c.OnCancel()
|
||||
}
|
||||
}
|
||||
|
||||
// Files returns list of found comic files.
|
||||
func (c *Convertor) Files(args []string) ([]File, error) {
|
||||
func (c *Converter) Files(args []string) ([]File, error) {
|
||||
var files []File
|
||||
|
||||
toFile := func(fp string, f os.FileInfo) File {
|
||||
@@ -1017,7 +1017,7 @@ func (c *Convertor) Files(args []string) ([]File, error) {
|
||||
}
|
||||
|
||||
// Cover extracts cover.
|
||||
func (c *Convertor) Cover(fileName string, fileInfo os.FileInfo) error {
|
||||
func (c *Converter) Cover(fileName string, fileInfo os.FileInfo) error {
|
||||
c.CurrFile++
|
||||
|
||||
cover, err := c.coverImage(fileName, fileInfo)
|
||||
@@ -1066,7 +1066,7 @@ func (c *Convertor) Cover(fileName string, fileInfo os.FileInfo) error {
|
||||
}
|
||||
|
||||
// Thumbnail extracts thumbnail.
|
||||
func (c *Convertor) Thumbnail(fileName string, fileInfo os.FileInfo) error {
|
||||
func (c *Converter) Thumbnail(fileName string, fileInfo os.FileInfo) error {
|
||||
c.CurrFile++
|
||||
|
||||
cover, err := c.coverImage(fileName, fileInfo)
|
||||
@@ -1142,7 +1142,7 @@ func (c *Convertor) Thumbnail(fileName string, fileInfo os.FileInfo) error {
|
||||
}
|
||||
|
||||
// Meta manipulates with CBZ metadata.
|
||||
func (c *Convertor) Meta(fileName string) (any, error) {
|
||||
func (c *Converter) Meta(fileName string) (any, error) {
|
||||
c.CurrFile++
|
||||
|
||||
switch {
|
||||
@@ -1189,7 +1189,7 @@ func (c *Convertor) Meta(fileName string) (any, error) {
|
||||
}
|
||||
|
||||
// Preview returns image preview.
|
||||
func (c *Convertor) Preview(fileName string, fileInfo os.FileInfo, width, height int) (Image, error) {
|
||||
func (c *Converter) Preview(fileName string, fileInfo os.FileInfo, width, height int) (Image, error) {
|
||||
var img Image
|
||||
|
||||
i, err := c.coverImage(fileName, fileInfo)
|
||||
@@ -1250,7 +1250,7 @@ func (c *Convertor) Preview(fileName string, fileInfo os.FileInfo, width, height
|
||||
}
|
||||
|
||||
// Convert converts comic book.
|
||||
func (c *Convertor) Convert(fileName string, fileInfo os.FileInfo) error {
|
||||
func (c *Converter) Convert(fileName string, fileInfo os.FileInfo) error {
|
||||
c.CurrFile++
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
|
||||
+8
-8
@@ -12,7 +12,7 @@ import (
|
||||
)
|
||||
|
||||
// archiveSave saves workdir to CBZ archive.
|
||||
func (c *Convertor) archiveSave(fileName string) error {
|
||||
func (c *Converter) archiveSave(fileName string) error {
|
||||
if c.Opts.Archive == "zip" {
|
||||
return c.archiveSaveZip(fileName)
|
||||
} else if c.Opts.Archive == "tar" {
|
||||
@@ -23,7 +23,7 @@ func (c *Convertor) archiveSave(fileName string) error {
|
||||
}
|
||||
|
||||
// archiveSaveZip saves workdir to CBZ archive.
|
||||
func (c *Convertor) archiveSaveZip(fileName string) error {
|
||||
func (c *Converter) archiveSaveZip(fileName string) error {
|
||||
if c.OnCompress != nil {
|
||||
c.OnCompress()
|
||||
}
|
||||
@@ -97,7 +97,7 @@ func (c *Convertor) archiveSaveZip(fileName string) error {
|
||||
}
|
||||
|
||||
// archiveSaveTar saves workdir to CBT archive.
|
||||
func (c *Convertor) archiveSaveTar(fileName string) error {
|
||||
func (c *Converter) archiveSaveTar(fileName string) error {
|
||||
if c.OnCompress != nil {
|
||||
c.OnCompress()
|
||||
}
|
||||
@@ -170,7 +170,7 @@ func (c *Convertor) archiveSaveTar(fileName string) error {
|
||||
}
|
||||
|
||||
// archiveList lists contents of archive.
|
||||
func (c *Convertor) archiveList(fileName string) ([]string, error) {
|
||||
func (c *Converter) archiveList(fileName string) ([]string, error) {
|
||||
var contents []string
|
||||
|
||||
archive, err := unarr.NewArchive(fileName)
|
||||
@@ -188,7 +188,7 @@ func (c *Convertor) archiveList(fileName string) ([]string, error) {
|
||||
}
|
||||
|
||||
// archiveComment returns ZIP comment.
|
||||
func (c *Convertor) archiveComment(fileName string) (string, error) {
|
||||
func (c *Converter) archiveComment(fileName string) (string, error) {
|
||||
zr, err := zip.OpenReader(fileName)
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("archiveComment: %w", err)
|
||||
@@ -199,7 +199,7 @@ func (c *Convertor) archiveComment(fileName string) (string, error) {
|
||||
}
|
||||
|
||||
// archiveSetComment sets ZIP comment.
|
||||
func (c *Convertor) archiveSetComment(fileName, commentBody string) error {
|
||||
func (c *Converter) archiveSetComment(fileName, commentBody string) error {
|
||||
zr, err := zip.OpenReader(fileName)
|
||||
if err != nil {
|
||||
return fmt.Errorf("archiveSetComment: %w", err)
|
||||
@@ -263,7 +263,7 @@ func (c *Convertor) archiveSetComment(fileName, commentBody string) error {
|
||||
}
|
||||
|
||||
// archiveFileAdd adds file to archive.
|
||||
func (c *Convertor) archiveFileAdd(fileName, newFileName string) error {
|
||||
func (c *Converter) archiveFileAdd(fileName, newFileName string) error {
|
||||
zr, err := zip.OpenReader(fileName)
|
||||
if err != nil {
|
||||
return fmt.Errorf("archiveFileAdd: %w", err)
|
||||
@@ -353,7 +353,7 @@ func (c *Convertor) archiveFileAdd(fileName, newFileName string) error {
|
||||
}
|
||||
|
||||
// archiveFileRemove removes files from archive.
|
||||
func (c *Convertor) archiveFileRemove(fileName, pattern string) error {
|
||||
func (c *Converter) archiveFileRemove(fileName, pattern string) error {
|
||||
zr, err := zip.OpenReader(fileName)
|
||||
if err != nil {
|
||||
return fmt.Errorf("archiveFileRemove: %w", err)
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
diff -ur mupdf-1.23.3-source.orig/Makefile mupdf-1.23.3-source/Makefile
|
||||
--- mupdf-1.23.3-source.orig/Makefile 2023-09-05 13:51:19.000000000 +0200
|
||||
+++ mupdf-1.23.3-source/Makefile 2023-09-08 09:28:01.165486441 +0200
|
||||
@@ -3,7 +3,7 @@
|
||||
-include user.make
|
||||
|
||||
ifndef build
|
||||
- build := release
|
||||
+ build := debug
|
||||
endif
|
||||
|
||||
default: all
|
||||
@@ -290,17 +290,19 @@
|
||||
$(THREAD_LIB) : $(THREAD_OBJ)
|
||||
$(PKCS7_LIB) : $(PKCS7_OBJ)
|
||||
else
|
||||
-MUPDF_LIB = $(OUT)/libmupdf.a
|
||||
+MUPDF_LIB = libmupdf.so
|
||||
LIBS_TO_INSTALL_IN_LIB = $(MUPDF_LIB) $(THIRD_LIB)
|
||||
-THIRD_LIB = $(OUT)/libmupdf-third.a
|
||||
+THIRD_LIB =
|
||||
+MUPDF_STATIC = $(OUT)/libmupdf.a
|
||||
ifneq ($(USE_SYSTEM_GLUT),yes)
|
||||
THIRD_GLUT_LIB = $(OUT)/libmupdf-glut.a
|
||||
endif
|
||||
THREAD_LIB = $(OUT)/libmupdf-threads.a
|
||||
PKCS7_LIB = $(OUT)/libmupdf-pkcs7.a
|
||||
|
||||
-$(MUPDF_LIB) : $(MUPDF_OBJ)
|
||||
-$(THIRD_LIB) : $(THIRD_OBJ)
|
||||
+$(MUPDF_LIB) : $(MUPDF_OBJ) $(THIRD_OBJ)
|
||||
+ $(QUIET_LINK) $(CC) $(LDFLAGS) --shared -Wl,-soname -Wl,$(MUPDF_LIB) -o $@ $^ $(THIRD_LIBS) $(LIBS)
|
||||
+$(MUPDF_STATIC): $(MUPDF_OBJ) $(THIRD_OBJ)
|
||||
$(THIRD_GLUT_LIB) : $(THIRD_GLUT_OBJ)
|
||||
$(THREAD_LIB) : $(THREAD_OBJ)
|
||||
$(PKCS7_LIB) : $(PKCS7_OBJ)
|
||||
diff -ur mupdf-1.23.3-source.orig/Makethird mupdf-1.23.3-source/Makethird
|
||||
--- mupdf-1.23.3-source.orig/Makethird 2023-09-05 13:51:19.000000000 +0200
|
||||
+++ mupdf-1.23.3-source/Makethird 2023-09-08 01:16:56.785811250 +0200
|
||||
@@ -2,16 +2,16 @@
|
||||
|
||||
ifeq ($(USE_SYSTEM_LIBS),yes)
|
||||
USE_SYSTEM_FREETYPE := yes
|
||||
- USE_SYSTEM_GUMBO := yes
|
||||
+ USE_SYSTEM_GUMBO := no
|
||||
USE_SYSTEM_HARFBUZZ := yes
|
||||
- USE_SYSTEM_JBIG2DEC := yes
|
||||
+ USE_SYSTEM_JBIG2DEC := no
|
||||
USE_SYSTEM_JPEGXR := no # not available
|
||||
USE_SYSTEM_LCMS2 := no # lcms2mt is strongly preferred
|
||||
USE_SYSTEM_LIBJPEG := yes
|
||||
USE_SYSTEM_MUJS := no # not available
|
||||
- USE_SYSTEM_OPENJPEG := yes
|
||||
+ USE_SYSTEM_OPENJPEG := no
|
||||
USE_SYSTEM_ZLIB := yes
|
||||
- USE_SYSTEM_GLUT := yes
|
||||
+ USE_SYSTEM_GLUT := no
|
||||
USE_SYSTEM_CURL := yes
|
||||
USE_SYSTEM_LEPTONICA := yes
|
||||
USE_SYSTEM_TESSERACT := yes
|
||||
@@ -2,7 +2,7 @@
|
||||
Name=CBconvert
|
||||
GenericName=A Comic Book converter
|
||||
Comment=A comic converter with support for .cb*, .pdf, .xps, .epub, .mobi and directories
|
||||
Exec=cbconvert-gui
|
||||
Exec=cbconvert
|
||||
Icon=io.github.gen2brain.cbconvert
|
||||
Terminal=false
|
||||
Type=Application
|
||||
|
||||
+26
@@ -29,7 +29,33 @@
|
||||
<url type="homepage">https://github.com/gen2brain/cbconvert</url>
|
||||
<url type="bugtracker">https://github.com/gen2brain/cbconvert/issues</url>
|
||||
|
||||
<content_rating type="oars-1.1"/>
|
||||
|
||||
<releases>
|
||||
<release version="1.0.4" date="2024-02-08" type="stable">
|
||||
<description>
|
||||
<ul>
|
||||
<li>Update modules and dependencies</li>
|
||||
</ul>
|
||||
</description>
|
||||
<url type="details">https://github.com/gen2brain/cbconvert/releases/tag/v1.0.4</url>
|
||||
</release>
|
||||
<release version="1.0.3" date="2023-09-14" type="stable">
|
||||
<description>
|
||||
<ul>
|
||||
<li>Add content rating</li>
|
||||
</ul>
|
||||
</description>
|
||||
<url type="details">https://github.com/gen2brain/cbconvert/releases/tag/v1.0.3</url>
|
||||
</release>
|
||||
<release version="1.0.2" date="2023-09-14" type="stable">
|
||||
<description>
|
||||
<ul>
|
||||
<li>Change flatpak exec/command name to cbconvert</li>
|
||||
</ul>
|
||||
</description>
|
||||
<url type="details">https://github.com/gen2brain/cbconvert/releases/tag/v1.0.2</url>
|
||||
</release>
|
||||
<release version="1.0.1" date="2023-09-14" type="stable">
|
||||
<description>
|
||||
<ul>
|
||||
|
||||
@@ -1,369 +0,0 @@
|
||||
app-id: io.github.gen2brain.cbconvert
|
||||
runtime: org.freedesktop.Platform
|
||||
runtime-version: '23.08'
|
||||
sdk: org.freedesktop.Sdk
|
||||
sdk-extensions:
|
||||
- org.freedesktop.Sdk.Extension.golang
|
||||
|
||||
command: cbconvert-gui
|
||||
|
||||
finish-args:
|
||||
- --share=ipc
|
||||
- --socket=x11
|
||||
|
||||
build-options:
|
||||
env:
|
||||
- GOROOT=/usr/lib/sdk/golang
|
||||
|
||||
cleanup:
|
||||
- '*.a'
|
||||
- '*.la'
|
||||
- '/bin/Magick*'
|
||||
- '/etc'
|
||||
- '/include'
|
||||
- '/lib/cmake'
|
||||
- '/lib/pkgconfig'
|
||||
- '/lib/ImageMagick*'
|
||||
- '/share'
|
||||
|
||||
modules:
|
||||
|
||||
- name: libheif
|
||||
buildsystem: autotools
|
||||
config-opts:
|
||||
- --enable-shared
|
||||
- --disable-static
|
||||
- --disable-libde265
|
||||
- --disable-dav1d
|
||||
- --disable-go
|
||||
- --disable-gdk-pixbuf
|
||||
- --disable-rav1e
|
||||
- --disable-x265
|
||||
- --disable-tests
|
||||
- --disable-examples
|
||||
sources:
|
||||
- type: archive
|
||||
url: https://github.com/strukturag/libheif/releases/download/v1.15.2/libheif-1.15.2.tar.gz
|
||||
sha256: 7a4c6077f45180926583e2087571371bdd9cb21b6e6fada85a6fbd544f26a0e2
|
||||
|
||||
- name: highway
|
||||
buildsystem: cmake
|
||||
config-opts:
|
||||
- -DBUILD_SHARED_LIBS=ON
|
||||
- -DHWY_ENABLE_TESTS=OFF
|
||||
- -DHWY_ENABLE_EXAMPLES=OFF
|
||||
- -DHWY_WARNINGS_ARE_ERRORS=OFF
|
||||
sources:
|
||||
- type: archive
|
||||
url: https://github.com/google/highway/archive/refs/tags/1.0.7.tar.gz
|
||||
sha256: 5434488108186c170a5e2fca5e3c9b6ef59a1caa4d520b008a9b8be6b8abe6c5
|
||||
|
||||
- name: libjxl
|
||||
buildsystem: cmake
|
||||
config-opts:
|
||||
- -DBUILD_SHARED_LIBS=ON
|
||||
- -DJPEGXL_ENABLE_BENCHMARK=OFF
|
||||
- -DJPEGXL_ENABLE_COVERAGE=OFF
|
||||
- -DJPEGXL_ENABLE_FUZZERS=OFF
|
||||
- -DJPEGXL_ENABLE_SJPEG=OFF
|
||||
- -DJPEGXL_WARNINGS_AS_ERRORS=OFF
|
||||
- -DJPEGXL_ENABLE_SKCMS=OFF
|
||||
- -DJPEGXL_ENABLE_VIEWERS=OFF
|
||||
- -DJPEGXL_ENABLE_PLUGINS=OFF
|
||||
- -DJPEGXL_ENABLE_DOXYGEN=OFF
|
||||
- -DJPEGXL_ENABLE_MANPAGES=OFF
|
||||
- -DJPEGXL_ENABLE_JNI=OFF
|
||||
- -DJPEGXL_ENABLE_JPEGLI_LIBJPEG=OFF
|
||||
- -DJPEGXL_ENABLE_TCMALLOC=OFF
|
||||
- -DJPEGXL_ENABLE_EXAMPLES=OFF
|
||||
- -DJPEGXL_ENABLE_TOOLS=OFF
|
||||
- -DJPEGXL_ENABLE_OPENEXR=OFF
|
||||
- -DBUILD_TESTING=OFF
|
||||
- -DJPEGXL_FORCE_SYSTEM_BROTLI=ON
|
||||
- -DJPEGXL_FORCE_SYSTEM_LCMS2=ON
|
||||
sources:
|
||||
- type: archive
|
||||
url: https://github.com/libjxl/libjxl/archive/refs/tags/v0.8.2.tar.gz
|
||||
sha256: c70916fb3ed43784eb840f82f05d390053a558e2da106e40863919238fa7b420
|
||||
|
||||
- name: ImageMagick
|
||||
buildsystem: autotools
|
||||
config-opts:
|
||||
- --enable-shared
|
||||
- --disable-static
|
||||
- --enable-zero-configuration
|
||||
- --without-frozenpaths
|
||||
- --without-utilities
|
||||
- --without-modules
|
||||
- --without-magick-plus-plus
|
||||
- --without-perl
|
||||
- --without-bzlib
|
||||
- --without-x
|
||||
- --without-zip
|
||||
- --without-dps
|
||||
- --without-djvu
|
||||
- --without-autotrace
|
||||
- --without-fftw
|
||||
- --without-fpx
|
||||
- --without-fontconfig
|
||||
- --without-freetype
|
||||
- --without-gslib
|
||||
- --without-gvc
|
||||
- --without-jbig
|
||||
- --without-openjp2
|
||||
- --without-lcms
|
||||
- --without-lqr
|
||||
- --without-lzma
|
||||
- --without-openexr
|
||||
- --without-pango
|
||||
- --without-raw
|
||||
- --without-rsvg
|
||||
- --without-wmf
|
||||
- --without-xml
|
||||
- --disable-hdri
|
||||
- --disable-opencl
|
||||
- --disable-openmp
|
||||
- --with-jpeg
|
||||
- --with-png
|
||||
- --with-tiff
|
||||
- --with-webp
|
||||
- --with-heic
|
||||
- --with-jxl
|
||||
sources:
|
||||
- type: archive
|
||||
url: https://github.com/ImageMagick/ImageMagick/archive/refs/tags/7.1.1-15.tar.gz
|
||||
sha256: 2372192a76af9be43c0543dd7ae6dfbf34b11fc0203583453ce3f9f707c36bcc
|
||||
|
||||
- name: MuPDF
|
||||
buildsystem: simple
|
||||
build-commands:
|
||||
- HAVE_X11=no HAVE_LIBCRYPTO=no HAVE_GLUT=no HAVE_OBJCOPY=no USE_SYSTEM_LIBS=yes build=debug shared=yes tofu=yes tofu_cjk=yes make libs
|
||||
- install -Dm00755 build/shared-debug-tofu-tofu_cjk/libmupdf.so $FLATPAK_DEST/lib/debug/lib/libmupdf.so.debug
|
||||
- install -dm00755 $FLATPAK_DEST/lib/debug/source/mupdf/source
|
||||
- cp -r source $FLATPAK_DEST/lib/debug/source/mupdf
|
||||
- cp -r include/mupdf $FLATPAK_DEST/include/
|
||||
- install -Dsm00755 build/shared-debug-tofu-tofu_cjk/libmupdf.so $FLATPAK_DEST/lib/libmupdf.so
|
||||
sources:
|
||||
- type: archive
|
||||
url: https://mupdf.com/downloads/archive/mupdf-1.23.3-source.tar.gz
|
||||
sha256: 1ef9a6409bc0a3271586e1b16f78eb156a579521cd212a124b57c4da8b940aad
|
||||
- type: patch
|
||||
path: 01-mupdf-shared.patch
|
||||
|
||||
- name: CBconvert
|
||||
buildsystem: simple
|
||||
build-commands:
|
||||
- cp cmd/cbconvert-gui/dist/linux/flatpak/modules.txt cmd/cbconvert-gui/vendor/
|
||||
- cd cmd/cbconvert-gui && $GOROOT/bin/go build -mod=vendor -trimpath -tags "extlib portal" -ldflags "-s -w -X main.appVersion=1.0.1"
|
||||
- install -Dm00755 cmd/cbconvert-gui/cbconvert-gui $FLATPAK_DEST/bin/cbconvert-gui
|
||||
- install -Dm00644 cmd/cbconvert-gui/dist/linux/cbconvert.png $FLATPAK_DEST/share/icons/hicolor/256x256/apps/$FLATPAK_ID.png
|
||||
- install -Dm00644 cmd/cbconvert-gui/dist/linux/flatpak/$FLATPAK_ID.desktop $FLATPAK_DEST/share/applications/$FLATPAK_ID.desktop
|
||||
- install -Dm00644 cmd/cbconvert-gui/dist/linux/flatpak/$FLATPAK_ID.metainfo.xml $FLATPAK_DEST/share/metainfo/$FLATPAK_ID.metainfo.xml
|
||||
sources:
|
||||
- type: archive
|
||||
url: https://github.com/gen2brain/cbconvert/archive/refs/tags/v1.0.1.tar.gz
|
||||
sha256: 2ba51b3ef9cddeed8a64da34ee2d7a6cb931e50fb6f9c944c13c59cbcc5f33e2
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/github.com/gen2brain/cbconvert/@v/v1.0.1.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/github.com/gen2brain/cbconvert
|
||||
sha256: 57e0052fb89a7361e44f844dca0177f31935776f75ff799a3cc233e2260ef055
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/github.com/chai2010/webp/@v/v1.1.1.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/github.com/chai2010/webp
|
||||
sha256: f42fe1697007ea12155a5d1342d61787e1f34ca396192e4995dc4f2b350552ac
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/github.com/davecgh/go-spew/@v/v1.1.1.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/github.com/davecgh/go-spew
|
||||
sha256: 6b44a843951f371b7010c754ecc3cabefe815d5ced1c5b9409fb2d697e8a890d
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/github.com/disintegration/imaging/@v/v1.6.2.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/github.com/disintegration/imaging
|
||||
sha256: 2934e7bace3c8c0b1b4a07144197e8720b9ffbe922600e3a3c764f77792ac7c4
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/github.com/dustin/go-humanize/@v/v1.0.1.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/github.com/dustin/go-humanize
|
||||
sha256: 319404ea84c8a4e2d3d83f30988b006e7dd04976de3e1a1a90484ad94679fa46
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/github.com/fvbommel/sortorder/@v/v1.1.0.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/github.com/fvbommel/sortorder
|
||||
sha256: a4dbc58d2f72212474a7b5e1894b11d6712b687f4cc66ca1f6e202a375d252f7
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/github.com/gen2brain/go-fitz/@v/v1.23.1.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/github.com/gen2brain/go-fitz
|
||||
sha256: 60fc98c3420d7f7347e7a454fdfd66bca960accc8ed0ac582f4b4d82b38513c8
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/github.com/gen2brain/go-unarr/@v/v0.1.7.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/github.com/gen2brain/go-unarr
|
||||
sha256: 6f3418edef461c2e1ce5ba77141d402b04d4cf86e89b27c5dc20c922ac63ca4e
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/github.com/gen2brain/iup-go/iup/@v/v0.0.0-20230906093706-8b037fe6a7bd.zip
|
||||
strip-components: 4
|
||||
dest: cmd/cbconvert-gui/vendor/github.com/gen2brain/iup-go/iup
|
||||
sha256: a75dbec0ce228214533ee971771233f8b57653828af04bc012f72b624b76be5d
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/github.com/godbus/dbus/v5/@v/v5.1.0.zip
|
||||
strip-components: 4
|
||||
dest: cmd/cbconvert-gui/vendor/github.com/godbus/dbus/v5
|
||||
sha256: 03dfa8e71089a6f477310d15c4d3a036d82d028532881b50fee254358e782ad9
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/github.com/google/uuid/@v/v1.3.1.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/github.com/google/uuid
|
||||
sha256: 9d9d6cfb28ce6dbe4b518c42c6bccd67bb531a106859808f36e82a5c3fb8c64d
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/github.com/k0kubun/go-ansi/@v/v0.0.0-20180517002512-3bf9e2903213.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/github.com/k0kubun/go-ansi
|
||||
sha256: 28366085f1787eaf9d6589f050455855f01caf559f2c6d1c4f4e590cd0abbdef
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/github.com/mattn/go-isatty/@v/v0.0.16.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/github.com/mattn/go-isatty
|
||||
sha256: 3d5ff19c4b2a2a164feb84f5cc38af349380c0c4a03d0443dce40bbd6ec3fd2b
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/github.com/mattn/go-runewidth/@v/v0.0.13.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/github.com/mattn/go-runewidth
|
||||
sha256: c104e14c1612a6d736bd109fe5fec9749a8146e1f7d37844d8a0a1296e00d4e9
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/github.com/mitchellh/colorstring/@v/v0.0.0-20190213212951-d06e56a500db.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/github.com/mitchellh/colorstring
|
||||
sha256: d0733284b20567055e374b420373f5508fa47e95204e59e4b8a66834e7e3964d
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/github.com/pmezard/go-difflib/@v/v1.0.0.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/github.com/pmezard/go-difflib
|
||||
sha256: de04cecc1a4b8d53e4357051026794bcbc54f2e6a260cfac508ce69d5d6457a0
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/github.com/rivo/uniseg/@v/v0.3.4.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/github.com/rivo/uniseg
|
||||
sha256: 410ba5034e1683946d68e7fd50ad793c2ad72b157f2959fe4719449666d1e63f
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/github.com/schollz/progressbar/v3/@v/v3.10.0.zip
|
||||
strip-components: 4
|
||||
dest: cmd/cbconvert-gui/vendor/github.com/schollz/progressbar/v3
|
||||
sha256: 2cdbf5e4bc314bf140911a923f22d5d9401d73f3b2c7311f6df5c2837d2743ba
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/github.com/spf13/pflag/@v/v1.0.5.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/github.com/spf13/pflag
|
||||
sha256: fc6e704f2f6a84ddcdce6de0404e5340fa20c8676181bf5d381b17888107ba84
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/github.com/stretchr/objx/@v/v0.1.0.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/github.com/stretchr/objx
|
||||
sha256: 1fa10dab404ed7fc8ed2a033f8784187d5df3513ced3841ce39e46d37850eb1d
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/github.com/stretchr/testify/@v/v1.3.0.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/github.com/stretchr/testify
|
||||
sha256: 8c935aed71cc334d5bfdf04b34909d9965cf28f80198dec13fb954dc292e6588
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/github.com/strukturag/libheif/@v/v1.15.2.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/github.com/strukturag/libheif
|
||||
sha256: bec8ad8e81d33d96b9ea8d11036a14ff4501b62f2cb79dbe49147a701c5c1d38
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/github.com/yuin/goldmark/@v/v1.4.13.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/github.com/yuin/goldmark
|
||||
sha256: bb41a602b174345fda392c8ad83fcc93217c285c763699677630be90feb7a5e3
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/golang.org/x/crypto/@v/v0.0.0-20210921155107-089bfa567519.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/golang.org/x/crypto
|
||||
sha256: eb2426a7891915213cc5da1da7b6fc6e9e2cf253d518d8e169e038e287f414e3
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/golang.org/x/image/@v/v0.12.0.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/golang.org/x/image
|
||||
sha256: eee2ea2f688c5bbe2a8ce36ba57f37573f5b63828560cd34f8621f0f8d07e6bd
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/golang.org/x/mod/@v/v0.8.0.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/golang.org/x/mod
|
||||
sha256: 4ae8176799d8cda819e70731ba6855735003e7e4930436e34584c75c96c496e0
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/golang.org/x/net/@v/v0.6.0.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/golang.org/x/net
|
||||
sha256: 7ff2f50b1f3a58833f867d1646421569a91d8c19a0999793c5af79b10c16b8b8
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/golang.org/x/sync/@v/v0.3.0.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/golang.org/x/sync
|
||||
sha256: 1870e7a196f7119d4c6edba7de9cdfc49ee13c8cb7921f3a947568171c6152e0
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/golang.org/x/sys/@v/v0.5.0.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/golang.org/x/sys
|
||||
sha256: cf47336ac1bf675fa6d6dd5ac5399b0143c513404c449fa3f3380a58123c7908
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/golang.org/x/term/@v/v0.5.0.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/golang.org/x/term
|
||||
sha256: 7d89c49ab41306950128a0f4b7c67fb8e2d2f637ece8e024e6cf38d17a33193b
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/golang.org/x/text/@v/v0.13.0.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/golang.org/x/text
|
||||
sha256: ed544fb017e967c053892df7b068612fce707ba32b57f35824cb041e31c6ae0f
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/golang.org/x/tools/@v/v0.6.0.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/golang.org/x/tools
|
||||
sha256: 9a29c8904c2acd4b65825e916cbdaf417086f35bb68c54af9a6283a0e1341e85
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/golang.org/x/xerrors/@v/v0.0.0-20190717185122-a985d3407aa7.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/golang.org/x/xerrors
|
||||
sha256: c4e9f063cfed546c90f00a9657deac4f915a8994f8cbe6dbd3f18e79eb8302cf
|
||||
|
||||
- type: archive
|
||||
url: https://proxy.golang.org/gopkg.in/gographics/imagick.v3/@v/v3.4.3.zip
|
||||
strip-components: 3
|
||||
dest: cmd/cbconvert-gui/vendor/gopkg.in/gographics/imagick.v3
|
||||
sha256: ae0a425a2ffcbe92447c5da005deff2c0aac1e25995c443b86ae4bd48861d9e1
|
||||
+72
-12
@@ -1,23 +1,32 @@
|
||||
# github.com/chai2010/webp v1.1.1
|
||||
## explicit; go 1.17
|
||||
github.com/chai2010/webp
|
||||
# git.sr.ht/~jackmordaunt/go-libwebp v1.1.0
|
||||
## explicit; go 1.21
|
||||
git.sr.ht/~jackmordaunt/go-libwebp/lib/common
|
||||
git.sr.ht/~jackmordaunt/go-libwebp/lib/dynamic/webp
|
||||
git.sr.ht/~jackmordaunt/go-libwebp/lib/transpiled/webp
|
||||
git.sr.ht/~jackmordaunt/go-libwebp/webp
|
||||
# github.com/disintegration/imaging v1.6.2
|
||||
## explicit
|
||||
github.com/disintegration/imaging
|
||||
# github.com/dustin/go-humanize v1.0.1
|
||||
## explicit; go 1.16
|
||||
github.com/dustin/go-humanize
|
||||
# github.com/ebitengine/purego v0.5.2
|
||||
## explicit; go 1.18
|
||||
github.com/ebitengine/purego
|
||||
github.com/ebitengine/purego/internal/cgo
|
||||
github.com/ebitengine/purego/internal/fakecgo
|
||||
github.com/ebitengine/purego/internal/strings
|
||||
# github.com/fvbommel/sortorder v1.1.0
|
||||
## explicit; go 1.13
|
||||
github.com/fvbommel/sortorder
|
||||
# github.com/gen2brain/cbconvert v1.0.0
|
||||
# github.com/gen2brain/cbconvert v1.0.4-0.20240208144735-a8084ed89758
|
||||
## explicit; go 1.21
|
||||
github.com/gen2brain/cbconvert
|
||||
# github.com/gen2brain/go-fitz v1.23.1
|
||||
# github.com/gen2brain/go-fitz v1.23.7
|
||||
## explicit; go 1.20
|
||||
github.com/gen2brain/go-fitz
|
||||
# github.com/gen2brain/go-unarr v0.1.7
|
||||
## explicit; go 1.18
|
||||
# github.com/gen2brain/go-unarr v0.2.0
|
||||
## explicit; go 1.19
|
||||
github.com/gen2brain/go-unarr
|
||||
github.com/gen2brain/go-unarr/unarrc
|
||||
# github.com/gen2brain/iup-go/iup v0.0.0-20230906093706-8b037fe6a7bd
|
||||
@@ -27,19 +36,70 @@ github.com/gen2brain/iup-go/iup/manifest
|
||||
# github.com/godbus/dbus/v5 v5.1.0
|
||||
## explicit; go 1.12
|
||||
github.com/godbus/dbus/v5
|
||||
# github.com/google/uuid v1.3.1
|
||||
# github.com/google/uuid v1.6.0
|
||||
## explicit
|
||||
github.com/google/uuid
|
||||
# golang.org/x/image v0.12.0
|
||||
# github.com/mattn/go-isatty v0.0.20
|
||||
## explicit; go 1.15
|
||||
github.com/mattn/go-isatty
|
||||
# github.com/ncruces/go-strftime v0.1.9
|
||||
## explicit; go 1.17
|
||||
github.com/ncruces/go-strftime
|
||||
# github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
|
||||
## explicit; go 1.12
|
||||
github.com/remyoudompheng/bigfft
|
||||
# golang.org/x/image v0.15.0
|
||||
## explicit; go 1.18
|
||||
golang.org/x/image/bmp
|
||||
golang.org/x/image/ccitt
|
||||
golang.org/x/image/riff
|
||||
golang.org/x/image/tiff
|
||||
golang.org/x/image/tiff/lzw
|
||||
# golang.org/x/sync v0.3.0
|
||||
## explicit; go 1.17
|
||||
golang.org/x/image/vp8
|
||||
golang.org/x/image/vp8l
|
||||
golang.org/x/image/webp
|
||||
# golang.org/x/sync v0.6.0
|
||||
## explicit; go 1.18
|
||||
golang.org/x/sync/errgroup
|
||||
# gopkg.in/gographics/imagick.v3 v3.4.3
|
||||
# golang.org/x/sys v0.17.0
|
||||
## explicit; go 1.18
|
||||
golang.org/x/sys/unix
|
||||
golang.org/x/sys/windows
|
||||
# gopkg.in/gographics/imagick.v3 v3.5.1
|
||||
## explicit; go 1.13
|
||||
gopkg.in/gographics/imagick.v3/imagick
|
||||
gopkg.in/gographics/imagick.v3/imagick/types
|
||||
# modernc.org/libc v1.41.0
|
||||
## explicit; go 1.20
|
||||
modernc.org/libc
|
||||
modernc.org/libc/errno
|
||||
modernc.org/libc/fcntl
|
||||
modernc.org/libc/fts
|
||||
modernc.org/libc/grp
|
||||
modernc.org/libc/honnef.co/go/netdb
|
||||
modernc.org/libc/langinfo
|
||||
modernc.org/libc/limits
|
||||
modernc.org/libc/netdb
|
||||
modernc.org/libc/netinet/in
|
||||
modernc.org/libc/poll
|
||||
modernc.org/libc/pthread
|
||||
modernc.org/libc/pwd
|
||||
modernc.org/libc/signal
|
||||
modernc.org/libc/stdio
|
||||
modernc.org/libc/stdlib
|
||||
modernc.org/libc/sys/socket
|
||||
modernc.org/libc/sys/stat
|
||||
modernc.org/libc/sys/types
|
||||
modernc.org/libc/termios
|
||||
modernc.org/libc/time
|
||||
modernc.org/libc/unistd
|
||||
modernc.org/libc/utime
|
||||
modernc.org/libc/uuid
|
||||
modernc.org/libc/uuid/uuid
|
||||
modernc.org/libc/wctype
|
||||
# modernc.org/mathutil v1.6.0
|
||||
## explicit; go 1.18
|
||||
modernc.org/mathutil
|
||||
# modernc.org/memory v1.7.2
|
||||
## explicit; go 1.18
|
||||
modernc.org/memory
|
||||
|
||||
@@ -3,20 +3,28 @@ module github.com/gen2brain/cbconvert/cmd/cbconvert-gui
|
||||
go 1.21
|
||||
|
||||
require (
|
||||
github.com/gen2brain/cbconvert v1.0.0
|
||||
github.com/gen2brain/cbconvert v1.0.4-0.20240208144735-a8084ed89758
|
||||
github.com/gen2brain/iup-go/iup v0.0.0-20230906093706-8b037fe6a7bd
|
||||
github.com/godbus/dbus/v5 v5.1.0
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/chai2010/webp v1.1.1 // indirect
|
||||
git.sr.ht/~jackmordaunt/go-libwebp v1.1.0 // indirect
|
||||
github.com/disintegration/imaging v1.6.2 // indirect
|
||||
github.com/dustin/go-humanize v1.0.1 // indirect
|
||||
github.com/ebitengine/purego v0.5.2 // indirect
|
||||
github.com/fvbommel/sortorder v1.1.0 // indirect
|
||||
github.com/gen2brain/go-fitz v1.23.1 // indirect
|
||||
github.com/gen2brain/go-unarr v0.1.7 // indirect
|
||||
github.com/google/uuid v1.3.1 // indirect
|
||||
golang.org/x/image v0.12.0 // indirect
|
||||
golang.org/x/sync v0.3.0 // indirect
|
||||
gopkg.in/gographics/imagick.v3 v3.4.3 // indirect
|
||||
github.com/gen2brain/go-fitz v1.23.7 // indirect
|
||||
github.com/gen2brain/go-unarr v0.2.0 // indirect
|
||||
github.com/google/uuid v1.6.0 // indirect
|
||||
github.com/mattn/go-isatty v0.0.20 // indirect
|
||||
github.com/ncruces/go-strftime v0.1.9 // indirect
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
||||
golang.org/x/image v0.15.0 // indirect
|
||||
golang.org/x/sync v0.6.0 // indirect
|
||||
golang.org/x/sys v0.17.0 // indirect
|
||||
gopkg.in/gographics/imagick.v3 v3.5.1 // indirect
|
||||
modernc.org/libc v1.41.0 // indirect
|
||||
modernc.org/mathutil v1.6.0 // indirect
|
||||
modernc.org/memory v1.7.2 // indirect
|
||||
)
|
||||
|
||||
+33
-46
@@ -1,58 +1,45 @@
|
||||
github.com/chai2010/webp v1.1.1 h1:jTRmEccAJ4MGrhFOrPMpNGIJ/eybIgwKpcACsrTEapk=
|
||||
github.com/chai2010/webp v1.1.1/go.mod h1:0XVwvZWdjjdxpUEIf7b9g9VkHFnInUSYujwqTLEuldU=
|
||||
git.sr.ht/~jackmordaunt/go-libwebp v1.1.0 h1:rfDv89tb6OuNp8f1TyprOZWaeC/TxqaYvLCI6nHKBY8=
|
||||
git.sr.ht/~jackmordaunt/go-libwebp v1.1.0/go.mod h1:8557wZRj8KWRPBM+osAuAXVVR5nVURZ3SCG5rnACBdE=
|
||||
github.com/disintegration/imaging v1.6.2 h1:w1LecBlG2Lnp8B3jk5zSuNqd7b4DXhcjwek1ei82L+c=
|
||||
github.com/disintegration/imaging v1.6.2/go.mod h1:44/5580QXChDfwIclfc/PCwrr44amcmDAg8hxG0Ewe4=
|
||||
github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
|
||||
github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
|
||||
github.com/ebitengine/purego v0.5.2 h1:r2MQEtkGzZ4LRtFZVAg5bjYKnUbxxloaeuGxH0t7qfs=
|
||||
github.com/ebitengine/purego v0.5.2/go.mod h1:ah1In8AOtksoNK6yk5z1HTJeUkC1Ez4Wk2idgGslMwQ=
|
||||
github.com/fvbommel/sortorder v1.1.0 h1:fUmoe+HLsBTctBDoaBwpQo5N+nrCp8g/BjKb/6ZQmYw=
|
||||
github.com/fvbommel/sortorder v1.1.0/go.mod h1:uk88iVf1ovNn1iLfgUVU2F9o5eO30ui720w+kxuqRs0=
|
||||
github.com/gen2brain/cbconvert v1.0.0 h1:6szCltgrC/Vq+XuknuGKjS6E1J5zRLmqCnHXnvALCvY=
|
||||
github.com/gen2brain/cbconvert v1.0.0/go.mod h1:3zoSNHGpunxvS5cXpge9XwU585Zxsr4ly13dryeQCGk=
|
||||
github.com/gen2brain/go-fitz v1.23.1 h1:x69/szWZXpI3jZ57mMqCg7WqqvtYnQG0lXts3L6M1Fc=
|
||||
github.com/gen2brain/go-fitz v1.23.1/go.mod h1:HU04vc+RisUh/kvEd2pB0LAxmK1oyXdN4ftyshUr9rQ=
|
||||
github.com/gen2brain/go-unarr v0.1.7 h1:mEE7bPShJIsmAX67t6BW2ibpEUO7j5WK152KgNM9NbQ=
|
||||
github.com/gen2brain/go-unarr v0.1.7/go.mod h1:MK9a3hddpaIxjEtrE1f/LA5yJ7gA34cS7Oyr325sY9s=
|
||||
github.com/gen2brain/cbconvert v1.0.4-0.20240208144735-a8084ed89758 h1:VXWir2Nq5qkXuIeoCTavOlQ7j2Yab0vIJe1mvKsLe3I=
|
||||
github.com/gen2brain/cbconvert v1.0.4-0.20240208144735-a8084ed89758/go.mod h1:jtc/vKGuG66vIemtQc6Ge69FXo33hX+gFvGtEP/z/SM=
|
||||
github.com/gen2brain/go-fitz v1.23.7 h1:HPhzEVzmOINvCKqQgB/DwMzYh4ArIgy3tMwq1eJTcbg=
|
||||
github.com/gen2brain/go-fitz v1.23.7/go.mod h1:HU04vc+RisUh/kvEd2pB0LAxmK1oyXdN4ftyshUr9rQ=
|
||||
github.com/gen2brain/go-unarr v0.2.0 h1:sYKSjbeNSuZgudd59iGAbMbr113XRFoA7Rt9XWA+QVE=
|
||||
github.com/gen2brain/go-unarr v0.2.0/go.mod h1:hoHheVuf0KT8/hfvkEL7GMwj2h7fq0lF72NdyySdr3c=
|
||||
github.com/gen2brain/iup-go/iup v0.0.0-20230906093706-8b037fe6a7bd h1:k1EaRqSEu/2eahOBY44uYZevryE1HQBz0t7RYCufnHI=
|
||||
github.com/gen2brain/iup-go/iup v0.0.0-20230906093706-8b037fe6a7bd/go.mod h1:HeMeojpQFldBWCMmU5dkmU640AdEcS+SPyEVLMJjjrw=
|
||||
github.com/godbus/dbus/v5 v5.1.0 h1:4KLkAxT3aOY8Li4FRJe/KvhoNFFxo0m6fNuFUO8QJUk=
|
||||
github.com/godbus/dbus/v5 v5.1.0/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
|
||||
github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4=
|
||||
github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
|
||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
|
||||
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
|
||||
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
|
||||
github.com/ncruces/go-strftime v0.1.9 h1:bY0MQC28UADQmHmaF5dgpLmImcShSi2kHU9XLdhx/f4=
|
||||
github.com/ncruces/go-strftime v0.1.9/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJmn9CehxcKcls=
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE=
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
|
||||
golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
|
||||
golang.org/x/image v0.12.0 h1:w13vZbU4o5rKOFFR8y7M+c4A5jXDC0uXTdHYRP8X2DQ=
|
||||
golang.org/x/image v0.12.0/go.mod h1:Lu90jvHG7GfemOIcldsh9A2hS01ocl6oNO7ype5mEnk=
|
||||
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
|
||||
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
||||
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
|
||||
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
|
||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E=
|
||||
golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y=
|
||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
||||
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
|
||||
golang.org/x/image v0.15.0 h1:kOELfmgrmJlw4Cdb7g/QGuB3CvDrXbqEIww/pNtNBm8=
|
||||
golang.org/x/image v0.15.0/go.mod h1:HUYqC05R2ZcZ3ejNQsIHQDQiwWM4JBqmm6MKANTp4LE=
|
||||
golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ=
|
||||
golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
|
||||
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.17.0 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y=
|
||||
golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
||||
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
|
||||
golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
|
||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
|
||||
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
gopkg.in/gographics/imagick.v3 v3.4.3 h1:9plKFE/Us913jBN6KohtLG9FNW8LPvfpjiGAORIiEHg=
|
||||
gopkg.in/gographics/imagick.v3 v3.4.3/go.mod h1:+Q9nyA2xRZXrDyTtJ/eko+8V/5E7bWYs08ndkZp8UmA=
|
||||
gopkg.in/gographics/imagick.v3 v3.5.1 h1:58JqK0UCx5RfvbRggF5FKuK6jHwAtTQopUxK8mzFa40=
|
||||
gopkg.in/gographics/imagick.v3 v3.5.1/go.mod h1:+Q9nyA2xRZXrDyTtJ/eko+8V/5E7bWYs08ndkZp8UmA=
|
||||
modernc.org/libc v1.41.0 h1:g9YAc6BkKlgORsUWj+JwqoB1wU3o4DE3bM3yvA3k+Gk=
|
||||
modernc.org/libc v1.41.0/go.mod h1:w0eszPsiXoOnoMJgrXjglgLuDy/bt5RR4y3QzUUeodY=
|
||||
modernc.org/mathutil v1.6.0 h1:fRe9+AmYlaej+64JsEEhoWuAYBkOtQiMEU7n/XgfYi4=
|
||||
modernc.org/mathutil v1.6.0/go.mod h1:Ui5Q9q1TR2gFm0AQRqQUaBWFLAhQpCwNcuhBOSedWPo=
|
||||
modernc.org/memory v1.7.2 h1:Klh90S215mmH8c9gO98QxQFsY+W451E8AnzjoE2ee1E=
|
||||
modernc.org/memory v1.7.2/go.mod h1:NO4NVCQy0N7ln+T9ngWqOQfi7ley4vpwvARR+Hjw95E=
|
||||
|
||||
@@ -680,7 +680,7 @@ func status() iup.Ihandle {
|
||||
SetCallback("POSTMESSAGE_CB", iup.PostMessageFunc(func(ih iup.Ihandle, s string, i int, p any) int {
|
||||
switch s {
|
||||
case "convert":
|
||||
conv := p.(*cbconvert.Convertor)
|
||||
conv := p.(*cbconvert.Converter)
|
||||
ih.SetAttributes("VALUE=0, VISIBLE=YES")
|
||||
ih.SetAttribute("MAX", conv.Ncontents)
|
||||
|
||||
@@ -694,7 +694,7 @@ func status() iup.Ihandle {
|
||||
|
||||
iup.Refresh(iup.GetHandle("StatusBar"))
|
||||
case "start":
|
||||
conv := p.(*cbconvert.Convertor)
|
||||
conv := p.(*cbconvert.Converter)
|
||||
ih.SetAttributes("VALUE=0, VISIBLE=YES")
|
||||
ih.SetAttribute("MAX", conv.Nfiles)
|
||||
|
||||
@@ -704,13 +704,13 @@ func status() iup.Ihandle {
|
||||
|
||||
iup.GetHandle("LabelStatus2").SetAttributes("VISIBLE=YES")
|
||||
case "progress":
|
||||
conv := p.(*cbconvert.Convertor)
|
||||
conv := p.(*cbconvert.Converter)
|
||||
ih.SetAttribute("VALUE", conv.CurrContent)
|
||||
iup.GetHandle("LabelStatus2").SetAttribute("TITLE", fmt.Sprintf("(%03d/%03d)", conv.CurrContent, conv.Ncontents))
|
||||
|
||||
iup.Refresh(iup.GetHandle("StatusBar"))
|
||||
case "progress2":
|
||||
conv := p.(*cbconvert.Convertor)
|
||||
conv := p.(*cbconvert.Converter)
|
||||
ih.SetAttribute("VALUE", conv.CurrFile)
|
||||
iup.GetHandle("LabelStatus2").SetAttribute("TITLE", fmt.Sprintf("(%03d/%03d)", conv.CurrFile, conv.Nfiles))
|
||||
|
||||
@@ -857,7 +857,7 @@ func onThumbnail(ih iup.Ihandle) int {
|
||||
|
||||
iup.PostMessage(iup.GetHandle("ProgressBar"), "start", 0, conv)
|
||||
|
||||
go func(c *cbconvert.Convertor) {
|
||||
go func(c *cbconvert.Converter) {
|
||||
c.Initialize()
|
||||
defer c.Terminate()
|
||||
|
||||
@@ -903,7 +903,7 @@ func onCover(ih iup.Ihandle) int {
|
||||
|
||||
iup.PostMessage(iup.GetHandle("ProgressBar"), "start", 0, conv)
|
||||
|
||||
go func(c *cbconvert.Convertor) {
|
||||
go func(c *cbconvert.Converter) {
|
||||
c.Initialize()
|
||||
defer c.Terminate()
|
||||
|
||||
@@ -952,7 +952,7 @@ func onConvert(ih iup.Ihandle) int {
|
||||
return iup.DEFAULT
|
||||
}))
|
||||
|
||||
go func(c *cbconvert.Convertor) {
|
||||
go func(c *cbconvert.Converter) {
|
||||
c.Initialize()
|
||||
defer c.Terminate()
|
||||
|
||||
|
||||
+16
-8
@@ -3,24 +3,32 @@ module github.com/gen2brain/cbconvert/cmd/cbconvert
|
||||
go 1.21
|
||||
|
||||
require (
|
||||
github.com/gen2brain/cbconvert v1.0.0
|
||||
github.com/gen2brain/cbconvert v1.0.4-0.20240208144735-a8084ed89758
|
||||
github.com/schollz/progressbar/v3 v3.13.1
|
||||
github.com/spf13/pflag v1.0.5
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/chai2010/webp v1.1.1 // indirect
|
||||
git.sr.ht/~jackmordaunt/go-libwebp v1.1.0 // indirect
|
||||
github.com/disintegration/imaging v1.6.2 // indirect
|
||||
github.com/dustin/go-humanize v1.0.1 // indirect
|
||||
github.com/ebitengine/purego v0.5.2 // indirect
|
||||
github.com/fvbommel/sortorder v1.1.0 // indirect
|
||||
github.com/gen2brain/go-fitz v1.23.1 // indirect
|
||||
github.com/gen2brain/go-unarr v0.1.7 // indirect
|
||||
github.com/gen2brain/go-fitz v1.23.7 // indirect
|
||||
github.com/gen2brain/go-unarr v0.2.0 // indirect
|
||||
github.com/google/uuid v1.6.0 // indirect
|
||||
github.com/mattn/go-isatty v0.0.20 // indirect
|
||||
github.com/mattn/go-runewidth v0.0.15 // indirect
|
||||
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
|
||||
github.com/ncruces/go-strftime v0.1.9 // indirect
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
||||
github.com/rivo/uniseg v0.3.4 // indirect
|
||||
golang.org/x/image v0.12.0 // indirect
|
||||
golang.org/x/sync v0.3.0 // indirect
|
||||
golang.org/x/sys v0.6.0 // indirect
|
||||
golang.org/x/image v0.15.0 // indirect
|
||||
golang.org/x/sync v0.6.0 // indirect
|
||||
golang.org/x/sys v0.17.0 // indirect
|
||||
golang.org/x/term v0.6.0 // indirect
|
||||
gopkg.in/gographics/imagick.v3 v3.4.3 // indirect
|
||||
gopkg.in/gographics/imagick.v3 v3.5.1 // indirect
|
||||
modernc.org/libc v1.41.0 // indirect
|
||||
modernc.org/mathutil v1.6.0 // indirect
|
||||
modernc.org/memory v1.7.2 // indirect
|
||||
)
|
||||
|
||||
+32
-45
@@ -1,5 +1,5 @@
|
||||
github.com/chai2010/webp v1.1.1 h1:jTRmEccAJ4MGrhFOrPMpNGIJ/eybIgwKpcACsrTEapk=
|
||||
github.com/chai2010/webp v1.1.1/go.mod h1:0XVwvZWdjjdxpUEIf7b9g9VkHFnInUSYujwqTLEuldU=
|
||||
git.sr.ht/~jackmordaunt/go-libwebp v1.1.0 h1:rfDv89tb6OuNp8f1TyprOZWaeC/TxqaYvLCI6nHKBY8=
|
||||
git.sr.ht/~jackmordaunt/go-libwebp v1.1.0/go.mod h1:8557wZRj8KWRPBM+osAuAXVVR5nVURZ3SCG5rnACBdE=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
@@ -7,23 +7,33 @@ github.com/disintegration/imaging v1.6.2 h1:w1LecBlG2Lnp8B3jk5zSuNqd7b4DXhcjwek1
|
||||
github.com/disintegration/imaging v1.6.2/go.mod h1:44/5580QXChDfwIclfc/PCwrr44amcmDAg8hxG0Ewe4=
|
||||
github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
|
||||
github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
|
||||
github.com/ebitengine/purego v0.5.2 h1:r2MQEtkGzZ4LRtFZVAg5bjYKnUbxxloaeuGxH0t7qfs=
|
||||
github.com/ebitengine/purego v0.5.2/go.mod h1:ah1In8AOtksoNK6yk5z1HTJeUkC1Ez4Wk2idgGslMwQ=
|
||||
github.com/fvbommel/sortorder v1.1.0 h1:fUmoe+HLsBTctBDoaBwpQo5N+nrCp8g/BjKb/6ZQmYw=
|
||||
github.com/fvbommel/sortorder v1.1.0/go.mod h1:uk88iVf1ovNn1iLfgUVU2F9o5eO30ui720w+kxuqRs0=
|
||||
github.com/gen2brain/cbconvert v1.0.0 h1:6szCltgrC/Vq+XuknuGKjS6E1J5zRLmqCnHXnvALCvY=
|
||||
github.com/gen2brain/cbconvert v1.0.0/go.mod h1:3zoSNHGpunxvS5cXpge9XwU585Zxsr4ly13dryeQCGk=
|
||||
github.com/gen2brain/go-fitz v1.23.1 h1:x69/szWZXpI3jZ57mMqCg7WqqvtYnQG0lXts3L6M1Fc=
|
||||
github.com/gen2brain/go-fitz v1.23.1/go.mod h1:HU04vc+RisUh/kvEd2pB0LAxmK1oyXdN4ftyshUr9rQ=
|
||||
github.com/gen2brain/go-unarr v0.1.7 h1:mEE7bPShJIsmAX67t6BW2ibpEUO7j5WK152KgNM9NbQ=
|
||||
github.com/gen2brain/go-unarr v0.1.7/go.mod h1:MK9a3hddpaIxjEtrE1f/LA5yJ7gA34cS7Oyr325sY9s=
|
||||
github.com/gen2brain/cbconvert v1.0.4-0.20240208144735-a8084ed89758 h1:VXWir2Nq5qkXuIeoCTavOlQ7j2Yab0vIJe1mvKsLe3I=
|
||||
github.com/gen2brain/cbconvert v1.0.4-0.20240208144735-a8084ed89758/go.mod h1:jtc/vKGuG66vIemtQc6Ge69FXo33hX+gFvGtEP/z/SM=
|
||||
github.com/gen2brain/go-fitz v1.23.7 h1:HPhzEVzmOINvCKqQgB/DwMzYh4ArIgy3tMwq1eJTcbg=
|
||||
github.com/gen2brain/go-fitz v1.23.7/go.mod h1:HU04vc+RisUh/kvEd2pB0LAxmK1oyXdN4ftyshUr9rQ=
|
||||
github.com/gen2brain/go-unarr v0.2.0 h1:sYKSjbeNSuZgudd59iGAbMbr113XRFoA7Rt9XWA+QVE=
|
||||
github.com/gen2brain/go-unarr v0.2.0/go.mod h1:hoHheVuf0KT8/hfvkEL7GMwj2h7fq0lF72NdyySdr3c=
|
||||
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
|
||||
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/k0kubun/go-ansi v0.0.0-20180517002512-3bf9e2903213/go.mod h1:vNUNkEQ1e29fT/6vq2aBdFsgNPmy8qMdSay1npru+Sw=
|
||||
github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
|
||||
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
|
||||
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
|
||||
github.com/mattn/go-runewidth v0.0.14/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
|
||||
github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U=
|
||||
github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
|
||||
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db h1:62I3jR2EmQ4l5rM/4FEfDWcRD+abF5XlKShorW5LRoQ=
|
||||
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db/go.mod h1:l0dey0ia/Uv7NcFFVbCLtqEBQbrT4OCwCSKTEv6enCw=
|
||||
github.com/ncruces/go-strftime v0.1.9 h1:bY0MQC28UADQmHmaF5dgpLmImcShSi2kHU9XLdhx/f4=
|
||||
github.com/ncruces/go-strftime v0.1.9/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJmn9CehxcKcls=
|
||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE=
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
|
||||
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
|
||||
github.com/rivo/uniseg v0.3.4 h1:3Z3Eu6FGHZWSfNKJTOUiPatWwfc7DzJRU04jFUqJODw=
|
||||
github.com/rivo/uniseg v0.3.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
|
||||
@@ -34,46 +44,23 @@ github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
|
||||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
|
||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||
golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
|
||||
golang.org/x/image v0.12.0 h1:w13vZbU4o5rKOFFR8y7M+c4A5jXDC0uXTdHYRP8X2DQ=
|
||||
golang.org/x/image v0.12.0/go.mod h1:Lu90jvHG7GfemOIcldsh9A2hS01ocl6oNO7ype5mEnk=
|
||||
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
|
||||
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
||||
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
|
||||
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
|
||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E=
|
||||
golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y=
|
||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/image v0.15.0 h1:kOELfmgrmJlw4Cdb7g/QGuB3CvDrXbqEIww/pNtNBm8=
|
||||
golang.org/x/image v0.15.0/go.mod h1:HUYqC05R2ZcZ3ejNQsIHQDQiwWM4JBqmm6MKANTp4LE=
|
||||
golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ=
|
||||
golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
|
||||
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
|
||||
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
||||
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
|
||||
golang.org/x/sys v0.17.0 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y=
|
||||
golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=
|
||||
golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
||||
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
|
||||
golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
|
||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
|
||||
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
gopkg.in/gographics/imagick.v3 v3.4.3 h1:9plKFE/Us913jBN6KohtLG9FNW8LPvfpjiGAORIiEHg=
|
||||
gopkg.in/gographics/imagick.v3 v3.4.3/go.mod h1:+Q9nyA2xRZXrDyTtJ/eko+8V/5E7bWYs08ndkZp8UmA=
|
||||
gopkg.in/gographics/imagick.v3 v3.5.1 h1:58JqK0UCx5RfvbRggF5FKuK6jHwAtTQopUxK8mzFa40=
|
||||
gopkg.in/gographics/imagick.v3 v3.5.1/go.mod h1:+Q9nyA2xRZXrDyTtJ/eko+8V/5E7bWYs08ndkZp8UmA=
|
||||
modernc.org/libc v1.41.0 h1:g9YAc6BkKlgORsUWj+JwqoB1wU3o4DE3bM3yvA3k+Gk=
|
||||
modernc.org/libc v1.41.0/go.mod h1:w0eszPsiXoOnoMJgrXjglgLuDy/bt5RR4y3QzUUeodY=
|
||||
modernc.org/mathutil v1.6.0 h1:fRe9+AmYlaej+64JsEEhoWuAYBkOtQiMEU7n/XgfYi4=
|
||||
modernc.org/mathutil v1.6.0/go.mod h1:Ui5Q9q1TR2gFm0AQRqQUaBWFLAhQpCwNcuhBOSedWPo=
|
||||
modernc.org/memory v1.7.2 h1:Klh90S215mmH8c9gO98QxQFsY+W451E8AnzjoE2ee1E=
|
||||
modernc.org/memory v1.7.2/go.mod h1:NO4NVCQy0N7ln+T9ngWqOQfi7ley4vpwvARR+Hjw95E=
|
||||
|
||||
@@ -3,13 +3,24 @@ module github.com/gen2brain/cbconvert
|
||||
go 1.21
|
||||
|
||||
require (
|
||||
github.com/chai2010/webp v1.1.1
|
||||
git.sr.ht/~jackmordaunt/go-libwebp v1.1.0
|
||||
github.com/disintegration/imaging v1.6.2
|
||||
github.com/dustin/go-humanize v1.0.1
|
||||
github.com/fvbommel/sortorder v1.1.0
|
||||
github.com/gen2brain/go-fitz v1.23.1
|
||||
github.com/gen2brain/go-unarr v0.1.7
|
||||
golang.org/x/image v0.12.0
|
||||
golang.org/x/sync v0.3.0
|
||||
gopkg.in/gographics/imagick.v3 v3.4.3
|
||||
github.com/gen2brain/go-fitz v1.23.7
|
||||
github.com/gen2brain/go-unarr v0.2.0
|
||||
golang.org/x/image v0.15.0
|
||||
golang.org/x/sync v0.6.0
|
||||
gopkg.in/gographics/imagick.v3 v3.5.1
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/ebitengine/purego v0.5.1 // indirect
|
||||
github.com/google/uuid v1.3.1 // indirect
|
||||
github.com/mattn/go-isatty v0.0.20 // indirect
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
||||
golang.org/x/sys v0.13.0 // indirect
|
||||
modernc.org/libc v1.24.1 // indirect
|
||||
modernc.org/mathutil v1.6.0 // indirect
|
||||
modernc.org/memory v1.7.2 // indirect
|
||||
)
|
||||
|
||||
@@ -1,50 +1,37 @@
|
||||
github.com/chai2010/webp v1.1.1 h1:jTRmEccAJ4MGrhFOrPMpNGIJ/eybIgwKpcACsrTEapk=
|
||||
github.com/chai2010/webp v1.1.1/go.mod h1:0XVwvZWdjjdxpUEIf7b9g9VkHFnInUSYujwqTLEuldU=
|
||||
git.sr.ht/~jackmordaunt/go-libwebp v1.1.0 h1:rfDv89tb6OuNp8f1TyprOZWaeC/TxqaYvLCI6nHKBY8=
|
||||
git.sr.ht/~jackmordaunt/go-libwebp v1.1.0/go.mod h1:8557wZRj8KWRPBM+osAuAXVVR5nVURZ3SCG5rnACBdE=
|
||||
github.com/disintegration/imaging v1.6.2 h1:w1LecBlG2Lnp8B3jk5zSuNqd7b4DXhcjwek1ei82L+c=
|
||||
github.com/disintegration/imaging v1.6.2/go.mod h1:44/5580QXChDfwIclfc/PCwrr44amcmDAg8hxG0Ewe4=
|
||||
github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
|
||||
github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
|
||||
github.com/ebitengine/purego v0.5.1 h1:hNunhThpOf1vzKl49v6YxIsXLhl92vbBEv1/2Ez3ZrY=
|
||||
github.com/ebitengine/purego v0.5.1/go.mod h1:ah1In8AOtksoNK6yk5z1HTJeUkC1Ez4Wk2idgGslMwQ=
|
||||
github.com/fvbommel/sortorder v1.1.0 h1:fUmoe+HLsBTctBDoaBwpQo5N+nrCp8g/BjKb/6ZQmYw=
|
||||
github.com/fvbommel/sortorder v1.1.0/go.mod h1:uk88iVf1ovNn1iLfgUVU2F9o5eO30ui720w+kxuqRs0=
|
||||
github.com/gen2brain/go-fitz v1.23.1 h1:x69/szWZXpI3jZ57mMqCg7WqqvtYnQG0lXts3L6M1Fc=
|
||||
github.com/gen2brain/go-fitz v1.23.1/go.mod h1:HU04vc+RisUh/kvEd2pB0LAxmK1oyXdN4ftyshUr9rQ=
|
||||
github.com/gen2brain/go-unarr v0.1.7 h1:mEE7bPShJIsmAX67t6BW2ibpEUO7j5WK152KgNM9NbQ=
|
||||
github.com/gen2brain/go-unarr v0.1.7/go.mod h1:MK9a3hddpaIxjEtrE1f/LA5yJ7gA34cS7Oyr325sY9s=
|
||||
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
|
||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||
github.com/gen2brain/go-fitz v1.23.7 h1:HPhzEVzmOINvCKqQgB/DwMzYh4ArIgy3tMwq1eJTcbg=
|
||||
github.com/gen2brain/go-fitz v1.23.7/go.mod h1:HU04vc+RisUh/kvEd2pB0LAxmK1oyXdN4ftyshUr9rQ=
|
||||
github.com/gen2brain/go-unarr v0.2.0 h1:sYKSjbeNSuZgudd59iGAbMbr113XRFoA7Rt9XWA+QVE=
|
||||
github.com/gen2brain/go-unarr v0.2.0/go.mod h1:hoHheVuf0KT8/hfvkEL7GMwj2h7fq0lF72NdyySdr3c=
|
||||
github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4=
|
||||
github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
|
||||
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE=
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
|
||||
golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
|
||||
golang.org/x/image v0.12.0 h1:w13vZbU4o5rKOFFR8y7M+c4A5jXDC0uXTdHYRP8X2DQ=
|
||||
golang.org/x/image v0.12.0/go.mod h1:Lu90jvHG7GfemOIcldsh9A2hS01ocl6oNO7ype5mEnk=
|
||||
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
|
||||
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
||||
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
|
||||
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
|
||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E=
|
||||
golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y=
|
||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
||||
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
|
||||
golang.org/x/image v0.15.0 h1:kOELfmgrmJlw4Cdb7g/QGuB3CvDrXbqEIww/pNtNBm8=
|
||||
golang.org/x/image v0.15.0/go.mod h1:HUYqC05R2ZcZ3ejNQsIHQDQiwWM4JBqmm6MKANTp4LE=
|
||||
golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ=
|
||||
golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
|
||||
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE=
|
||||
golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
||||
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
|
||||
golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
|
||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
|
||||
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
gopkg.in/gographics/imagick.v3 v3.4.3 h1:9plKFE/Us913jBN6KohtLG9FNW8LPvfpjiGAORIiEHg=
|
||||
gopkg.in/gographics/imagick.v3 v3.4.3/go.mod h1:+Q9nyA2xRZXrDyTtJ/eko+8V/5E7bWYs08ndkZp8UmA=
|
||||
gopkg.in/gographics/imagick.v3 v3.5.1 h1:58JqK0UCx5RfvbRggF5FKuK6jHwAtTQopUxK8mzFa40=
|
||||
gopkg.in/gographics/imagick.v3 v3.5.1/go.mod h1:+Q9nyA2xRZXrDyTtJ/eko+8V/5E7bWYs08ndkZp8UmA=
|
||||
modernc.org/libc v1.24.1 h1:uvJSeCKL/AgzBo2yYIPPTy82v21KgGnizcGYfBHaNuM=
|
||||
modernc.org/libc v1.24.1/go.mod h1:FmfO1RLrU3MHJfyi9eYYmZBfi/R+tqZ6+hQ3yQQUkak=
|
||||
modernc.org/mathutil v1.6.0 h1:fRe9+AmYlaej+64JsEEhoWuAYBkOtQiMEU7n/XgfYi4=
|
||||
modernc.org/mathutil v1.6.0/go.mod h1:Ui5Q9q1TR2gFm0AQRqQUaBWFLAhQpCwNcuhBOSedWPo=
|
||||
modernc.org/memory v1.7.2 h1:Klh90S215mmH8c9gO98QxQFsY+W451E8AnzjoE2ee1E=
|
||||
modernc.org/memory v1.7.2/go.mod h1:NO4NVCQy0N7ln+T9ngWqOQfi7ley4vpwvARR+Hjw95E=
|
||||
|
||||
Reference in New Issue
Block a user