Punchneedle.ai

v1.0.1
ai.punchneedle/punchneedle-ai Checked 2 days ago Published 23 days ago

Make punch needle patterns from images, browse patterns, estimate yarn, resize and match materials.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

make_pattern_from_image Make a pattern from an image

Converts a public PNG, JPEG or WebP image into a punch needle pattern with the website's pattern converter. Returns the pattern as a stitch grid preview, its colours and the yarn each colour needs in a fine-wool kit and a rug-wool kit.

ParameterTypeDescription
colorsintegerSame value as colours.
coloursintegerLargest number of yarn colours in the pattern, from 2 to 32. The default is 6.
imagestringSame value as image_url.
imageUrlstringSame value as image_url.
image_urlstringPublic web address (https) of a PNG, JPEG or WebP image of at most 4 MB.
sizenumberSame value as width.
unitstringUnit of the width; the default is cm.
urlstringSame value as image_url.
widthnumberFinished width of the pattern in the chosen unit: 20 to 2000 mm, 2 to 200 cm or 0.8 to 78.7 in. The default is 20 cm.

find_patterns Find patterns

Lists the original punch needle patterns in the Punchneedle.ai library, filtered by theme and level. Each pattern shows its finished size, number of colours, level and preview image.

ParameterTypeDescription
categorystringSame value as theme.
collectionstringSame value as theme.
difficultystringSame value as level.
levelstringLevel of the patterns: beginner for the website's beginner collection, or any for all patterns.
querystringSame value as theme.
themestringTheme or collection such as flowers, animals, geometric, Christmas, Halloween, hearts, landscapes, rainbows, food or primitive, or a word from a pattern's name.

get_pattern Read a pattern

Returns one library pattern with its size, colours, making steps, materials and the yarn each colour needs in a fine-wool kit and a rug-wool kit.

ParameterTypeDescription
idstringSame value as pattern.
namestringSame value as pattern.
patternstringPattern id such as cat or sunflower, the pattern's name, or its page address on Punchneedle.ai.
slugstringSame value as pattern.

calculate_yarn Calculate yarn

Estimates the yarn for a punch needle design from its size, the share of each colour and the needle and loop height, or from a measured swatch. Returns metres, grams and whole skeins for each colour.

ParameterTypeDescription
buffernumberSame value as extra_percent.
colorsarraySame value as colours.
coloursarrayColours with their share of the design area in percent; the shares add up to 100. A single colour at 100 percent is the default.
extra_percentnumberExtra yarn for tails and finishing in percent, from 0 to 100. The default is 15.
heightnumberHeight of a rectangular design in the chosen unit; a circle needs none.
loop_height_mmnumberLoop height in mm: 3.2, 4.8, 6.4, 9.5 or 12.7.
needlestringOxford needle such as #14 fine, #13 fine, #10 fine, #10 regular, #9 regular or #8 regular. The default is #14 fine.
shapestringShape of the design; the default is rectangle.
skein_length_mnumberLength in metres of one skein of the project yarn.
swatch_height_cmnumberHeight in cm of the measured swatch.
swatch_width_cmnumberWidth in cm of a measured filled swatch; the four swatch values come together.
swatch_yarn_mnumberMetres of yarn used in the measured swatch.
unitstringUnit of the width and height; the default is cm.
widthnumberWidth of the design, or the diameter of a circle, in the chosen unit.

resize_pattern Resize a pattern

Rescales a library pattern, or a design of a given size, to a new width or height with the proportions kept. Returns the new dimensions, the number of printed A4 and US Letter sheets and, for a library pattern, the yarn at the new size.

ParameterTypeDescription
heightnumberCurrent height of a design that is not a library pattern, in the chosen unit.
idstringSame value as pattern.
new_heightnumberNew height in the chosen unit, up to 2000 mm. The width follows the proportions.
new_widthnumberNew width in the chosen unit, from 10 mm to 2000 mm. The height follows the proportions.
patternstringLibrary pattern id such as cat or sunflower, or its name.
unitstringUnit of the sizes; the default is cm.
widthnumberCurrent width of a design that is not a library pattern, in the chosen unit.

match_materials Match materials

Checks whether a punch needle, a fabric and a yarn work together, using the website's material guidance. Returns the verdict for each part, what to change and the checks to make on a swatch.

ParameterTypeDescription
fabric *stringFoundation fabric: rug-punching monk's cloth, rug linen, rug warp or punch-embroidery weaver's cloth.
needle *stringNeedle family: Oxford regular point, Oxford fine yarn point, or a miniature embroidery punch needle for floss.
yarn *stringYarn or fibre: rug yarn, bulky knitting yarn, worsted yarn, sport or sock yarn, or embroidery floss.

get_material_guide Read a material guide

Returns the website's guide to one punch needle material: needles, needle sizes, fabric, monk's cloth, yarn, floss, hoops or glue. The guide holds its sections, tables and related pages.

ParameterTypeDescription
guidestringSame value as material.
materialstringOne of needles, needle sizes, fabric, monk's cloth, yarn, floss, hoops or glue.
namestringSame value as material.
topicstringSame value as material.