EmbarkStudios / texture-synthesis

🎨 Example-based texture synthesis written in Rust 🦀
http://embark.rs
Apache License 2.0
1.77k stars 84 forks source link

Suggestion: CLI option to automatically add mirrorings and rotations of input image #30

Closed vi closed 5 years ago

vi commented 5 years ago

Suggesting to have something like --fips-and-rotates option:

texture-synthesis -o out.png --tiling generate --fips-and-rotates in.png

Which does approximately this:

convert in.png -rotate 0 in1.png
convert in.png -rotate 90 in2.png
convert in.png -rotate 180 in3.png
convert in.png -rotate 270 in4.png
convert in.png -rotate 0 -flip in5.png
convert in.png -rotate 90 -flip in6.png
convert in.png -rotate 180 -flip in7.png
convert in.png -rotate 270 -flip in8.png
texture-synthesis -o out.png --tiling generate --fips-and-rotates in*.png
Jake-Shadle commented 5 years ago

This seems like a cool feature to have for the CLI, but I don't think we're planning on doing this in the short term, but PRs are of course welcome!

vi commented 3 years ago

Although there is now the flip-and-rotate subcommand, it only works in the most primitive mode (i.e. specify a style and get some picture), not in guided mode.

I expected that --flips-and-rotates flag also automatically flipped and rotated the associated --guides in sync with example pictures.