PDA

View Full Version : [DHTML] CMotion Image Gallery Extended with PHP



nickreale
06-18-2006, 12:35 AM
1) CMotion Image Gallery Extended with PHP
2) Nick Reale www.handyheroes.com

3) I took the CMotion Image Gallery and extended it to read a directory of thumbnails, place the code into the CMotion image gallery and display the thumbnails. Very simple. There are only four configurable variables.

4) http://www.shellyreale.com/demo/demo2.php

or, ATTACHED BELOW (see #3 in guidelines below):

myyoungfamily
06-18-2006, 04:54 AM
Good call man! Very easy to use and makes this script a killer.

Is there any way to add an automatic image resize to this script?
and
Is there any way to have the php in a separate file like the DD PHP Photo Albumn script?
-Jonthan

nickreale
06-18-2006, 12:43 PM
The only way to do an image resize is either put in hard coded /variable image sizes in the PHP code or use a server side tool like Image Majik. Most servers don't provide that function so I did not include it.

Twey
06-18-2006, 01:15 PM
It's Image Magick :) Actually, it's possible to use the GD image-manipulation library, which most servers support.

nickreale
06-18-2006, 01:23 PM
Thanks Twey.. I'll give it a shot.

Twey
06-18-2006, 01:29 PM
Not all though -- remember to include a check:
$serverHasGD = function_exists("imageCreateFromGIF");

myyoungfamily
06-18-2006, 01:44 PM
Ok, this may be a stretch, but is it possible for the script to create the full-size image and the thumbnail? Or assuming that the file you upload is the full-size image, could the script keep that image and create an additional thumbnail?
-Jonathan

Twey
06-18-2006, 02:16 PM
Of course.

myyoungfamily
06-18-2006, 02:43 PM
Ok, let me have one of those, a small fries and large DP...

ddadmin
06-19-2006, 03:49 AM
A nice simple add-on. There are probably a lot of scripts on DD that could benefit from a corresponding backend script, namely, the scroller and image related scripts.