I have uploaded all my photos to my server into a folder (using iphoto hierarchy), when I installed gallery3 it said it would use 'var' as the folder containing the photos, how can i change this to use my folder that is already on the server?
First you wouldn't be able to use an existing folder. Second, if you want to change the name or location of the var folder you'll need to edit a handful of files, it's not just one place you'll need to make that change.
You can import those photos you already have on the server into G3 using the Server add plugin. But you will end up with 2 copies until you delete the original ones. Right now, IIRC G3 doesn't have a symlink option like G2 has. I think someone was going to work on that, but don't know if it's made it into the code or gallery3-contrib yet.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
VENCO
Joined: 2004-03-01
Posts: 78
Posted: Tue, 2009-08-04 16:44
The best thing to do is to use the Server Add module. Enable the module by going to Admin -> Modules.
Then go to Settings -> Server Add to enter the path of the directory you put your pictures in.
Next go back to your gallery (exit the admin panel). Go to "Add photos" and select "Add from server".
The server will then copy all those pictures in the proper directory structure into the var directory.
Once the images have been added via Server Add you can delete the directory to which you uploaded the pictures originally.
As far as I know, there is no way to force it to use the directory of images you uploaded. The directory structure wouldn't be right.
Thats great, thank you nivekiam and VENCO, much appreciated.
mikenorris
Joined: 2009-08-04
Posts: 13
Posted: Tue, 2009-08-04 17:38
I have tried this, and it doesn't do anything, i have changed the settings within server ad module and it says it finds some photos, (first try it found 475, second try it found 68 and third try it found 1449) i know there are just short of 7000 photos but so far it stops (or stalls) i don't know whats causing the problem.
If anyone could help I would very much appreciate it.
exec is disabled so that rules out using ImageMagick. So you can only use GD and 20MB of memory is not going to cut it for that unless you only use small images.
Try the htaccess option. If you can't raise the memory limit, talk to your host, if they won't do it, find a different host.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
mikenorris
Joined: 2009-08-04
Posts: 13
Posted: Tue, 2009-08-04 19:27
Ok I thought that might be your answer, I think the htaccess worked as it found more photos this time, but I increased it further then it stopped at about 60 photos again. Should I upload them from the subfolders? would this help? For example at the moment I have 'folder_name/2003' through 'folder_name/2009' if I did these sub folders individually this should make it better? My SiteMy BlogMy Gallery
nivekiam
Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2009-08-04 19:36
Smaller batches might help.
Hate to break it to you, but your memory limit is still at 20MB, check your phpinfo, unless you've only changed that inside your Gallery directory.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
mikenorris
Joined: 2009-08-04
Posts: 13
Posted: Tue, 2009-08-04 19:40
I've set it to 48 with htaccess at gallery.michaelnorris.co.uk, does that mean higher beings have capped it? My SiteMy BlogMy Gallery
mikenorris
Joined: 2009-08-04
Posts: 13
Posted: Tue, 2009-08-04 19:52
All the photos are currently stored within a folder in the subdomain gallery.michaelnorris.co.uk, so could I not just move the photos from the folder they are in now to the var/albums folder or would that not work.
Yes, that means your host has put a hard limit of 20MB on PHP. You'll need to talk to them about increasing this or enabling exec. If they'll do neither, I strongly suggest finding a useful host
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
mikenorris
Joined: 2009-08-04
Posts: 13
Posted: Tue, 2009-08-04 20:33
Does anyone have any other suggestions as to how to get my photos that are already on the server into the gallery application?[p]
@nivekiam firstly, thank you for all your help this evening and secondly, who would you suggest as a host who can do all that we've discussed so far?[p]
For getting your photos into Gallery, you'll need to process them in smaller batches, a couple at a time, maybe 1 at a time Or make them smaller on your computer, then upload them so GD doesn't have to work as hard.
But I don't know of any UK recommendations....
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
mikenorris
Joined: 2009-08-04
Posts: 13
Posted: Tue, 2009-08-04 20:43
At the moment, my folders 2003, and 2004 have worked, 2005 and so on have too many photos in them, if however I go even further down the folder hierarchy and go into 2005/subfolder, this will then show up on the home page as 2003 album, 2004 album, 2005/subfolder album1, 2005/subfolder album2 etc. But, once they are in the application, can they be moved around?
[p]
But, once they are in the application, can they be moved around?
Yes, don't know if you'll run into memory issues though.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Just a FYI about GD and memory:
Say you have an image that is 2576 X 1932
>>> That is only a 1.4 Meg image compressed (jpeg)
>>> Uncompressed: 2576 X 1932 X 4 = ~20Megs!
Then remember that the php script (G2/G3) itself has to share what is left over... if anything.
Posts: 16504
First you wouldn't be able to use an existing folder. Second, if you want to change the name or location of the var folder you'll need to edit a handful of files, it's not just one place you'll need to make that change.
You can import those photos you already have on the server into G3 using the Server add plugin. But you will end up with 2 copies until you delete the original ones. Right now, IIRC G3 doesn't have a symlink option like G2 has. I think someone was going to work on that, but don't know if it's made it into the code or gallery3-contrib yet.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 78
The best thing to do is to use the Server Add module. Enable the module by going to Admin -> Modules.
Then go to Settings -> Server Add to enter the path of the directory you put your pictures in.
Next go back to your gallery (exit the admin panel). Go to "Add photos" and select "Add from server".
The server will then copy all those pictures in the proper directory structure into the var directory.
Once the images have been added via Server Add you can delete the directory to which you uploaded the pictures originally.
As far as I know, there is no way to force it to use the directory of images you uploaded. The directory structure wouldn't be right.
_________________________
[img]http://indefik.com/pics/forumrandom.jpg[/img] (Random picture from my G2)
[img]http://indefik.com/pics/lyricsrepositorysmall.jpg[/img]
Posts: 13
Thats great, thank you nivekiam and VENCO, much appreciated.
Posts: 13
I have tried this, and it doesn't do anything, i have changed the settings within server ad module and it says it finds some photos, (first try it found 475, second try it found 68 and third try it found 1449) i know there are just short of 7000 photos but so far it stops (or stalls) i don't know whats causing the problem.
If anyone could help I would very much appreciate it.
Thanks
Posts: 16504
Sounds like you're probably hitting resource limits on the server. Post a link to phpinfo, this link explains how:
FAQ: What information is required when I ask for help in the forums?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 13
Thanks, the link is http://gallery.michaelnorris.co.uk/phpinfo.php
Posts: 16504
exec is disabled so that rules out using ImageMagick. So you can only use GD and 20MB of memory is not going to cut it for that unless you only use small images.
Try increasing your memory limit, this explains how. 32MB might be enough, but might need 42MB or 48MB.
FAQ: PHP memory_limit - Why do I get the error Allowed memory size of Xxx bytes exhausted?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 13
I can't edit phpini. Will this be a problem with your solution?
My Site My Blog My Gallery
Posts: 16504
Try the htaccess option. If you can't raise the memory limit, talk to your host, if they won't do it, find a different host.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 13
Ok I thought that might be your answer, I think the htaccess worked as it found more photos this time, but I increased it further then it stopped at about 60 photos again. Should I upload them from the subfolders? would this help? For example at the moment I have 'folder_name/2003' through 'folder_name/2009' if I did these sub folders individually this should make it better?
My Site My Blog My Gallery
Posts: 16504
Smaller batches might help.
Hate to break it to you, but your memory limit is still at 20MB, check your phpinfo, unless you've only changed that inside your Gallery directory.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 13
I've set it to 48 with htaccess at gallery.michaelnorris.co.uk, does that mean higher beings have capped it?
My Site My Blog My Gallery
Posts: 13
All the photos are currently stored within a folder in the subdomain gallery.michaelnorris.co.uk, so could I not just move the photos from the folder they are in now to the var/albums folder or would that not work.
My Site My Blog My Gallery
Posts: 27300
Nope
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 13
@dave ahh bugger, that would be too simple ;)
My Site My Blog My Gallery
Posts: 16504
Yes, that means your host has put a hard limit of 20MB on PHP. You'll need to talk to them about increasing this or enabling exec. If they'll do neither, I strongly suggest finding a useful host
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 13
Does anyone have any other suggestions as to how to get my photos that are already on the server into the gallery application?[p]
My Site | My Blog | My Gallery
Posts: 13
@nivekiam firstly, thank you for all your help this evening and secondly, who would you suggest as a host who can do all that we've discussed so far?[p]
My Site | My Blog | My Gallery
Posts: 16504
For getting your photos into Gallery, you'll need to process them in smaller batches, a couple at a time, maybe 1 at a time Or make them smaller on your computer, then upload them so GD doesn't have to work as hard.
As for hosts:
http://gallery.menalto.com/node/88391#comment-310594
But I don't know of any UK recommendations....
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 13
At the moment, my folders 2003, and 2004 have worked, 2005 and so on have too many photos in them, if however I go even further down the folder hierarchy and go into 2005/subfolder, this will then show up on the home page as 2003 album, 2004 album, 2005/subfolder album1, 2005/subfolder album2 etc. But, once they are in the application, can they be moved around?
[p]
My Site | My Blog | My Gallery
Posts: 16504
Yes, don't know if you'll run into memory issues though.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 13
Ok, I'll give that a try.
Thanks
[p]
My Site | My Blog | My Gallery
Posts: 27300
Just a FYI about GD and memory:
Say you have an image that is 2576 X 1932
>>> That is only a 1.4 Meg image compressed (jpeg)
>>> Uncompressed: 2576 X 1932 X 4 = ~20Megs!
Then remember that the php script (G2/G3) itself has to share what is left over... if anything.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team