Jan 28
Okay, so I dropped the bomb on this host transfer. There were problems initially with me having to wait to actually test my transferred files because of subdomain settings (and me simply copying the backup files from one host and transferring them to the other, completely forgetting about permissions). However, there seemed to be problems in the blog software's update with my site's configuration settings in this blog. That's all I can figure... I was unable to find the error(s) and so I simply uploaded a new, fresh install and pointed it to the old database data. I was surprised and happy to see that it would still work and just take control of the old data. I still need to compare which mods and configuration settings I had on the old blog and are now on this one...for instance: BBCode may not be enabled in comments yet.

Someone's asked me to explain how to setup and get xDebug working on Windows step-by-step, and then how to use it. I had wanted to do that today, but...I slacked off. Hopefully I can do that sometime this week - unless anyone else would like to take a stab at it (or find a link from somewhere else?). Note: I used Apache on Windows, so hopefully they're not using IIS.

What the heck else have you been up to if this only really took you like...3 hours of fiddling at most?
I've been trying to understand the Graphics Interchange Format file specifications. Why? Because I'm trying to figure out the best way to resize a transparent GIF image within PHP using the GD library, and keep the transparency. Some people have said that using the fopen/fread functions would be faster and less intensive than using the GD library functions, so I've been trying to understand the header and block bits/bytes of GIF images. Unfortunately, although I think I'm close, I still don't quite understand it. I've found this, this, and this (official) reference. I think the first two are probably the best references even if the third is the official specification. The only thing I need to really understand is exactly what ORDER these blocks are in. To do this, I've created two 1x2 pixel images, each with a black and white pixel, one image has a single pixel being transparent.

So, I'll use these two image tests as examples to look through the HEX/binary data and try to understand it a bit better.

After that, I still have to figure out what the best (most efficient) way to get/set the transparent information from one original image to a new created image will be. Anyone have any ideas or past experience? Just FYI, this has nothing to do with work, nor really anything to do with my own personal stuff. Someone asked for a favor and I've gone above and beyond, but I figure that I could probably use something like this in the future, so...

Posted by Brendon Kozlowski

0 Trackbacks

  1. No Trackbacks

0 Comments

Display comments as(Linear | Threaded)
  1. No comments

Add Comment


Standard emoticons like :-) and ;-) are converted to images.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

BBCode format allowed