andrewfreiday

Useless web programming tips and code snippets

  • Home
  • Home
  • /
  • 2010
  • /
  • November

Monthly Archives: November 2010

A slightly better/slightly worse imagefill algorithm for PHP

In my last post I was looking for a way to give simple images transparent backgrounds. I noted that PHP GD’s imagefill function wasn’t quite what I was looking for as it only replaced exact colours based on your starting image coordinates. I gave this problem some brief thought and came up with a slightly…

Read More
Nov 6 2010
PHP Programming No comments Andrew

Give a simple image a transparent background: “Transparentize”

I needed a quick and dirty script (that I took a few minutes to clean up and throw together in a class) that can take a basic JPEG and turn it into a transparent PNG around the edges. I called it “Transparentize” — only because I couldn’t find any proper term for this. I looked…

Read More
Nov 5 2010
PHP Programming 5 comments Andrew

About Andrew

Andrew Freiday is a software/web developer (PHP, C#) from Canada. He currently works in the educational industry.

Archives

  • December 2011
  • September 2011
  • June 2011
  • November 2010
  • August 2010
  • May 2010
  • April 2010

Meta

  • Log in
Thanks for scrolling this far!