Commit Graph
100 Commits
Author SHA1 Message Date
Antoine Aflalo 989ca2450d feat: support CBR files in optimize and watch commands
Fixes #75
2025-06-12 09:18:06 -04:00
Antoine Aflalo 970b9019df feat: load CBR files 2025-06-12 09:11:22 -04:00
Antoine Aflalo c87fde31c4 chore: Removes unused import
Removes the `image/jpeg` import, as it is already imported via blank identifier.
2025-02-14 10:55:39 -05:00
Antoine Aflalo 23eb43c691 fix(chapter): fix chapter conversion.
Still need to figure out the memory issues

Consolidates image conversion logic into a dedicated method.

This change streamlines the conversion process by centralizing the
setting of converted image data, extension, and size. It also
introduces a flag to track whether an image has been converted.

The old resource cleanup has been removed since it is not needed anymore.
2025-02-14 10:03:35 -05:00
Antoine Aflalo 4d3391273c ci: Sets up QEMU for cross-platform builds
Configures QEMU to enable emulation of different architectures,
allowing for cross-platform builds and testing in the release workflow.
2025-02-13 20:18:14 -05:00
Antoine Aflalo 2da3bae04a Updates build configuration for multi-platform support
Configures the build process to support multiple platforms (Linux, Darwin, Windows) and architectures (amd64, arm64).

Disables CGO to simplify cross-compilation.

Updates Docker image creation to produce separate images for amd64 and arm64, and creates manifest lists for `latest` and versioned tags.
2025-02-13 20:12:49 -05:00
Antoine Aflalo a3dfec642c test: add webp converter test 2025-02-13 20:05:08 -05:00
Antoine Aflalo 0303c80feb test: fix path 2025-02-13 20:04:33 -05:00
Antoine Aflalo efe1696bfa fix(memory): fix possible memory leak and add better tests 2025-02-13 20:02:45 -05:00
Antoine Aflalo 25cd4585b7 feat: revert to use webp executable 2025-02-13 19:47:13 -05:00
Antoine Aflalo dd7b6a332c refactor: update import paths to use internal package 2025-02-13 19:43:18 -05:00
Antoine Aflalo ecc561263f fix: move image to debian 2024-12-06 18:00:24 -05:00
Antoine Aflalo fb1056e5e7 ci: remove bash completion 2024-12-06 17:40:42 -05:00
Antoine Aflalo 07bc88bb04 fix: v2 versioning 2024-12-06 17:28:09 -05:00
Antoine Aflalo 8c3665fa53 ci: fix dockerfile 2024-12-06 17:26:25 -05:00
Antoine Aflalo 8dce346997 ci: debug release 2 2024-12-06 17:22:27 -05:00
Antoine Aflalo 4646789e4e ci: debug release 2024-12-06 17:21:12 -05:00
Antoine Aflalo 22ca56c98b ci: fix building 2024-12-06 17:18:28 -05:00
Antoine Aflalo f45a1d4ed0 ci: remove arm64 2024-12-06 17:10:52 -05:00
Antoine Aflalo ee53fddf02 ci: fix version 2024-12-06 17:03:42 -05:00
Antoine Aflalo f416f1ff32 feat: replace webp lib by C libwebp
Avoid having to download anything
2024-12-06 17:01:00 -05:00
Antoine AflaloandGitHub 35cfe41aa6 Merge pull request #24 from Belphemur/renovate/codecov-codecov-action-5.x
chore(deps): update codecov/codecov-action action to v5
2024-11-18 14:37:12 -05:00
Antoine AflaloandGitHub 1d3a8396f2 Merge pull request #20 from Belphemur/renovate/anchore-sbom-action-0.x 2024-11-05 09:49:07 -05:00
Antoine AflaloandGitHub 103d38c74b Merge pull request #18 from Belphemur/renovate/anchore-sbom-action-0.x 2024-10-22 10:23:05 -04:00
Antoine AflaloandGitHub 2de7bc7a04 Merge pull request #17 from Belphemur/renovate/anchore-sbom-action-0.x 2024-10-15 14:29:56 -04:00
Antoine AflaloandGitHub 449b57b14e Merge pull request #13 from Belphemur/renovate/golang.org-x-image-0.x
fix(deps): update module golang.org/x/image to v0.21.0
2024-10-04 14:25:05 -04:00
Antoine AflaloandGitHub 33ae460caf Merge pull request #12 from Belphemur/renovate/sigstore-cosign-installer-3.x
chore(deps): update sigstore/cosign-installer action to v3.7.0
2024-10-04 09:57:48 -04:00
Antoine Aflalo e798a59a43 perf: fix any unhandled errors 2024-09-10 15:10:40 -04:00
Antoine Aflalo 72086d658e refactor: clean up 2024-09-10 13:58:52 -04:00
Antoine Aflalo a7bca7ee05 ci(qodana): add qodana 2024-09-10 13:54:08 -04:00
Antoine AflaloandGitHub ba82003b53 Merge pull request #11 from Belphemur/renovate
perf(error): better deal with deferred errors
2024-09-09 14:47:12 -04:00
Antoine Aflalo 5f7e7de644 ci(tests): fix possible error with tests 2024-09-09 14:45:30 -04:00
Antoine Aflalo 5b183cca29 perf(error): better deal with deferred errors 2024-09-09 14:45:30 -04:00
Antoine AflaloandGitHub d901be14fa Merge pull request #9 from Belphemur/renovatebot
ci(renovate): auto merge digest
2024-09-09 14:11:56 -04:00
Antoine Aflalo a80997835a chore(deps): update deps 2024-09-09 14:09:39 -04:00
Antoine Aflalo 37bb12fd61 ci(renovate): auto merge digest 2024-09-09 14:09:23 -04:00
Antoine AflaloandGitHub c19afb9f40 Merge pull request #7 from Belphemur/renovate/golang.org-x-exp-digest
fix(deps): update golang.org/x/exp digest to 701f63a
2024-09-09 14:06:57 -04:00
Antoine AflaloandGitHub a10d589b67 Merge pull request #8 from Belphemur/fix-ci
ci: always generate and upload test results
2024-09-09 14:05:05 -04:00
Antoine Aflalo da508fcb3f ci: always generate and upload test results 2024-09-09 14:03:28 -04:00
Antoine Aflalo 57f5282032 ci(renovate): add automerge 2024-09-09 09:27:33 -04:00
Antoine Aflalo d4f8d8b5ff ci(test): fix the report xml file 2024-09-09 09:25:46 -04:00
Antoine Aflalo 1b026b9dbd fix(watch): add missing split option in log 2024-09-09 09:11:45 -04:00
Antoine AflaloandGitHub 12cc8d4e25 Merge pull request #6 from Belphemur/renovate/golang.org-x-exp-digest
fix(deps): update golang.org/x/exp digest to e7e105d
2024-09-06 17:10:42 -04:00
Antoine AflaloandGitHub b9a1fb213a Merge pull request #5 from Belphemur/renovate/golang.org-x-image-0.x
fix(deps): update module golang.org/x/image to v0.20.0
2024-09-06 17:07:40 -04:00
Antoine Aflalo 5357ece2b7 perf: use comment of the zip to know if it's converted instead of txt file 2024-08-29 09:38:39 -04:00
Antoine Aflalo dbef43d376 fix(watch): fix watch command not using proper path 2024-08-28 15:06:47 -04:00
Antoine Aflalo 7c63ea49c0 fix(docker): fix docker image config folder 2024-08-28 14:36:14 -04:00
Antoine AflaloandGitHub 8a067939af Merge pull request #4 from Belphemur/renovate/major-github-artifact-actions
chore(deps): update actions/upload-artifact action to v4
2024-08-28 14:24:57 -04:00
Antoine Aflalo f89974ac79 ci: Another attempt at reducing 2024-08-28 14:22:25 -04:00
Antoine Aflalo ce365a6bdf ci: reduce size of page to pass tests
Fix failing test
2024-08-28 14:16:51 -04:00
Antoine Aflalo 63a1b592c3 ci: add test result to pipeline 2024-08-28 13:55:33 -04:00
Antoine Aflalo 673484692b perf(webp): improve the error message for page too tall 2024-08-28 13:52:27 -04:00
Antoine Aflalo ad35e2655f feat(webp): add partial success to conversion
So we only keep images that couldn't be optimized and return the chapter
2024-08-28 13:49:14 -04:00
Antoine Aflalo d7f55fa886 fix(webp): improve error message in page not convertible 2024-08-28 12:09:40 -04:00
Antoine Aflalo 62638517e4 test: improve testing suite for expected failure 2024-08-28 12:03:33 -04:00
Antoine Aflalo dbf7f6c262 fix(webp): be sure we split big page when requested 2024-08-28 11:55:53 -04:00
Antoine Aflalo 9ecd5ff3a5 fix(webp): fix the actual maximum limit 2024-08-28 11:53:26 -04:00
Antoine Aflalo a63d2395f0 fix(webp): better handling of error for page too big for webp 2024-08-28 11:51:06 -04:00
Antoine Aflalo 839ad9ed9d fix(cbz): make pages be the first in the cbz by only be number 2024-08-28 09:16:19 -04:00
Antoine Aflalo c8879349e1 feat(split): Make the split configurable for the watch command 2024-08-28 09:10:08 -04:00
Antoine Aflalo 5ac59a93c5 feat(split): Make the split configurable for the optimize command 2024-08-28 09:06:49 -04:00
Antoine Aflalo 72c6776793 fix: make the progress more readable 2024-08-27 20:42:26 -04:00
Antoine Aflalo e0b6d7fcef ci: add bash completion to image 2024-08-27 20:29:38 -04:00
Antoine Aflalo 9305c8fa76 perf: add completion to bash docker image 2024-08-27 20:27:45 -04:00
Antoine Aflalo 9cc45e75cf fix(ci): fix built date 2024-08-27 20:26:29 -04:00
Antoine Aflalo f451b660be fix: get proper version 2024-08-27 20:22:22 -04:00
Antoine Aflalo c8fe726a96 fix: quality value validation 2024-08-27 20:18:36 -04:00
Antoine Aflalo fbd0abbcb3 ci: fix docker building 2024-08-27 20:12:07 -04:00
Antoine Aflalo d79be476bb ci: let default archive 2024-08-27 20:00:28 -04:00
Antoine Aflalo e3111d1535 ci: update goreleaser config 2024-08-27 19:57:08 -04:00
Antoine Aflalo c59685c75b ci: fix goreleaser 2024-08-27 19:49:24 -04:00
Antoine Aflalo 266dcb476f feat: add release workflow 2024-08-27 19:47:15 -04:00
Antoine Aflalo 6a456349d9 feat: add version command 2024-08-27 19:43:13 -04:00
Antoine Aflalo e776007978 perf: make override default for watch 2024-08-27 15:33:57 -04:00
Antoine Aflalo 3d25d00298 fix: lint 2024-08-27 15:32:23 -04:00
Antoine Aflalo 7d824d2aa3 perf: use viper as source for format 2024-08-27 15:32:05 -04:00
Antoine Aflalo 85cefbe8b3 perf: use logger instead of fmt 2024-08-27 14:59:53 -04:00
Antoine Aflalo cd9bd387fa feat: watch command for optimize 2024-08-27 14:58:21 -04:00
Antoine Aflalo 7104121fcf refactor: prepare the ground for watch command 2024-08-27 14:19:07 -04:00
Antoine Aflalo c6a8caf317 refactor: change the optimize command 2024-08-27 13:37:53 -04:00
Antoine Aflalo 634f13582e refactor: change package name 2024-08-27 13:27:50 -04:00
Antoine Aflalo 9083ec599a fix: dependency issue with webp 2024-08-27 11:51:19 -04:00
Antoine Aflalo bd12d97236 ci: fix version go 2024-08-27 11:10:23 -04:00
Antoine Aflalo 709cce5ddf perf: use deflate for compressable files 2024-08-27 11:00:50 -04:00
Antoine Aflalo 49fa1d3a7f test: add expectation on conversion 2024-08-27 10:54:26 -04:00
Antoine Aflalo f4d89d5da9 test: add test for converted chapter 2024-08-27 10:45:00 -04:00
Antoine Aflalo f515deac28 ci: add test result action 2024-08-27 10:40:26 -04:00
Antoine Aflalo 314157968e ci: install properly junit reporter 2024-08-27 10:38:14 -04:00
Antoine Aflalo 990c6e11d1 ci: add junit report 2024-08-27 10:35:04 -04:00
Antoine Aflalo 48a018c99d ci: fix test 2024-08-27 10:30:53 -04:00
Antoine Aflalo befc4b0fab test: add codecov 2024-08-27 10:29:45 -04:00
Antoine Aflalo c57811fab1 test: rename method for clarity 2024-08-27 10:27:13 -04:00
Antoine Aflalo 86923862a9 test: improve the test to work with multiple converter in the future 2024-08-27 10:26:18 -04:00
Antoine Aflalo 068564e87e test: add more converter tests 2024-08-27 10:22:12 -04:00
Antoine Aflalo 807f931a5e test: add webp converter test 2024-08-27 10:10:10 -04:00
Antoine Aflalo bc52b1a949 perf: improve error handling by having error channel 2024-08-27 09:54:47 -04:00
Antoine Aflalo 1ac8b42cf5 test: improve the test by loading the chapter after 2024-08-27 09:29:31 -04:00
Antoine Aflalo 0af5625b78 chore: add readme and license 2024-08-27 09:20:43 -04:00
Antoine AflaloandGitHub 3fff78e28d Merge pull request #3 from Belphemur/renovate/actions-setup-go-5.x
chore(deps): update actions/setup-go action to v5
2024-08-27 09:16:41 -04:00
Antoine Aflalo 128a981f91 test: add test for convert command 2024-08-27 09:10:50 -04:00