More separations for various knits using Gimp, color to alpha

WORK IN PROGRESS

a caution: 4/26 Gimp crashed repeatedly at the step when I tried to copy the brush from the clipboard to bucket fill any images with the pattern. The same reoccurred after an iMac restart and after a Gimp reinstall.
The problems appear to have been eliminated by uninstalling 2.10.36 and downloading and installing the previous, stable version 2.10.34.

Other posts have used the Layer> Transparency> Color to Alpha or Colors> Color to Alpha as part of other menu options, but in the last post and here the selection is the primary tool in developing transparencies.
This design was originally shared in the post: Gimp Update for Mac 3_more on color separations, where the goal had been to reproduce a published 12X18 chart. 

The PNG matching the chart on the right may be used in several ways. On electronic machines, it would be ready for knitting using both the color reverse and the double length buttons if planning to use tuck or slip settings with color changes every 2 rows.
Punch card machine users must punch the color-reversed file and set their models for double length,  but punching out the lengthened version 36 rows in length provides enough for the card to advance properly in the drum and makes correcting errors easier.
Revisiting the photograph of a swatch using the design using wire and chenille in half, and wool rayons in the other, I was bothered by the breaks at the midline of each repeat. Tiling the first design provides evidence of the area at issue, led to adding/subtracting a few pixels at a time, seeking slight changes, and ending with two final variations:  
Variation 1
Variation 2  The Gimp color to alpha process in RGB Mode for mosaic knitting: file 1 is opened. Several new files may be opened in sequence for altering, copying and pasting onto each other, with steps performed as a continuous process or with saving results and returning to them in separate steps    file 2: its color reverse
file 3: a 2-row brush with white color to alpha file 4: file 3 used to bucket fill 2 with pattern file 5: magenta color in 4 to alpha

file 6: file 5 copied and pasted onto file 1.
Change Mode to BW Indexed
file 7: file 6 color-reversed for knitting with the tuck or slip setting,   will need to be doubled in height for color changes every 2 rows using the double height button or use the file rendered double height to 18X36 pixels using Image> Scale in Gimp The proof of concept:  1: The StitchWorld #548, 24X40 pattern was also used in that post, it is suitable for punchcard machines as well  Using bucket fill with pattern makes the process faster than using the pencil tool to fill in color manually before converting colors to alpha in separating it.
While mosaics are processed in their original length, DBJ files are doubled in height.
2: the file is scaled to 24X80 3: and color reversed 4: a 2-row brush with white color to alpha 5: is copied to the clipboard and is used to bucket fill with pattern the color reversed image   6: the cyan is rendered transparent by using color to alpha again,  7: and 6 is copied and pasted on #2, the first 40X80 image,  8: and doubled in length to 40X160, it is exported as a BW PNG for knitting as DBJ. The results with both methods match.   Each color in each design row will be knit twice.
The method for emulating the separation that is built-in in Japanese electronic models, where each color knits once reducing elongation is a bit more fiddly to perform.
Charts from left to right:
1: the scaled 24X80
2: is color reversed
3: a new file, 1 row longer, 24X81 is opened, 2 is pasted onto it, leaving an all white pixel row at the top of the design
open a 24X4 row file, with two top white rows to alpha, use it as brush to bucket fill 3 with pattern
4: magenta color to alpha
5: crop that last blank row from the file, now 24X80 once more, copy and paste it onto 1.
The green grid is to differentiate this result from the one obtained in the other post, shown at its right
Change image mode to BW Indexed, export as png for knitting.
The proof of concept Returning to the repeat used to produce this punchcard the very low tech wayWorking in RGB Mode the repeat was lengthened X2, with colors exchanged to black and white, using color invert in RGB mode introduces a different palette confusing the process.
The design drawn in repeat for the 36 row minimum card length is processed repeating the steps used for the last design the final png
color inverted matches the punchcard separation

Leave a Reply

Your email address will not be published. Required fields are marked *