PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, October 11, 2022

[FIXED] How to use imagefill() from file?

 October 11, 2022     gd, php     No comments   

Issue

Thanks for looking at this question.

I wanted to know how can I use the GD function imagefill() to patch an image with another image.

imagefill() currently accepts resource of a color.

I can do that. But wanted to know how this can be done with a file.

I noticed a user note - But that didn't worked and took a long time for completion :-( http://www.php.net/manual/en/function.imagefill.php#84288


Solution

Okay people, have figures it out...

One needs to use imagecopymerge() function to achieve what i was trying to.

Thanks to all the viewers!



Answered By - kapeels
Answer Checked By - Katrina (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing