/photosorcery

:sunrise_over_mountains: small CLI for converting and merging images

Primary LanguageGo

gandalf

photosorcery

Small CLI for converting between image types and merging images into PDFs.

Converts images concurrently for added speed.

Developed for use with Alchemy

API

Merge

photosorcery merge -out [outputPath] [...imagePaths]

Convert

photosorcery convert -type [imageType] -out [outputDirectory] [...imagePaths]

File Types Supported

Convert

To and from: jpg, png, gif, bmp, tiff

Merge

To: pdf

From: jpg, png, gif

Development

Photosorcery has been created to be used with an electron application called Alchemy which is built to run on Linux, Windows as well as MacOS. This requires Photosorcery having to be built for each of those platforms.

Some of Photosorcery's dependencies require cross compilation which we achieve with the help of Docker and https://github.com/karalabe/xgo.

When developing:

  • Install Docker
  • Clone this repository somewhere in your $GOPATH
  • Run make - which should install all required dependencies and build Photosorcery for each target; it will take a while the first time it is run

Authors

photosorcery is a project by