· 4 min read

Covers from my own GPU, and two components to compare them

The first covers made on my own PC, with Krea 2 Turbo in SwarmUI. A script asks for them through its API, using Windows' curl.exe from WSL. Before testing…

What we did

  • The first covers made on my own PC, with Krea 2 Turbo in SwarmUI. A script asks for them through its API, using Windows' curl.exe from WSL. Before testing, the Windows pagefile and WSL's swap moved off C:.
  • 95 test images, changing one thing at a time when possible: the scene prompts, the shared prompt, the LoRAs and their strengths, the titles and the size. I chose covers with 3D titles, using Typnosis 0.8 + Detail Slider +0.5. Covers are now 2048 × 1152 with 8 steps. The results and prompts are in design/cover-generation.md.
  • A first cover for each of the 24 published posts without one (one seed). They look like one set, but about half the titles don't fit the square crop, and some are tilted or curved. The scenes are in design/cover-scenes.json.
  • :::image-slider: two images stacked on top of each other, with an invisible range input that sets how much of A shows.
  • :::image-picker: the same slider for three images or more. One radio group chooses the side to change, and another chooses the image. Picking the image on the other side swaps them.
  • In a post, both hold ordinary markdown images. The directives plugin checks them, takes them out and gives them to the component. Their files load the way the video and YouTube blocks' files do (bodies.ts, media.ts).
  • A draft post uses both, in English and Spanish.

What I learned

  • CFG 0 in Krea's code and CFG 1 in ComfyUI mean the same thing (no extra guidance), because their formulas are different.
  • A pagefile's size isn't how much of it is used. Windows had set aside 22 GB, but 448 MB was in use.
  • A range input's thumb stops half its width before each end. Making the input half a thumb wider on each side keeps the line under the pointer.
  • touch-action: pan-y keeps vertical scrolling when a finger is on the slider.
  • A .safetensors file's hash changes when its metadata does. Hashing only the data after the header checks the model itself.

Problems & fixes

  • With reduced motion on, the line could trail a step behind the pointer. The site gives every element a 0.01ms transition in that mode. transition-property: none on the line and the cut fixed it. It looked like a timing problem in my test at first, but waiting for the page to be ready changed nothing. Comparing both motion settings showed the real cause.
  • Covers looked soft because they were 1344 × 768 and had to be enlarged. A larger size is sharper. 12 steps instead of 8 didn't look sharper.
  • A batch of covers stopped itself after 8 images. Memory use went over the script's limit of 52 GB while I was also exporting images and running a dev server and a browser. Windows' free RAM fell to 0.5 GB during the production build, even with the batch stopped, because Krea was still loaded. Heavy work and cover batches shouldn't overlap. The batch stopped again after one more image, with SwarmUI's Python process using 23 GB. Its FreeBackendMemory API call freed about 19 GB, and the rest finished.
  • A draft's name reached the build. A published post shows the drafts marker in its code samples, and drafts.ts replaced it there too, adding the draft's folder name (but none of its content). The plugin now skips .md files. I found it by searching inside every built file. Searching only their names had missed it.

Next

  • Review the first covers for the other posts, then fix tilted titles and titles that don't fit the square crop.
  • Turn the settings into a SwarmUI preset (step 2 of the plan).