thumbnailator icon indicating copy to clipboard operation
thumbnailator copied to clipboard

Allow setting margins (insets) for watermarks

Open rider87 opened this issue 4 years ago • 4 comments

Hi all,

Is there a possibility to have margin for the watermark? Like you maybe know from Lightroom?

Please see this example... There is a space between bottom and left side... Is this also possible?

image

rider87 avatar Sep 21 '21 13:09 rider87

I believe it´s just to adjust this code: image

Currently only one value is there... Can we do margin for

  • top
  • bottom
  • right
  • left

rider87 avatar Sep 21 '21 13:09 rider87

Are you asking whether it's possible to have top/bottom/left/right margins to be set independently? If that's the case, as you found in the code, right now that's not possible.

coobird avatar Sep 21 '21 15:09 coobird

yes, correct.... currently I can see to set only one value for all (top/bottom/left/right)...

Can this be implemented? I believe there needs just to add 3 addtional parameters to the function...

rider87 avatar Sep 21 '21 15:09 rider87

I'm hesitant to add yet another overload for the watermark method to the Thumbnailator API, especially one that has 7 arguments. That said, I'll keep this issue open as this sounds like a valid use case.

coobird avatar Nov 23 '21 14:11 coobird