Darktable - 2 Watermark Instances/Presets appear with differents sizes

Hello,

I’m using darktable 5.4 on Arch but this also happened with 5.2.1:

I have 2 presets for the Watermark module both have the same font/scale settings.
The 1. preset called EXIF_Data prints default Exif Data in the right lower frame corner.
The 2. preset called EXIF_Camera_Lense prints Camera and Lense information from EXIF in the right lower frame corner.

If I shift the texts so that they overlap, the right one appears to be a bit bigger even so they are identically from the settings.
For example the S from Sony and ISO have different sizes:

Here a 2 screenshots of the settings:



Font size is 10 in both cases:

I’ve also exported the .dtpreset files if that’s helpful:

EXIF_Data.dtpreset

<?xml version="1.0" encoding="UTF-8"?>
<darktable_preset version="1.0">
    <preset>
        <name>EXIF_Data</name>
        <description></description>
        <operation>watermark</operation>
        <op_params>
            gz03eJxjYDjhNHPmTPuEpwF7HSxN9nAwQAALAwMDMwMDAyMDA0NxZm5BTqpuSWpFiV5xWToDOo0MAqB0AZS+uFg9WDGMgUEfZBADA8MHuVRDlTBM2gAqfyAiEcxHpw2h8gqKEPXoNCPIsSDwKRlinlsKmE6Amg8Cl6FKQEZNCIeIO6C5e6GfEti9yEBFwzXC003PNSLAPzg0yFVT4VHDIoU0faiwY4BrUAhcGCro5u8cGqzn4hkc4ujn7KqZmwuW9Az2hynwDPbXZIDRDAwMDlB/wtwDox86qqG4x0Ae4Z/ryP6BigswovrnIDeqfhhYsKRpSUM9mNnAgAc05L8Cq7sIE4CG24OoRJTwRaevwPTzQvjo9FVYOuGD8NHpa1D5A1D70GmY32HhAaM3QMUVoLSQPyQ+uy2g6plQw2eTFPbwaViPPXxcUrMSw0oVghPzihUMDRjQaYYDOyDpTgEaPgWW7TBzwAAAWySWow==</op_params>
        <op_version>7</op_version>
        <enabled>1</enabled>
        <autoapply>0</autoapply>
        <model>%</model>
        <maker>%</maker>
        <lens>%</lens>
        <iso_min>0.000000</iso_min>
        <iso_max>340282346638528859811704183484516925440.000000</iso_max>
        <exposure_min>0.000000</exposure_min>
        <exposure_max>340282346638528859811704183484516925440.000000</exposure_max>
        <aperture_min>0.000000</aperture_min>
        <aperture_max>340282346638528859811704183484516925440.000000</aperture_max>
        <focal_length_min>0</focal_length_min>
        <focal_length_max>100000</focal_length_max>
        <blendop_params>
            gz08eJxjYGBgYGFgYJBggIETTgxogBVdgIGBgRGLGANDgz0Ej1Q+A1ZQMevKARDGxccF/v///x/EAACbGCeh</blendop_params>
        <blendop_version>14</blendop_version>
        <multi_priority>0</multi_priority>
        <multi_name>EXIF_Data</multi_name>
        <multi_name_hand_edited>0</multi_name_hand_edited>
        <filter>0</filter>
        <def>0</def>
        <format>7</format>
    </preset>
</darktable_preset>

EXIF_Camera_Lense.dtpreset

<?xml version="1.0" encoding="UTF-8"?>
<darktable_preset version="1.0">
    <preset>
        <name>EXIF_Camera_Lense</name>
        <description></description>
        <operation>watermark</operation>
        <op_params>
            gz03eJz7//+408yZM+0dtnjYOlia7GFjgAAWBgYGZgYGBkYGBobizNyCnFTdktSKEr3isnQGZBAApQug9MXF6sGKYQwM+iCNDAwMH+RSDVXCMGkDqPyBiEQwH502hMorKELUo9OMIMeBwKdkiHluKWA6AWo+CFyGKgEZNSEcIu6A5u6Ffkpg96KDgkT5JQ31YGaDioZrhKebnq+jt2uQpgKM5+/i6qOp8KhhEUzEx9UvWJNBAWLPhnBU/4IALExAlAPUnzD3wOiHjmoo7jGQR+i/juwfqLgAI6p/DnKj6oeBBUua4P5hwAMa8l+B1V2ECUD98SAqESV80ekrMP28ED46fRUWrnwQPjp9DSp/AGofOg3zOyw8YPQGqLgClBbyh8RntwVUPRNq+GySwh4+DeuJCx+X1KzEsFKF4MS8YgVDAwaGAzsg6U4BGj4Flu0wc8DACuZvqDgANU2Jew==</op_params>
        <op_version>7</op_version>
        <enabled>1</enabled>
        <autoapply>0</autoapply>
        <model>%</model>
        <maker>%</maker>
        <lens>%</lens>
        <iso_min>0.000000</iso_min>
        <iso_max>340282346638528859811704183484516925440.000000</iso_max>
        <exposure_min>0.000000</exposure_min>
        <exposure_max>340282346638528859811704183484516925440.000000</exposure_max>
        <aperture_min>0.000000</aperture_min>
        <aperture_max>340282346638528859811704183484516925440.000000</aperture_max>
        <focal_length_min>0</focal_length_min>
        <focal_length_max>100000</focal_length_max>
        <blendop_params>
            gz08eJxjYGBgYGFgYJBggIETTgxogBVdgIGBgRGLGANDgz0Ej1Q+A1ZQMevKARDGxccF/v///x/EAACbGCeh</blendop_params>
        <blendop_version>14</blendop_version>
        <multi_priority>0</multi_priority>
        <multi_name>EXIF_Camera_Lense</multi_name>
        <multi_name_hand_edited>0</multi_name_hand_edited>
        <filter>0</filter>
        <def>0</def>
        <format>7</format>
    </preset>
</darktable_preset>

I hope someone can tell where my mistake is. Thanks a lot!

1 Like

This is an area were Dt’s watermarks could be improved. If you have a watermark and start typing in additional letters you will see that the text reduces in size. It might be nice to have the ability to type at some specific size such as font size which doesn’t change as you type more letters. But it is what it is unless some developer can work out a better way for the text size to be set.

Well the size is based on the “marker height”, so it should be immune to the width of the text. But I have no idea about the possible problem here.

1 Like

Would the issue be that SVG is inherently scalable, and the marker is inside the SVG file? if the two aren’t scaled the same amount (and I don’t see anything that forces the svg scaling to be the same for both texts), you’d get different text sizes…

That is why I can’t use watermarks in micrographs to add a scale bar: such scale bars have to stay the same size in pixels (and not as a fraction of the image size), whatever the size of the image; especially cropping should not change the size of the scale bar…

1 Like

As far as I understand the different replies this is some kind of bug so I’ve raised an issue:

1 Like

@Pascal_Obry
Thanks for investigating the problem! I’ve tested your suggestion and this fixes my problem.

The behaviour can be fixed by using “fixed-size-text (svg)” as marker.

2 Likes