As help with selecting poses for screenshots, a number of pose pack
screenshots are available. These can be found under the /docs/Poses
folder in the repository.
- Create screenshots of the poses, from first to last.
- Write down the names of the poses.
- Copy the screenshots to the
/docs/Poses/{pose-pack-name}
folder. - Register the pack in the
/docs/Poses/pose-packs.json
file. - Using a local webserver, use the UI under
/ui
to label and tag the images.
The pose reference images are generated using the original screenshots,
cropped according to the cutX
, cutY
and cutHeight
values in the
pose pack configuration, using the predefined ratio of 950:1440
.
Since most poses are upright, this portait format works quite well.
- Determine the
cutX
,cutY
andcutHeight
values for the pose pack. - Add the values in the
pose-packs.json
file. - Open the command line.
- Run
cpmdb.php mod-pack="pose-pack-name" crop-images
.
To determine the best cropping values, open a set of the most extreme poses (in width and height) in an image editor. As an example, here's a screenshot of Photoshop where I set up a crop mask using the right ratio. I used the handy "exclusion" layer blending mode to see the maximum bounds of the poses.
I then used the guides to read off the cutX
(pixels from the left),
cutY
(pixels from the top) and cutHeight
(pixel height of the crop size).
The cropped images are used to generate the reference images listed in the Markdown pose pack reference. With five images per row, these posters are a good compromise between size and detail.
- Open the command line.
- Run
cpmdb.php generate-posters
.
The cropped images are used to generate the reference images listed in the Markdown pose pack reference. With five images per row, these images are a good compromise between size and detail.
- Open the command line.
- Run
cpmdb.php reference-doc
.
Provided that all the pose pack images have been labelled and tagged, the commands above can be combined into one:
- Open the command line.
- Run
cpmdb.php build-poses
.