Fill bar in darktable

DT 3.8.1 on Debian

I have images in the 16:9 format that I want to display in square format 1:1 and I don’t want to crop.

Is there a way to add a fill at the top/bottom of the 16:9 image to make it 16:16 (1:1)?

I thought of the frame but I only want some at the top and some at the bottom with zero sides and I haven’t found a way of doing this in DT.

Right now, I’m using GIMP, creating a blank canvas with the correct size and importing the DT’s TIFF, then saving it as an xcf and exporting as either a tiff or jpeg.

In DT would be a lot easier :grinning:

Thanks

You can get close by using the framing module with a “square” aspect and a very small “border size” (0.01% seems to work, 0% doesn’t)

1 Like

You can do this with the framing module.

Yes, 0.01% is practically no border:


If you don’t know how to set 0.01%: Right click on the slider and type in with keyboard.

I just tried with an fluorescent orange to see and I found the even with the 0.01%, there’s no border on the left side and there’s a tiny border (1 or 2px wide) on the right side when viewed at 125%.

BUT, that’s only on the DT display in the darkroom. There’s none on the left and right side after the jpeg 100% quality full size export.

Thanks

1 Like

You could just mask it and add black or whatever with colorize…so rectangular mask and fill with black…??

Not sure if it is worth it to clean up the small border…

EDIT

You can tweak the grid for alignment and then just use 2 gradient masks with no feather…

Might not be what you want…

You could even mix it up a bit…

I raised an issue about this in February, that still had the problem after export, but it got not response: