Skip to content

Display image dimensions and aspect ratio in status bar#2013

Open
j03l wants to merge 1 commit intoPintaProject:masterfrom
j03l:feature/statusbar-image-dimensions
Open

Display image dimensions and aspect ratio in status bar#2013
j03l wants to merge 1 commit intoPintaProject:masterfrom
j03l:feature/statusbar-image-dimensions

Conversation

@j03l
Copy link

@j03l j03l commented Feb 27, 2026

Add a new status bar widget showing image dimensions and simplified aspect ratio (e.g. "800 × 600 · 4:3"). The label updates on resize, rotate, undo/redo, and document switching.

The selection size widget previously showed the canvas dimensions (e.g., "800, 600") even when no selection was active. This was because ResetSelectionPaths() in Document.cs creates an invisible selection rectangle covering the full canvas, and the status bar handler read its bounds without checking Selection.Visible.

Before my changes, this was arguably useful, it was the only place showing the canvas dimensions. But now that I've added a dedicated image dimensions widget ("800 × 600 · 4:3"), showing the same numbers in the selection widget is redundant and misleading. It looks like there's an active selection when there isn't one. So I hide the selection widget entirely until the user actually makes a selection.

image

Ref: #1994

Add a new status bar widget showing image dimensions and simplified
aspect ratio (e.g. "800 × 600 · 4:3"). The label updates on resize,
rotate, undo/redo, and document switching.

Also hide the selection size widget when no selection is active,
instead of showing the full canvas dimensions.

Ref: PintaProject#1994
@cameronwhite
Copy link
Member

Thanks for working on this!

I'll look through the code more closely later but gave it a quick try
Trying it out on macOS I had some layout issues (attached video)

  • There is a lot of extra space to the right
  • After making a selection the palette ends up being cut off. This probably depends on the window size and how much space is available
statusbar.mp4

@j03l
Copy link
Author

j03l commented Feb 28, 2026

Thanks for working on this!

I'll look through the code more closely later but gave it a quick try Trying it out on macOS I had some layout issues (attached video)

  • There is a lot of extra space to the right
  • After making a selection the palette ends up being cut off. This probably depends on the window size and how much space is available

statusbar.mp4

Interesting! The palette being cut off is actually in the live version of Pinta. I'll have a play around.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants