![]() |
![]() |
|
Current Projects: PHP on XP Guide — NFO Viewer — Easy Reflections — Photon Storm — HotWire — FileGlider
Friday, January 18. 2008Easy Reflections v2.1 ReleasedTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
I can't get reflect.php (v2.1) to work unless I delete this:
$source_image = $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . $source_image;
...around line 68. If I delete that it works.
Why is that?
#1
on
2008-02-02 18:02
I'd also like to ask - what's the easiest way to use this script (v 2.1) to save the final reflect image to a file on my server, so I can use it later?
#2
on
2008-02-02 18:13
I would add another good reason to use your nice easy reflections script, that is: when using modalbox (another very nice free script, written JS) it's difficult to use JS reflection script WITHIN modalbox, because of AJAX. Using your script the problem is just solved ;-)
thank you very much
To add the merge ability to v3 add the below code around line 356 - before output but after applying fade. Code is just a modification of the v2 code
----------------------------------------------------------------
Source Image Merge required?
----------------------------------------------------------------
*/
if (isset($_GET['merge']) && $_GET['merge'] == true)
{
$merged_output = imagecreatetruecolor($width, $new_height + $height);
imagealphablending($merged_output, false);
imagesavealpha($merged_output, true);
// Copy the source image
imagecopy($merged_output, $source, 0, 0, 0, 0, $width, $height);
// Copy our new reflection
imagecopy($merged_output, $output, 0, $height, 0, 0, $width, imagesy($output));
// Replace the output with this new version
$output = $merged_output;
}
/*
James
#4
on
2008-07-09 02:27
thanks for helping me solve a few problems, going to keep this in a remember me file!
This doesn't work with transparent gifs. There's a darker gray background to the reflection and nothing I tweak changes it to white.
#6
on
2008-12-15 10:35
The author does not allow comments to this entry
|
My AS3 Blog
Photon Storm Great PHP links
C7Y PHP Podcast CorePHP is hosted by |