Pages: [1]   Go Down

Author Topic: Free Standalone Roll Nesting Utility for Photoshop (Additive Borders & 2D Packin  (Read 822 times)

William Walker

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 1203
    • William Walker Landscapes

This is what I asked Gemini AI for. It works pretty well… I would be interested to see what you think.

From Gemini:
"Hi everyone,
I wanted to share a lightweight, free-standing layout tool I've been using in the studio to automate roll printing layouts and minimize paper waste on my 24" (610mm) and 36" (914mm) rolls.
Unlike a lot of basic scripts that use simple linear row stacking (which leaves massive empty gaps), this tool uses a proper two-dimensional Maximal-Rectangles packing algorithm. It actively shuffles, flips, and nests smaller prints or proofs into the empty spaces around larger anchor prints to cut down on linear roll yield.
Key Features:
True Additive Borders: You enter the exact target image dimensions (in millimeters) and your required borders. The tool automatically adds the paper borders rather than shrinking your image area.
Smart Roll Optimization: It analyzes your entire queue and calculates whether a 610mm or 914mm roll will yield the absolute least amount of total square-meter waste.
Photoshop Automation via Smart Objects: Instead of exporting flat layouts or gray boxes, clicking "Calculate" downloads a local .jsx script. When run in Photoshop (File > Scripts > Browse...), it builds the exact roll canvas size needed and populates it with Empty Smart Object Layers for every print. You just double-click the layer, drop your high-res artwork in at 100%, and hit save.
How to Use It:
Copy the code below.
Open a plain text editor on your computer (like TextEdit on Mac or Notepad on Windows).
Paste the code and save the file to your desktop as Studio_Nester.html.
Double-click the file to open it locally and offline in your web browser. No servers or internet connection required.”

"Download the attached .txt file, rename the extension back to .html on your desktop, and double-click to use it."
« Last Edit: May 29, 2026, 05:51:19 am by William Walker »
Logged
"What can be asserted without evidence can also be dismissed without evidence." Christopher Hitchens

William Walker

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 1203
    • William Walker Landscapes

Updated :D

A few improvements.

On a Mac you can drag the file into you toolbar and it looks like an app.

I store mine in Documents. Just drag it to just next to the Bin and it fits in…

"Download the attached .txt file, rename the extension back to .html on your desktop, and double-click to use it."
Logged
"What can be asserted without evidence can also be dismissed without evidence." Christopher Hitchens

NeilPrintArt

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 84
    • www.printartct.co.za

This looks really helpful, looking forward to trying it out. Thanks for sharing

Neil
Logged
Neil Williamson
Print Art Cape Town
www.printartct.co.za

William Walker

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 1203
    • William Walker Landscapes

This looks really helpful, looking forward to trying it out. Thanks for sharing

Neil

Hi Neil, no problem, it was an interesting exercise.

I used both Claude AI and Gemini, and actually informed them when the other one did the job better!  ;D

What I found was that the Gemini model generally looked better but there was one layout that it could simply not handle - it was on a 24” roll, one print 3080mmx220mm long and then several A4 and A3..

Claude eventually worked it out perfectly so now I use both and see which one does a better job.

I have attached the “Claude” file.
Logged
"What can be asserted without evidence can also be dismissed without evidence." Christopher Hitchens

William Walker

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 1203
    • William Walker Landscapes

I think this is about the best I can come up with.
This is “Print Nest Planner” by Claude AI.

It now caters for 17”-60” paper rolls. A6 - A1 paper sizes and “Custom Paper Sizes”.
The resultant .jsx file works very very well In Photoshop and all you have to do is drop the images into their “Slots”.
Just change the attached file's extension from .txt to .html and it opens, ready for use!

From Claude:
If you do share it, one thing worth mentioning to the forum is that it's a standalone HTML file — no installation,
no internet connection needed, just save it to the desktop and open in any browser.
That tends to reassure people who are cautious about running unknown software.
Logged
"What can be asserted without evidence can also be dismissed without evidence." Christopher Hitchens

William Walker

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 1203
    • William Walker Landscapes

After working with these “Apps” from Claude Ai and Gemini Ai, I really think they are as good as I can think of!

I have made numerous changes, additions and refinements and it would be interesting to hear what others think.

Attached are some images that show both “workspaces” Gemini is the slightly more colourful one, but are both pretty similar in what they offer. (Claude can sometimes be a bit slower, but I think perhaps tries more options.)

They both give you two different paper size option to compare which might be more economical and a choice between Paper Size and Cell Size.

The .jsx files you locate in Photoshop through “Sripts - Browse”. It opens with all the layers open - just make sure you close all the groups before you drop the images in, otherwise, when you turn off guides, you turn off the images too..see attachment. You turn off the guides “OUTLINES” to avoid them printing.

I will attach the “Apps” in the following post...
« Last Edit: June 10, 2026, 05:46:48 am by William Walker »
Logged
"What can be asserted without evidence can also be dismissed without evidence." Christopher Hitchens

William Walker

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 1203
    • William Walker Landscapes

…I have dragged the two “Apps” into my sidebar (see attachment).

Below are the two files to download:How to Use It:

Double-click the file to open it locally and offline in your web browser. No servers or internet connection required.”
"Download the attached .txt file, rename the extension back to .html on your desktop, and double-click to use it."
Logged
"What can be asserted without evidence can also be dismissed without evidence." Christopher Hitchens

1PhotoGuyinNM

  • Newbie
  • *
  • Offline Offline
  • Posts: 28

Hi William,

Would it be possible to generate the same two utilities but use inches instead of mm for those who prefer to use imperial versus metric. 
Logged

William Walker

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 1203
    • William Walker Landscapes

Hi William,

Would it be possible to generate the same two utilities but use inches instead of mm for those who prefer to use imperial versus metric.
Here is the Gemini version, I am still waiting for the Claude version.

Claude now there too..!
« Last Edit: June 13, 2026, 04:10:22 am by William Walker »
Logged
"What can be asserted without evidence can also be dismissed without evidence." Christopher Hitchens
Pages: [1]   Go Up