GIMP has ways to customize the status bar (according to presets, image windows, type and status), but there is currently no way to display the size of the layer -
This can be done by requesting a function - on the one hand, this is a simple task, and someone who is trying to collaborate with a project can solve this problem. On the other hand, the project suffers from a lack of human strength for development, and the “roadmap” has completely eliminated “layer sizes” (in the future they should simply expand / contract automatically, with export time options to fix sizes if necessary). In any case, it would be worth repeating it as a function on bugzilla.gnome.org
What can be done programmatically now is to write a small python script that will open its own GTK window with text input widgets and set the main loop to the script (python plugins in the GIMP run in a separate process, so it’s normal that they have their own main loop) - call at regular intervals something:
layer = pdb.gimp_image.get_active_layer (img) width = layer.width; height = layer.height
And adding these values to your window. The "img" parameter will be passed when the plug-in starts, and you will have to run one instance for each working image. (there is no PDB call to get the active image in GIMP).
UPDATE After the error request was opened by OP, this function was implemented in the GIMP development branch and is available as% x and% y codes that will be used in the status / title bar in GIMP git master (edit-> preferences → Windows Image -> Name and status). It should be available from GIMP 2.10 onwards.
UPDATE I found out that there is no easy way to find out the available codes for the status bar without checking the source code. Therefore, I insert them here:
%f: base filename %F: full filename %p: PDB id %i: instance %t: image type %T: drawable type %s: user source zoom factor %d: user destination zoom factor %z: user zoom factor (percentage) %D: dirty flag %C: clean flag %B: dirty flag (long) %A: clean flag (long) %m: memory used by image %M: image size in megapixels %l: number of layers %L: number of layers (long) %n: active drawable name %P: active drawable PDB id %W: width in real-world units %w: width in pixels %H: height in real-world units %h: height in pixels %u: unit symbol %U: unit abbreviation %X: drawable width in real world units %x: drawable width in pixels %Y: drawable height in real world units %y: drawable height in pixels %o: image color profile name %e: view offsets in pixels %r: view rotation angle in degrees
(Note that some may not be available in GIMP 2.8)