gallery/album with URL bbcode for forum

is imagemagick better than gd? i'm fairly sure my webhosting with dreamhost support imagemagick as i installed phpbb3 ages ago, during the setup, it did say support imagemagick and gd = PASSED.
 
is imagemagick better than gd? i'm fairly sure my webhosting with dreamhost support imagemagick as i installed phpbb3 ages ago, during the setup, it did say support imagemagick and dg = PASSED.

I think it is - i am going to include support in my script and get it to use that if its available.

---

I don't know whether you noticed....but a solution for having all the images display on the same row for forums when generating BB Code is a couple of posts above.

-----

wesley could you create a file called test.php with this code:

Code:
<?php
print_r(get_loaded_extensions());
?>

and post the results when you navigate to the page
 
Last edited:
oops my mistake

that's what i got with your test.php

Array ( [0] => libxml [1] => xsl [2] => xmlwriter [3] => dom [4] => xmlreader [5] => xml [6] => tokenizer [7] => session [8] => pcre [9] => SimpleXML [10] => SPL [11] => PDO [12] => SQLite [13] => standard [14] => Reflection [15] => pspell [16] => posix [17] => pdo_sqlite [18] => pdo_mysql [19] => mysqli [20] => mysql [21] => mcrypt [22] => mbstring [23] => json [24] => imap [25] => iconv [26] => hash [27] => gettext [28] => gd [29] => ftp [30] => filter [31] => exif [32] => date [33] => curl [34] => ctype [35] => calendar [36] => zlib [37] => openssl [38] => cgi-fcgi [39] => Zend Optimizer )
 
looking at what rob posted, i don't think imagemagick is a php extension. he's using exec to run it.

Yeah i dont know much :P....just skim-read this: this and thought that'd be worth a try. Still think it'd show under extensions though.

ImageMagick is definitely supported on Dreamhost and is in your path, fyi.

I am trying to find a way of finding whether imagemagick is loaded at runtime. How would i go about this?



------------

Wesley could you try this script now:

Code:
<?php
if ( extension_loaded('imagick') )
{
	echo "true";
}
elseif ( extension_loaded('imagick.so') )
{
	echo "true1";
}
else
{
	echo "false";
}
$ret_val = exec ("which convert");
echo $ret_val;

?>
 
Last edited:
I am trying to find a way of finding whether imagemagick is loaded at runtime. How would i go about this?

It's never loaded, you run it from the command line. I believe with Bash you could do:

Code:
<?php
exec("command -v convert &>/dev/null", null, $return);

if ( $return ) {
    // Convert exists
}
?>
 
Initial release with Imagemagick, but its not fully complete yet - it doesn't put the borders on, need to rearrange some of the code too.

.htaccess added so you can't view the album and thumb folders as requested.

Download eGallery

(Remember to change the variables at the top of the index.php page)

(The upload function is still not complete yet)
 
Last edited:
You have to open the 'index.php' file and change the variables at the top.

The default password is: "test" (without quotes)

EDIT:

For anyone that wants to know how to encrypt their password, run this script:


Code:
<?php

if ( $_POST['password'] )
{
	echo "<b>Your MD5 encrypted password is:</b><br /><br />" . md5 ( $_POST['password'] );
}
else
{
	echo "<form method=\"post\" action=\"\"><input type=\"text\" name=\"password\" value\"\" /><input type=\"submit\" value=\"encrypt password\" /></form>";
}

?>
 
Last edited:
Back
Top Bottom