about:jason Blog

Creating ‘mask layers’ using PHP GD

  1. Start with original image – $img
  2. Copy that image to a png – $copy
  3. Create a mask png image of the area you want in the circle/ellipse (a ‘magicpink’ image with a black shape on it, with black set to the colour of alpha transparency) – $mask
  4. Copy $mask over the top of $copy maintaining the Alpha transparency
  5. Change what you need to on $copy
  6. Copy $copy back over $img maintaining the Alpha transparency

Cape to Cairo

I figured out where the majority of my pay will be going … it will be spend on Sparletta and biltong at the South African shop around the corner from where I work –...

Hosting Headaches

I’m looking at buying a VPS through Linode as soon as my job situation stabilizes. Not really looking forward to porting my entire catalogue of sites, but the fact I am working at taking...

Tools of the Trade

As a developer/designer I spend far too much time trying to reconcile the differences between the Firefox and IE rendering engines. I’ve picked up a few habits that make it less painful, but until...

Previous Posts

I’ve decided to restrict access to the more personal areas of this journal – this is because the content covered in those areas is more intimate and I don’t really want that sort of...

Days that suck rock …

It’s been one of those days, you know the ones, you get out of bed, and before your feet even touch the floor, it starts to go wrong. As I said … one of...