Gimp 4, pattern fill, dithered portraits, and more.

The latest version of Gimp for Mac includes many small changes which come with no announcements and take a bit of sorting out to recognize or problem-solve.
There are good collections of Youtube videos intended for use on much larger files, with fewer color restrictions than images used for knitting.
A dock is a container that holds a collection of dialogs.
I work in single-window mode and had an issue a few times recently with the tool dock and dialogue disappearing from the left.
The method that worked for me:
on a Mac, select the link to the Preferences/Settings window found in the GIMP application menu, next to the Apple menu. Scroll down in the left pane until you see the Windows Management entry. Click on it to open the relevant settings pane. Look for the giant button labeled Reset Saved Window Positions to Default Values, seen on the bottom right.  Click on it, and GIMP will pop up a small notification box letting you know that the save will go into effect the next time GIMP loads.
Click OK there, and click OK again in the main Settings window.
Close GIMP and reload it, and familiar settings should be back.
To prevent a reoccurrence of the issue, it is possible to lock the associated tab, permanently fixing the dialogue. To do so, click on the small shape next to the Tool Options Menu text on the top right, then select Lock Tab to Dock.  Tool icons are also changed at times, leading to puzzlement when steps used in the past do not work. An example, The layers menu no longer offers the difference mode used previously in custom color separations.
From the manual: “If you need to stay compatible with older GIMP versions or you need to use the legacy layer modes for other reasons, look for the icon to the right of the layer modes selection.
This drop-down menu will let you choose between Default and Legacy. If you choose the latter, the layer modes list will only show the legacy layer modes and all modes will have “(legacy)” behind their name (the selected mode will use the short version (l). ”
To make the dialog available: click on Legacy to switch mode selections.  My posts are at times generated in response to questions I have received through forums or direct contact via my blog, but most often by my exploring whatever rabbit hole attracts my attention for a period of time before leaping into the next.
A quick way to fill with a design/ drawing in repeat is to choose and open an image, ie this rose, indexed B/W 28X30 pixels Magnify ie to 800X, go to Edit, and Copy Visible to save it to the clipboard as long as the program is open
Choose File, New, in size that is a multiple of the original ie 84X90.
Select the brush tool  In the Windows menu choose Dockable Dialogues and select Symmetry Painting, then Tiling.
After entering the desired values, as you move onto the canvas, a brush icon and crosshair will appear, along with a square bordered with a dotted edge representing the clipboard brush in full size, place it touching the left upper corner for a straightforward tiled repeat, an alternative to the familiar method using Filter, Map, Tile.  Undo and repeat if needed.  
For a brick repeat For easy and quick drawing in any repeat configuration including random, I recommend using ArahPaint.
For other tiling repeats, I have found Gimp offset limiting, offering this as an alternative method for, in this case, a half-drop design.
Work in matching magnifications as steps are advanced.
Begin with the rose, use filter, map, and tile it to twice its height, 28X60 Open a new file, twice its height and width, 56X60 pixels.
Using rulers as guides for the half drop, place a center vertical guide at 28, horizontal guides at 15, and 45 click on the 28X60 selection at the top of the work window, copy and paste it on the file marked with guides first on the left side, click on the rectangle tool to fix the layer
paste it again on the right, placing a full rose in the center square outlined in the column,
paste again and  move the selection above or below to fill in the empty third of the column
select the rectangle tool again to fix the layer, save the 56X60 file,   filter, map, and tile again to test the alignment ie here, 168X80 the icons selections at the top of the work windows change as steps are completed   A visual summary of the 28X60 image placements  A pattern is a small image that fills areas by placing copies side by side, while a brush is used for painting.
In drafting A collection of geometric design blocks built with squares, rectangles, and lines and considering optical design development, Gimp fill with pattern gained my focus once more.
Pattern fill was discussed in Gimp update for Mac 2
In developing pattern-fill libraries, and saving them, using larger pixel group pngs rather than the smallest repeat needed makes identifying them easier.
These suggestions are for drafts on 8X8 pixel grids.
They may be used to pattern fill from the clipboard while the program is open, or exported as .pat files, adding them to a “my pattern” folder through program settings, where they will be available after Gimp is quit and reopened.
Always tile/draw-in-repeats to check alignment prior to saving.
Color-reversed versions are also useful.
Once the basics are tested, one may begin to move towards shapes and more complex repeats, particularly if using electronic machines. A library of circles, some in dimension used in developing truchet tiles, drawn using the built-in Gimp circle brush, from 5 to 24 and 28 pixels in size. Developing dot designs merit a separate thread as well as more on symmetry painting.
The patterns may be saved as color or black-and-white files.
Passap users should know even though they may see this icon from some old company-shared files along with their own .cut ones,  they are not compatible with Gimp software or any other outside the DAK universe that I know of, where they were an earlier format later replaced by the stp format.
There are always many ways to approach DIY, staggered lines of equal size with alternate color starting points can fill in spaces between each other.
Gimp has offset and symmetry drawing functions.
As a long-time repeat builder, if working in Gimp alone, I prefer working with multiple images open to using layers, and visually making the drops or shifts in the repeats manually by copying and pasting on progressive-size canvases.
Starting out with colored squares in RGB mode allows for filling in each color with multiple different BW patterns, for these samples I am using only 2 linear pattern fills, beginning with a 40X40 design  tiled X5 in brick repeat  and in half drop  Introducing other shapes, 16X16 brick configuration, 32X32
half drop, 32X16   Keeping that black outline, but still rendered in B/W Eliminating the outline, retaining a quarter circle, 16X16Using mirroring, and cropping the repeat using several canvases, eliminating double lines in the process, 30X30.  The maximum size in width for large items in a single piece is generally between 180 and 200 stitches on 5 mm and 4.5 mm respectively.
Gimp comes with many built-in assorted patterns which can serve as a starting point. Here a 160X160 canvas is filled with a Gimp pattern, planning a 20 stitch border on all sides.  Convert image mode to greyscale,  using Colors/Curves adjust values to an input of 47, and an output of 203,   and if planning to knit the piece in only 2 colors, convert the result once more to indexed B/W mode To add any desired border, open a new file, in this case, 200 by 200, working in RGB mode, and fill it with any color other than black.
Copy and paste the image above onto it, it will be automatically centered  Choosing another built-in pattern, the red border is pattern filled To eliminate the yellow, use fuzzy select by color, and check that the bucket fill tool is set to fill with the background or foreground color again.
Press the shift key, and replace the yellow with white.
Convert mode to indexed B/W once more, and export as png.
If desired, using a grid view and pencil tool, additional black borders can be added.
The shift command keys on the Mac used in conjunction with the pencil tool help render straight pencil lines. Any of the larger files developed as tiled designs can be cropped to different dimensions depending on preference and end-use.
Decades ago, before software design aids, there was a knitting challenge circling around to include hidden language or undesirable language in a not necessarily easy-to-read format in knitting, beginning with hand-scripted text, which was then mirrored in width and height.
This was my version of DBJ vertical design, with the photo rotated and repeated to visualize what the appearance might be on a larger piece.
There are some really interesting examples of hiding messages in textiles throughout history and even books written on the topic, it is referred to as steganography, which means hidden writing.
When I was teaching there were often as many as 15-20 students knitting in the studio at the same time, and I felt a need for an expletive outside the less civilized 4 letter word that came to mind when multiple emergency yell shouting my name for help occurred at a single time.
Hints on using text: Gimp to create text for knitting
This image, rendered in Gimp with superimposed text and filled with patterns in both the text and in the background illustrates my answer to that problem.   I have often seen illustrations of artworks for sale online using portraits with superimposed all-over patterns.
This concept for a possible knit began with an AI-generated foursome using Midjourney  My chosen image, originally 700X700, with image mode changed from RGB to greyscale, indexed to 3 colors, scaled and trimmed to 181X183selecting a random brush for superimposed pattern, 30X40  file, new, exact dimensions as portrait, white ground, 181X183, fill with pattern, layer, transparency, color white to alpha,    copy and paste on portrait file, fix layer, save .png Image ready for download using img2track  For use on a 930, the design is broken down into multiple tracks by the software, each to be downloaded in sequence as a new pattern.  Placing the portrait with white color to alpha on top of the BW pattern filled ground produces a slightly different result The same repeat, with a few pixel changes  Using a different punchcard pattern repeat with a different pattern fill, the portrait becomes more hidden A video on achieving a similar effect using Arahpaint   If the goal is only to change the background, there are several options for that as well.
One way to remove a background containing varied shapes, and return to an often-used of my old friend Rocco,
the file, 150X154,  add an Alpha Channel The Free Selection tool, or Lasso, allows for creating a selection by using a pointer.
Since GIMP-2.10.12, selection modes now, in 2.10.34, work differently.
Marching ants/dots come with a continuous line, meaning that the selection is not validated yet and that you can still change the selection shape (the mouse pointer comes with the Move icon) but keyboard commands may no longer work. When satisfied with the changes hit enter/ return key on Mac to validate the selection.  Enlarge the image to make following and marking its outline easier.
Freehand selection can be made in small segments at a time connecting short lines, or long, continuous strokes.
First, create a starting point by clicking on your image.
A yellow dot will appear. As you move along the edge of the image, the colored dot reappears every time you stop, with the previous locations turning into empty circles.
When it is reached, if you click on the endpoint, it turns filled and is accompanied by a moving cross.  Use the return key to pause if needed.
Pressing and releasing the mouse pointer allows you to mix free-hand segments and polygonal segments.
If you click on the endpoint, dragging alters the shape.
When the endpoint is on top of the starting point, click to close the selection.
Double-clicking on the endpoint closes the selection with a straight line.
You can go outside the edge of the image display and come back in if you want to.
Escape cancels all continuous selection segments.
When the lasso selection is completed there will be visible dotted lines around the selection Color invert the result Open a new, white canvas of the same size and magnification, and copy and paste the color inverted one on it  Use color invert once more, Rocco is now on a black ground Using the result in online dithering programs provides a different result than when dithering the full greyscale image. This result is from using https://29a.ch/ditherlicious/  If the result is an instant favorite, and the goal is to fill the ground with a pattern, use the lasso tool again to eliminate the black more carefully than I did, repeat the steps to color invert, copy and paste on red,  Color invert once more,
Fill the background with a chosen pattern, convert image mode to indexed B/W, and export the resulting file
If the image is to be knit using 3 (or more) colors per row, this is one of the myriad possible results using my favorite dithering option, https://app.dithermark.com. Returning to the greyscale image on the black ground,  the latter can be bucket filled directly with any chosen pattern   To superimpose a pattern on the whole image, fill a white canvas in the same dimensions with the pattern use Layer, transparency, color white to alpha  Copy and paste the result on the original Full greyscale is not knittable.
What about using the AI portrait in B/W or 3-4 color knitting?
172X172ditherlicious 2-color,   and dithermark using the built-in pattern selector for 4-color.   The image will be elongated in actual knitting, this window from img2track on the left is set for 4 colors. Changing selection to 2 colors and opening the same image, it is converted to B/W 3-color with diagonal hatching 2-color
Though visually some images may appear as though more than 2 colors are in use, here is the comparison using img2track between opening the above on the left, and, on the right, after changing the image mode to B/W indexed using Gimp with added cross-hatching followed by image mode to B/W in Gimp simply to note visual differences    
and a different cross-hatch, with a value balance change, in B/W mode

 

Midjourney inspired knits 1: single bed diamond shaped strips

My son recently introduced me to Midjourney and generated many images capable of inspiring a range of machine knits. The interpretation and execution may not be as simple as would initially appear, particularly to non-knitters.
Commercial knitting machines are left out of this conversation. The fact that they have multiple beds,   and compound needles that facilitate whole garment shaping makes complex structures possible that may only be partially reproduced on home models.
Japanese machines such as mine use two beds, with the ribber/ second bed added for knit and purl combinations, which may be lowered as seen below when not in use, or removed altogether.  One accessory that would make things easier to reproduce more textured knit and purl variations would be a Brother G carriage, which operates on the top bed and slowly and loudly produces programmed patterns on both punchcard and electronic Brother models.
The initial Midjourney inspiration,  and a “simpler” variation.

In hand-knitting concurrent shaping of both sides can be considered.
When working on 2 needles, because the work is turned over, knit and purl execution will change when ridges visible on both faces are planned.
Knit stitches are rectangular as opposed to square, often in a 4/3 ratio.
This chart begins to illustrate the actions involved.  Machine knitters constantly look at the purl side when working on the top bed unless ladders are manually reworked into knit stitches or the work is turned over.
Turning the work over is executable using a garter bar accessory, available for use on multiple gauge machines.  The standard and bulky garter bars offer sections that may be joined together for use on the whole needle bed, while the tool for holding, transferring, or turning over small stitches offers only 30 eyelets, the red lines on it were made with red nail polish, a handy way to mark KM tools or even linkers at fixed intervals to save constant counting.
The work is pushed off onto the garter bar with the curved ridges up and returned to the machine to create the purl ridges after turning the bar over.
At that time, the needle hooks will grab the stitches from back to front and the bar can be removed.  If the yarn supply is to be kept continuous, the knit carriage and yarn need to be brought to the opposite side before resuming knitting.
Spreadsheets offer a way of visualizing steps ahead of any swatching. Not aiming for a direct copy of any of the Midjourney results, this is a start with 4-row sequences
and an illustration of how strips might be joined to produce slightly different side edges. The diamonds are formed by increasing and decreasing on both side edges.
The sample is knit in a 2/8 wool, which even when knitting at tension 9 yielded stitches far too tight to remove onto the standard gauge garter bar, the 30 stitch tool was used.
Stocking stitch tends to roll to the purl side. For a cleaner edge, fully fashioned shaping is used.
From the Brother knitting techniques book, to decrease a stitch:  To increase one If both sides are shaped at the same time, the length may get affected by slight differences in stitch height formations on the carriage side as opposed to opposite the carriage.
In the test swatch increases and decreases were made consistently opposite the carriage, resulting in shaping on alternate sides every 2 rows.
Charting out the concept: the arrows represent the direction the carriage will be moving.
The blank row occurs where the knit is turned over.
A single row is knit across all stitches to the opposite side after the knit is turned before returning to shaping.
The last 2 rows in the chart would be the first 2 in the following shape.
The black cells represent what will become purl rows on the knit ground. The proof of concept:  The machine-knit sample aside from a quick hand-knit on #8 needles, attempting garter ridges, offering a lesson in gauge and texture.
In a final piece, the shaping in the hand-knit would be carefully considered. A first draft plotting out arrangements for alternating knit/ purl ridges: the center column can be adjusted to any width, and cables or other manipulations could occur at the narrow pivot points.
Seaming or joining would occur in areas where rows are outlined in blue. Those areas could be lengthened as well.
The chart can be further marked for beginning with either a half or a full diamond. For hand knitters, the yellow cells would be purled with knit side facing, and knit with purl side facing.  A Youtube video showing building the fabric using the short row technique: https://www.youtube.com/watch?v=H7WrYOV2A6w&t=1297s
For anyone with intarsia or multicolor fondness, some AI color renditions based on triangles as well  

On a very different note, large, nonrepetitive AI-generated portrait images may be superimposed with brushes in any chosen design repeat to render designs such as these: