Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Adding a watermark to an image with GD::Image

by clueless newbie (Curate)
on Jan 07, 2021 at 12:09 UTC ( [id://11126526] : note . print w/replies, xml ) Need Help??


in reply to Re^2: Adding a watermark to an image with GD::Image
in thread Adding a watermark to an image with GD::Image

... or use a font that is in itself an outline.

Some outline fonts.
  • Comment on Re^3: Adding a watermark to an image with GD::Image

Replies are listed 'Best First'.
Re^4: Adding a watermark to an image with GD::Image
by hippo (Bishop) on Jan 07, 2021 at 12:16 UTC

    It's a nice idea, but won't that suffer the same problem? ie. Bod will still need to contrast that outline with the image background otherwise it might still be black-on-black or whatever.


    🦛

      It shouldn't, as at least one of the outline or the fill colour should be visible.

      map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
        one of the outline or the fill colour should be visible

        I could be wrong but I don't think outline fonts have two different colours. They have a solid outside and a transparent inner.

      but won't that suffer the same problem?

      I think it will hippo but I am currently looking for a suitable TTF file to test it out...

      Update...
      As expected, an outline font doesn't help as the middle bit is transparent.

      This still looks OK but
      This doesn't...

      The text overflows the images because the font is much wider than the one I originally used.