foto
(Syv)
April 27, 2022, 6:18pm
1
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
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
chris
April 27, 2022, 6:42pm
3
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.
foto
(Syv)
April 27, 2022, 8:31pm
5
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
priort
(Todd Prior)
April 28, 2022, 5:01am
6
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…
Soupy
(Tim)
April 28, 2022, 7:33am
7
I raised an issue about this in February, that still had the problem after export, but it got not response:
opened 05:47AM - 03 Feb 22 UTC
no-issue-activity
**Did you buy darktable from an application store ?**
No
**Describe the bug/… issue**

As seen in the above screenshot, an export from dt from 4000 height down to 1028 height, the black frame line around the image is thicker on the left side of the image than the right, though there is no reason why that should be so, based on the settings:

Initially I thought the problem might be due to scaling interpolation, but I now believe the problem lies in the framing module. To test I exported the image at 100% and made two crops, the first of the bottom left corner, the second of the bottom right corner, as seen below:


Then I imported both into Krita, flipped the bottom left image horizontally, aligned the inside of the frame lines, and used a difference blend mode. The result is this:

What we see is a clear white strip down the right hand border, showing the different sizes.
If you require the krita document I will share it.
To my eyes it looks like the problem also exists with the top border, although I did not test it in this manner.
I turned all other modules in the pipeline on/off, and none effected the issue.
**Expected behavior**
Frame lines to be of equal width around the whole perimeter of the image.
**Which commit introduced the error**
Although I did not test it in this fashion back then, I believe the problem existed in at least 3.6
**Platform**
* darktable version : 3.8.0~git9.3034322bbd-1
* OS : Linux Kernel 5.13.0-27-generic
* Linux - Distro : Linux Mint 20.2 Cinnamon 5.07
* Memory : 32gb
* Graphics card : RTX 2060
* OpenCL installed : Y
* OpenCL activated : Y