adrienverge / PhotoCollage

Graphical tool to make photo collage posters
GNU General Public License v2.0
426 stars 71 forks source link

CLI Use case #30

Closed emad-elsaid closed 8 years ago

emad-elsaid commented 8 years ago

I have a situation where i need to generate a Collage form a set of photos, it should be part of a larger application so it should generate this collage from CLI only, I don't need to tweak the result, just push my parameters to the scripts and get an image collage as a result.

can I do something like this with PhotoCollage, and if not what modifications you think could be done to the project to achieve this CLI interface? I'm thinking that instead of redoing the same thing in my application just enhance your project and invoke it from mine.

adrienverge commented 8 years ago

Hi @blazeeboy!

Contributions are welcome if carefully done.

If you need some advice to start, here is what I would do:

  1. create bin/photocollage-cli and photocollage/cli.py files
  2. re-use UserCollage from gtkgui.py
  3. use argparse to achieve a signature like:

    photocollage-cli --output-file OUTPUT.JPG
                    --output-size 4000x3000
                    [--border-color '#FFFFFF']
                    [--border-width 3]
                    IMG.JPG IMG2.JPG...
emad-elsaid commented 8 years ago

Thanks @adrienverge I will try to do it.