Skip to content

Crop editor#1

Merged
StableLlama merged 83 commits intoStableLlamaAI:mainfrom
StableLlama:crop_editor
Aug 8, 2025
Merged

Crop editor#1
StableLlama merged 83 commits intoStableLlamaAI:mainfrom
StableLlama:crop_editor

Conversation

@StableLlama
Copy link
Copy Markdown

See also jhc13#353

Still missing:
- color space handling
- JPEG XL (different PR)
- crop editor (different PR)
Code refactor to respect mostly a width of 80
Advantages are smaller file sizes when compression is acceptable
(quality < 100) or lossless compression with quality = 100. Also the
alpha channel is supported and kept in the images.

Note 1: this only adds support for the export function, and is not general
JPEG XL support for taggui. There is the fork https://github.com/yggdrasil75/taggui
that does exactly this.

Note 2: You might need `pip install pillow-jxl-plugin` beforehand to
be able to export into JPEG XL.
Also refactor the code a bit to be able to use the target size
calculation more easily in (future) other modules as well.
Also change the Settings infrastructure to send a Signal
when a setting is changed.
Also rename CustomRectItem to MarkingItem
Also refactor a bit to use QSize instead of a simple tuple
Also fix a little bug when the first image hasn't been loaded yet.
Also little fix of instruction order when an mouse drag operation filters an image away
… it out of the filter.

Little bug fixes for export. And clean up of unnecessary lines.
Plus a little robustness fix
Fix context menu display on markings
Respect "insert space after tag separator" for export
…ticaptioning can be used with the civitai trainer as well
@StableLlama StableLlama merged commit 8c04472 into StableLlamaAI:main Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant