Graphite icon indicating copy to clipboard operation
Graphite copied to clipboard

Export files use artboard name when specified

Open DallinYauney opened this issue 10 months ago • 1 comments

When the bounds of an export is set to a specific artboard (rather than All Artwork) the exported file should be named after the artboard name, rather than the file name.

I'm using artboards on Graphite to group separate but related drawings, and I got annoyed having to rename my exported files to be the same as my artboards so they wouldn't all end up as ProjectName (3) or replace each other.

My proposal is that when the bounds of an export is set to a specific artboard, the exported file should be named after the artboard name, rather than the file name.

Possible alternatives include making the export for artboards follow the "ProjectName - Artboard" format, or even checking if the artboard is named "Artboard" before applying naming logic. I'm not aware of how other apps handle this, and discussion is welcome.

DallinYauney avatar Jan 07 '26 18:01 DallinYauney

When exporting with the bounds set to a specific artboard, the export logic still uses the document name when constructing the output filename, which causes multiple artboard exports to overwrite each other or get auto-numbered.

The export path already has access to both the selected export bounds and the artboard metadata, but the filename generation doesn’t branch on whether an artboard was explicitly chosen. As a result, the document name is always used regardless of bounds.

A straightforward fix would be to switch the filename source to the artboard name when the export bounds are set to a specific artboard, while keeping the current behaviour unchanged for “All Artwork” and “Selection”. This should be safe as long as the same filename sanitisation logic is reused.

Happy to open a PR if this approach aligns with the intended export behaviour.

Arjav1512 avatar Jan 10 '26 13:01 Arjav1512