Googol Lee
4206a166c6
Set AutoOrient when reading files. ( #1254 )
2025-07-19 21:58:07 +02:00
Googol Lee
50209bc55c
Fix the coverage for codecov. ( #1251 )
2025-07-18 15:21:03 +02:00
Kostiantyn
124b6d34a9
Auto-orient image during processing ( #1242 )
...
* Auto-orient image during processing
* Detect if thumb was rotated 90 degrees and switch dimentions
* Consistently auto-rotate images
* fix incorrect path for the original photo dimensions reading
* Swap the dimensions if needed and call the `wand.ThumbnailImage()` unconditionally
* revert unnecessary line split
---------
Co-authored-by: Konstantin Koval
2025-07-11 13:21:28 +03:00
Googol Lee
6aca4fe2f9
Fix scanner test. ( #1241 )
2025-07-09 22:25:44 +02:00
Googol Lee
0da8bef69e
Update log for passing attrs with context. ( #1216 )
...
* Update log for passing attrs with context.
* Check type-casting
* add tests.
* Use t.Cleanup() to restore the global value.
* Fix error.
* Update tests.
* Add comments.
* Remove cover.cov
* Update doc.
* Update git ignore.
2025-06-07 17:11:50 +02:00
Googol Lee
535f8e57fd
Use Magickwand to handle images. ( #1212 )
...
* Add MagickWand perf test.
* Use MagickWand.
* Calculate the right thumbnail dimension.
* Remove magick bin file.
* Add building dependencies.
* Build images.
* Add --no-install-recommends
* Remove unused field.
* Fix typo
* Use uint in the worker.
* Add guard
* Always update apt.
* Fix EncodeJpeg() with the quality
* Rename the local error with a better name.
* Add worker.Terminate()
* Fix typo
* Rebase with master and rollback the build workflow.
2025-06-03 22:04:03 +02:00
Googol Lee
a378522af4
Use magick generating thumbnails.
...
Fix #1204
* Add bad medias to scanner_test.
* Fix the script.
* Add GenerateThumbnail function.
* Add identify dimension
* Use new API. Cover json condition.
* Use magick to generate thumbnails.
* Update go mod.
* Remove dependency of executable_worker -> test_utils
* Reduce dependency of magick.
* Use magick to get dimension.
* Remove almost all code around `image` package.
* Fix thumbnailing with multi-frame gif.
* Remove the struct in wrapper.
* Fix typo.
* Build images.
* Update logs
* Add jpeg decoder.
* Remove code dependency.
* Add log to confirm scan in parallel.
* Update log
* Add reformat image perf tests.
* Rollback the build workflow.
2025-05-22 09:01:43 +02:00
Googol Lee
f1b523a27e
Include a group of small but real media files for testing. ( #1131 )
...
* Move scanner/test_data/* to a stand-alone directory.
* Include real medias.
* Rename testdata to test_data
* Rename test_data/scanner -> test_data/library
* Clean tests to avoid depneding env.
* Rename: scanner/test_data -> scanner/test_media
* Rename: test_data/bin -> test_data/mock_bin
* Fix paths in tests.
2024-11-23 09:02:11 +01:00
Googol Lee
a9d7b774bd
Add log package for better logging level. ( #1130 )
...
* Add log package. Update worker with new log package.
* Add init error to worker.
* Init workers when binary launching.
* Add tests to cover different errors.
2024-11-21 10:44:38 +01:00
Googol Lee
772129dbeb
Remove continue-on-error: true because it hides errors. ( #1129 )
...
* Add test for the workflow.
* Remove continue-on-error.
* Remove always failing test.
* Fix the hidden failure.
* Regenerated.
2024-11-19 19:03:19 +01:00
Kostiantyn
a0a2380f90
Remove deprecated convert and add required -auto-orient flags ( #1118 )
...
Co-authored-by: Konstantin Koval
2024-11-09 18:49:53 +02:00
Googol Lee
c151bdee96
Process jpgs if raw processing is disabled. ( #1096 )
2024-10-20 16:52:47 +02:00
Googol Lee
4303b71311
Use hardware acceleration when converting videos. ( #1056 )
2024-10-11 22:27:56 +02:00
Kostiantyn
d1193c5ca4
Refactoring part 1: Fix some annoying linter warnings in API code ( #1064 )
...
* names, constants of reusable strings, removed unneeded `if`, replaced deprecated imports
* more deprecated imports replaced
* What is this?))
* Fix a path and quote a var in Dockerfile
* Addressing review comments
---------
Co-authored-by: Konstantin Koval <kkb@ukr.net >
2024-09-30 14:45:02 +02:00
Googol Lee
340c181442
Use self-building dependencies and update the code with imagemagick. ( #1053 )
2024-09-17 15:02:23 +02:00
Googol Lee
a6cbfc76f3
Back to bookworm. ( #1040 )
2024-09-06 13:32:22 +02:00
Googol Lee
6e1e1d12ce
Update to magick 7 in alpine. ( #1035 )
2024-09-02 22:12:00 +02:00
Googol Lee
ad13172a32
Switch to Debian testing and imagemagick. ( #1021 )
2024-08-29 10:30:06 +02:00
Alex Kabakaev
153f37e5fb
move mp4 moov atom to the beginning ( #883 )
...
Video playback starts faster in browsers.
2024-03-30 09:01:16 +00:00
Andreas
68cc2a0eee
reordered cli arguments for ffmpeg to improve speed to generate thumbnails from videos ( #917 )
2024-03-29 19:35:50 +00:00
Jakub Tymejczyk
030c9262c6
Fix encoding video thumbnails
2023-03-03 08:51:44 +01:00
viktorstrate
9bcfdbb2cd
Add environment variables to disable features
...
Face detection still needs to be hidden on the frontend if it's disabled
2021-08-31 11:34:55 +02:00
viktorstrate
b022a13e55
Batch exiftool runs + scanner package restructuring
2021-05-06 22:01:48 +02:00