Thumbnail generation improvements #139
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Improved thumbnail generation, adding djpeg support and fixed image orientation handling.
Image Processing Enhancements:
internal/image/indexContents.go
,io/sqlite/sqlite.go
,io/io.go
) [1] [2] [3]Djpeg
utility, with dynamic scaling based on target dimensions. (io/djpeg/djpeg.go
) [1] [2]GetWithSize
method to allow fetching images with specific dimensions, implemented in several image sources (io/configured/configured.go
,io/filtered/filtered.go
,io/djpeg/djpeg.go
). [1] [2] [3]Dependency Updates:
go.mod
to use Go 1.23.0 and added support for newer versions of dependencies likegolang.org/x/image
andgolang.org/x/sync
. Removed deprecated dependencies (github.com/jbuchbinder/gopnm
). (go.mod
) [1] [2] [3] [4]pnm
decoding withbmp
decoding in theDjpeg
utility for better compatibility and performance. (io/djpeg/djpeg.go
) [1] [2]Task Configuration:
struct
task to analyze struct layouts using thestructlayout
tool, improving developer tooling for debugging and optimization. (Taskfile.yml
)Thumbnail Generation Improvements:
djpeg
for libjpeg-turbo decoding and adjusted configurations for better handling of resized images. (defaults.yaml
)FFmpeg
thumbnail generation to include image orientation metadata. (io/ffmpeg/ffmpeg.go
)These changes collectively improve the functionality, maintainability, and performance of the codebase, particularly in image processing and development tooling.