Skip to content

Releases: drake7707/paintbynumbersgenerator

v1.04

11 Sep 15:34
Compare
Choose a tag to compare
  • randomSeed setting to make sure the k-means initial centroid picking is deterministic and won't change between runs.

  • maximumNumberOfFacets setting to reduce the number of facets to the given limit.

  • bug fix in facet reduction

  • bug fix: HSL and Lab color space now works again

v1.03

14 Aug 10:54
Compare
Choose a tag to compare
  • Some facets generated would have narrow borders (e.g. https://i.imgur.com/dz4ANz1.png) that are not removed by the small facet removal process. Now before the facets are built, single pixel strips horizontally or vertically can be removed to prevent this. As the small facet removal process can reintroduce some of these strips, this process is repeated in a few runs, the number configurable in the settings (or "narrowPixelStripCleanupRuns"). Setting this to 0 disables the narrow pixel cleanup altogether.

  • Output profiles now contain everything related to the output and can output to various filetypes (svg,png, jpg), e.g.:

   "outputProfiles": [
        {
            "name": "full",
            "svgShowLabels": true,
            "svgFillFacets": true,
            "svgShowBorders": true,
            "svgSizeMultiplier": 3,
            "svgFontSize": 50,
            "svgFontColor": "#333",
            "filetype": "png"
        },
        {
            "name": "bordersLabels",
            "svgShowLabels": true,
            "svgFillFacets": false,
            "svgShowBorders": true,
            "svgSizeMultiplier": 3,
            "svgFontSize": 50,
            "svgFontColor": "#333",
            "filetype": "svg"
        },
        {
            "name": "jpgtest",
            "svgShowLabels": false,
            "svgFillFacets": true,
            "svgShowBorders": false,
            "svgSizeMultiplier": 3,
            "svgFontSize": 50,
            "svgFontColor": "#333",
            "filetype": "jpg",
            "filetypeQuality": 80
        }
    ]

v1.02

13 Aug 12:33
Compare
Choose a tag to compare

Mainly bug fixes:

  • Stability of outer border at the edges of the image
  • Trying to reduce the holes that were sometimes present, which was due to a combination of things, mainly due to incorrect border segment matching when some segments are small and transition points between segments that were not shared, which would stitch different paths depending on the facet.
  • Reduce the font size based on the number of digits so XX still fits

v1.01

01 Aug 08:16
Compare
Choose a tag to compare
  • Font sizes are now relative to the facet largest circle at the pole of inaccesibility
  • Output profiles to generate multiple outputs (e.g. a full color one, one with borders and labels only, etc.)
  • Font color can now be specified
  • Color aliases, can be used in the restrictions and will be mentioned in the palette json

v1.0.0

13 Jul 12:01
Compare
Choose a tag to compare

CLI version of the paint by numbers generated, conveniently packaged into a single binary executable.

Parameter usage: -i imagepath -o svgpath [-c settingsjsonpath]

It will generate an svg and a json file with the same name as the svg output file containing the palette info