|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Database Discussion Forum This is the place to find help resolving those nagging questions you have about implementing and using all kinds of databases. Need help writing a query? Need an opinion on Oracle? Post here! |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello.
I have just started a free gravestone photo project. It is to be a resource for people researching their ancestors. The site is located at: http://www.ancestralbranches.com/tom...avestones.html People are starting to send in lots of photos. It would be helpful to have a database setup while this project is still new before it gets out of control. I would like something similiar to: http://iowagravestones.org/ I was told the script wouldn't be to difficult to make. But, I don't have any idea how to do it. My host doesn't support Cold Fusion. But, it does support PHP. So, would anyone be willing to make this work for me in exchange for some great links to their web site? I would really appreciate it. My home page is a PR7 and I have many internal pages with PR6 and PR5. I also have 3 other sites where I can put your link (1 is a dating theme the others genealogy). Thank you.
__________________
Genealogist |
|
||||
|
First you will need software to handle uploading and handling of graphics files. One that comes to mind is Gallery v 1.4.3-pl1 which is an SourceForge project that is over 4 years old.
Gallery can interface with some other CMS software such as Nuke 5.0+, NSN-nuke, Post-nuke, Geek Log, phpBB2, Mambo. I think Mambo may be the closest to what you have in mind. This does not mean that you cannot easily fit this in with other CMS too. You will have to find one that you will feel comfortable with, then mod it to include Gallery. Visit OpenSourceCMS for more details on Gallery and the above CMS. That is pretty much the easy part. What you are going to want to focus on is Search. You will have to keep that in mind when you blend the two together and how easily you can integrate some kind of Search system into it as well. This will require some modifying or additional coding to effect it. I would look to the people behind Gallery and the CMS you will be choosing - they all have excellent support forums and will be able to guide you from there. |
|
|||
|
I echo ronniethedodger's recommendation.
That's one of the best gallery scripts I've come across. It does take a little bit to set up and configure and knowledge of some php is helpful |
|
||||
|
I post this only after hesitating a good bit because Ronnie always has good advice, however..
I have written several apps for uploading, storing and displaying images - all without any special library files or supporting software, just using PHP / MySQL. I haven't taken particular notice whether my server has any special libraries installed, (you can check at: http://www.smbizhosting.com/phpinfo.php) but I only use PHP commands and everything is straight-forward and simple. PHP will even trim images if they are not the right size and can create thumbnail images "automagically". I don't like to use special supporting code or libraries when they aren't necessary. As for helping - I've currently got more work than I want already and am thinking of taking on another developer, but I'm sure there are plenty of capable people here who will offer. Code:
<?php
// (this is just a small part of some image code)
//
$thumbnail = imagecreate($dest_w,$dest_h);
$photo=imagecreatefromjpeg($imgfile);
imagecopyresized($thumbnail,$photo,$dest_x,$dest_y,$src_x,$src_y,$dest_w,$dest_h,$src_w,$src_h);
// ensure that original is within size limits
if(($src_w > $dest2_w) || $src_h > $dest2_h) {
$srcfinal = imagecreate($dest2_w,$dest2_h);
imagecopyresized($srcfinal,$photo,$dest_x,$dest_y,$src_x,$src_y,$dest2_w,$dest2_h,$src_w,$src_h);
imagejpeg($srcfinal,$imgfile,75);
chmod ($imgfile, 0766);
imagedestroy($srcfinal);
}
imagedestroy($photo);
imagejpeg($thumbnail,$thumbname,50);
chmod ($thumbname, 0766);
imagedestroy($thumbnail);
?>
|
|
||||
|
Ronnie,
Sorry for the delay, for some reason I am no longer getting email notifications from this forum. You can see what is installed on the server via the phpinfo link at: http://www.smbizhosting.com/phpinfo.php and it does show GD is installed. The commands are included in the standard PHP manual, to the best of my knowledge, this is all standard. Quality is set via a parameter: imagejpeg($srcfinal,$imgfile,75); (the 75 is the quality parameter I'm using there). I love that it can create thumbnail images on the fly. It can also do charts, text, etc. I do believe it can crop, but its been a year or so since I last read up on all this and I haven't attempted a crop programmatically because I haven't run into a situation calling for it. It would have to be a special case, because unlike Java, PHP can't "see" what is in the image and would be cropping blindly. OK I take that back. You COULD have PHP do a binary read on the image and write your own functions to "see" the image, I guess. |
|
||||
|
PHP may not be able to read the image, but the visitor sure could ... and with a little bit of JavaScript, you could feasibly allow them to supply those coords to feed back to the server.
I would imagine with the differences in browsers, it may be a little tricky to develop a usable click-and-drag outlining of the crop. That would be perfect for uploading graphics and prepping them for publication purposes. Quote:
|
|
|||
|
Hi melanie,
I am very familiar with the scripts you are asking for. I had to alter them for my web page. I could set up a database for you and the upload for the photo's also. Basically the same tech as on my page. http://www.sasdating.com |
|
|||
|
Hi everyone.
Sorry, for the delay in response. I didn't get an email telling me there was a response so I figured no one responded. Thank you all for your suggestions. I'm going to read them over a bit more and then respond to them.
__________________
Genealogist |
|
|||
|
Hi.
Well, Ronnie thanks for that info on different software I'd need. That is all over my head though. I think going the straight PHP route is easiest. Someone over at another forum I belong to offered to help later this week. He's helped me before with PHP (submit form) so I'm hoping it will work out. Also, I would like to upload the images myself. I don't want visitors to be able to upload them to the database. I'd like to keep control over it. Well, I let you guys know if it works out or if I run into some trouble. I think it's wonderful that you all responded to my thread. I wish I had seen the messages earlier. Thanks again. Melanie
__________________
Genealogist |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2010 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |