Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: GD colorAllocate not changing colour -- working example

by Bod (Parson)
on May 21, 2021 at 21:13 UTC ( [id://11132862]=note: print w/replies, xml ) Need Help??


in reply to Re^3: GD colorAllocate not changing colour -- working example
in thread GD colorAllocate not changing colour

make your post harder to understand for non native english speakers

Sorry - so many of the non-English natives on this site use such good English that it is very, very easy to forget it's not your native tongue.

you never set $resize background to white!

No I don't. Why would I?
$resize contains the picture, not the background. Setting the background of the picture turns it white which is not what I want.

Thanks for the working example. It reinforces that I am (probaly) approaching the problem the right way. However, when I plug in a picture instead of a pattern build in GD it reverts to not setting the background. It seems to be a problem with actual pictures. Connecting that with what afoken has suggested, it seems likely that it is to do with the colour palette of the picture.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-03-29 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found