Primitive Pictures is an image processing command-line tool written in Go that reproduces images using geometric primitives (triangles, rectangles, ellipses, polygons, etc.). The core algorithm is iterative and “hill-climbing”: given a target image, it repeatedly finds the best single shape to add that will reduce the error between the current approximation and the target image, then draws that shape. Over time (e.g., adding 50-200 shapes) the output becomes an abstracted version of the input image—recognizable, artistic, and often visually striking. The tool supports input resizing, different shape modes (triangle, rectangle, circle, bezier, polygon), alpha blending, and can output PNG, JPG, SVG, or even animated GIFs that show the incremental build process. Because the Go code is self-contained and efficient, users can run it locally on images, script batch runs, or use it to generate “primitive art” or stylized thumbnails.

Features

  • Converts input images into simplified compositions of geometric primitives (triangles, rectangles, ellipses, polygons)
  • Command-line tool in Go with flags for input file, output file, number of shapes, mode, size, alpha blending
  • Supports multiple output formats including PNG, JPG, SVG, and animated GIF sequences showing build process
  • Shape-mode selection (triangle, rectangle, ellipse, polygon, bezier) for different aesthetic outcomes
  • Local processing and scripting support for batch jobs or integration in pipelines
  • Artistic abstraction and algorithmic image reduction rather than simple filters, producing visually interesting results

Project Samples

Project Activity

See All Activity >

Categories

Graphics

License

MIT License

Follow Primitive Pictures

Primitive Pictures Web Site

Other Useful Business Software
Field Sales+ for MS Dynamics 365 and Salesforce Icon
Field Sales+ for MS Dynamics 365 and Salesforce

Maximize your sales performance on the go.

Bring Dynamics 365 and Salesforce wherever you go with Resco’s solution. With powerful offline features and reliable data syncing, your team can access CRM data on mobile devices anytime, anywhere. This saves time, cuts errors, and speeds up customer visits.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Primitive Pictures!

Additional Project Details

Programming Language

Go

Related Categories

Go Graphics Software

Registered

2025-11-20