Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'iPhoto albums' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
iPhoto albums
Authored by: bluehz on Oct 31, '02 10:52:46AM

Yea - gettingthe iPhotos into the dir is not really that big a deal. The problem comes in that each time you upload a picture or bacth upload, gallery does a pretty complex process of extracting the EXIF (digital camera info), name, etc. and outputs this to the server (in the near future to a MySQL db). Basically it registers the new picture with the server. So just putting the files in a location for gallery will not work - it won't even see them. Since its written in PHP I am thinking it would probably be a fairly easy thing to parse the iPhoto dir if desired and grab all. I am not taht proficient in PHP though :(.



[ Reply to This | # ]
iPhoto albums
Authored by: eduo on Oct 31, '02 12:05:33PM

There is, indeed, some work other than just "point it at the directory" but it can be that easy as well.

Thing is, gallery parses directories and then inserts those pictures in the webserver's directories. It will always create a copy of the files, that's the way it works.

I have Gallery and have used it for a while, never crossed my mind publishing it as a hint:

http://ciateq.net.mx/~eduo/gallery/
http://eduo.hopto.org/gallery/

I can add this:

1.-In the add photos dialog you can actually upload not only files one-by-one, but you can also upload a zip or gzip or tar file containing all your files and the program, after upload, will parse your file and show you the contents. You can also put a URL for a remote page or image and it will parse that as well. Finally: You can put a full path in your machine (if the server resides there) pointing to an image or a directory and Gallery will parse the directory and add all the pictures in it (it will still copy them, tho'). If you can't put your path because you get errors (the web server does not run as root, so it may not be able to see every directory in the machine) make sure the whole path you're putting is accessible by every user (putting chmod 755 in every directory in the path does the trick). This may be a security risk, so you can also decide to move the pictures to /Library/WebServer/Documents/newdirectory and ask Gallery to look for it there. I have added batches of hundreds of photos freshly taken from the camera this way (pointing to the directory within my pictures folder where I saved them from Image capture, I wouldn't touch iPhoto with a ten-foot pole)
2.-The program can also place movies in the gallery, although it'll use a generic thumbnail for them. mov and mpg work perfectly.
3.-The binaries required by gallery can easily be installed through Fink if you already have it. Those that aren't available (like jhead) compile without special tweaking in the mac (Jaguar, at least)
4.-The Gallery lists are very active and the developers are eager to help. If there is someone proficient with Java help can be lent to the Gallery Remote for better compatibility on the mac (A cocoa Java app anyone?).
5.-In the gallery website there are perl tools for converting folder into albums from the command line. You can supposedly have a folder full of directories and images and the perl tools can convert all of that to albums. I have never used these tools, tho'.
6.-Gallery can use both imagemagick and netpbm and will actually check for both. You need to have only one, tho'. The better one is netpbm but YMMV.

Eduo



[ Reply to This | # ]
iPhoto albums
Authored by: bluehz on Oct 31, '02 12:43:47PM

Do you know exactly where that perl scriptyou are talking about is? Seems like I saw it the other day on the Gallery site, but the link was dead. Then I just tried to find it again atteh Gallery site and I can not seem to locate it. It could be a solution to iPhoto integration.



[ Reply to This | # ]