v98.4: Batch Convert -> Text -> Shadow: not remembered correctly

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

dietmar
Posts: 107
Joined: Fri Oct 25, 2013 4:55 pm

v98.4: Batch Convert -> Text -> Shadow: not remembered correctly

Post by dietmar »

XnView: MP 0.98.4 - 64 bit
OS: Linux 64bit

Shadow offsets are not stored/restored correctly when placing taxt in batch convert

Pierre,
there's something wrong with saving/restoring the shadow offsets when adding text to an image in batch convert.

Take any image, open batch convert.

Select adding a Text, select bottom right corner, any text and font at a reasonable size.
On the Shadow tab, activate the shadow function and select offsets and blur to place the shadow towards the bottom right corner.
Repeatingly look at the preview and change parameters until the shadow fits your choice.
Save the settings to an xbs.
Convert the image and close Batch Convert.
Everything looks as it should.

Now restart Batch Convert using the same original image.
Settings should be exact as before.
Let MP recalculate the preview.

Oops: The shadow has moved and is no longer where you wanted it.

Even closing XnView and reloading the stored xbs generates the wrong shadow position.

Let me know if you need more information to reproduce. To me it happens with any image and setting.

Regards
Dietmar
dietmar
Posts: 107
Joined: Fri Oct 25, 2013 4:55 pm

Re: v98.4: Batch Convert -> Text -> Shadow: not remembered correctly

Post by dietmar »

Addition:

The misplacement is related to the Blur radius chosen.

Simple example: X-Offset = 1 (%), Y-Offset = 1, Blur = 0
works as expected, even after saving and restring the xbs.

Now change Blur to 4 and look at the preview. The shadow moves away from the text.

Looks like you place the blurred shadow calculated from its lower left corner instead of its center.

Regards
Dietmar
User avatar
xnview
Author of XnView
Posts: 38268
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: v98.4: Batch Convert -> Text -> Shadow: not remembered correctly

Post by xnview »

yes right, offset are moved with blur radius
Pierre.
dietmar
Posts: 107
Joined: Fri Oct 25, 2013 4:55 pm

Re: v98.4: Batch Convert -> Text -> Shadow: not remembered correctly

Post by dietmar »

xnview wrote: Tue Sep 14, 2021 6:44 am yes right, offset are moved with blur radius
They shouldn't ;-)
Or at least the calculations should be identical at first setting and after reloading batch convert.

Regards
Dietmar