Thursday, January 10, 2008

Update on GD vs ImageMagick

I decided it wasn't fair for me to compare gd and imagemagick when I was calling imagemagick through exec( "convert image.jpg -thumbnail 100x TN_image.jpg" ) so I decided to install the extension for php called imagick.

This had to be installed to PECL, it didn't work on my ubuntu 7.10 by just doing apt-get install php5-imagick.

Nice examples of how to use imagick on Mikko's blog. I couldn't follow his examples though as the version that was installed through PECL didn't have some of the functions he used. Would have been nice to put shadows on my thumbnails though.

Anyways I made the script that creates thumbnails through imagick and compared it to the script in my gallery that uses GD. It seems GD was ahead by just a bit this time, although the quality of the imagick thumbnails were far superior, probably because I had set the GD functions to use less resolution.


GD TEST


From this example the images were really huge (3000x4500 pixels 1.5-2mb), the thumbnails rendered by GD seems pixelated compared to what imagick produced.

IMAGICK TEST


Imagick created 12 thumbnails with very nice quality but was 2 seconds slower than GD.


Powered by ScribeFire.

Wednesday, January 9, 2008

GD vs ImageMagick

Well I've seen some code in php.net about creating thumbnails fast, basically some guy wrote an alternative to imagecopyresampled and called it fastimagecopyresampled. I decided to see how fast it really is, so to compare I created a script that would create thumbnails from a bunch of images using ImageMagick.

And here are the results:

Using ImageMagick to generate 6 thumbnails from a gallery.



Now using GD to generate the same thumbnails, I deleted the old ones.



It is clear who the winner is, definitely GD.



References:
http://us.php.net/manual/en/function.imagecopyresampled.php
http://www.php.net/manual/en/function.imagick-thumbnailimage.php
http://valokuva.org/?paged=2



Powered by ScribeFire.

Tuesday, December 4, 2007

Grub ERROR 17

WTF does that mean!!! Damn I can't boot back into my server :( all the files are still there, but the OS is shot, anyone got any suggestions on how to fix this?

Probably will have to reinstall ubuntu again, damn it!!!!

Note: fixed this by re-ordering the hard drives in the bios

Tuesday, November 20, 2007

Site downtime

I just wanted to say that comcast fucked up real bad, and apparently my neighbors were stealing my cable, fuck them all. Site should be back soon as comcast sorts everything out.

Wednesday, October 31, 2007

Moving the forum and galleria

Last night I "moved" the forum and the galleria to another server, well I didn't exactly move it, I just basically transferred all the database to the new server and mapped the drives from the old server to the new one. I'll have to physically move the drive later tonight.

What's amazing is that it worked out great! Far better than I expected, I really am impressed with Ubuntu(Linux) I'm never ever going back to using windows as a server ever again. Now if I could only transfer all the movies on my other ubuntu pc to this one, that would bring the pc running at home down to two.

So the site would be down again tonight but only for a little bit, and I expect no problem in moving the hard drives to the new server.


Powered by ScribeFire.

Tuesday, October 30, 2007

Updating server

I'm currently making backups of the database and migrating all the galleries to a new computer. Hopefully everything will turn out okay. Hmmm... let's seem I'm at 20 wpm now using dvorak keyboard layout, it seems to have a lot of promise with regards to speed, but my main concern is that I seem to be forgetting QWERTY the more I use dvorak.

After the backups I need to restore them to the new server, and then pray that SMF and all my other settings work on the new one.


Powered by ScribeFire.

Friday, October 26, 2007

Dvorak!!!

I've always been curious but never really took the time to learn dvorak... omg this is so painful... watching myself pitifully type soooo slow. A hunt and peck typist probably types faster than me. I'm gonna give this a try for several weeks and see how it goes.
http://en.wikipedia.org/wiki/Dvorak_Simplified_Keyboard