Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by hippo (Bishop)
on Jan 07, 2021 at 12:16 UTC ( [id://11126527]=note: print w/replies, xml ) Need Help??


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

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.


🦛

  • Comment on Re^4: Adding a watermark to an image with GD::Image

Replies are listed 'Best First'.
Re^5: Adding a watermark to an image with GD::Image
by choroba (Cardinal) on Jan 07, 2021 at 13:25 UTC
    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.

Re^5: Adding a watermark to an image with GD::Image
by Bod (Parson) on Jan 07, 2021 at 18:17 UTC
    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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11126527]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-04-24 06:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found