Skip to content

Allow cropping images to templates in the performer edit form - #1216

Open
Maista6969 wants to merge 9 commits into
stashapp:masterfrom
Maista6969:crop-ui
Open

Allow cropping images to templates in the performer edit form#1216
Maista6969 wants to merge 9 commits into
stashapp:masterfrom
Maista6969:crop-ui

Conversation

@Maista6969

@Maista6969 Maista6969 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

I tried to make this a stacked PR but I didn't realize you need write access to the repository for that 😅 This PR depends on the changes in #1215 and expands on it by adding a crop-to-template feature that would resolve #212 : choosing certain image labels (bust, face, three-quarter, etc.) offers a matching crop frame with guides drawn from a set of built-in template files. Cropping is optional, just like labeling.

I looked into oov/psd for working with the template files but it didn't support everything the templates from actress-pics uses so I ended up with a hand-rolled implementation that grabs only the parts we need. This is more code, but it's quite minimal. Using the PSD templates as the single source of truth means that we can offer these templates for downloads to users who might want to use their own image editing software.

For review purposes I've deployed this branch to https://image-box.maista.no and you can find a list of user logins in a thread on Discord.

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.

[Feature] Add cropperjs to the add image section

1 participant