Forums

[Plugin: NextGEN Gallery] Mass Batch Import or upload? (8 posts)

  1. ChuckRock
    Member
    Posted 5 months ago #

    I hope some one can help me. Here's what I am working with

    I have a large number of images, 47,950 images in 2,618 sub folders, that are in 219 folders.

    The current structure is like this

    Folder: Company/Make (219)
    Sub Folder: Year/Model (2,618)
    Images: Image/Name (47,950)

    What I would like to do is use the top folders as "Albums", the sub folders as "Galleries" and of course the Images as images. I need to have some way of reading this file/folder structure and adding it to NextGEN Gallery.

    I could create 2,618 zip files and upload them and then create 219 albums and then add the galleries that were created when I uploaded the zip files. But it would be a lot easier if there was some way to create the thumbnails offline, upload the entire file/folder structure using ftp or ssh, then importing an xml or rss file like you can with posts.

    From looking the tables in the database I maybe able to create some sql queries to add this. But I hope some one has already done this and can tell me and easier way. Because this will not be the last time I need to do this. I have close to 150,000 more image files to add down the road.

    Any help would be great.

    Thanks
    Chuck

  2. ChuckRock
    Member
    Posted 4 months ago #

    No body has any ideas???

  3. alexrabe
    Member
    Posted 4 months ago #

    Hi Chuck,

    this is a really large amount of images... never thought in this direction. To perform such a operation it require a bit more rework in the import routine, nothing which can be explained in one or two words.

    The plugin didn't support a xml/rss file import, I think it's better to parse the folder structure and create then galleries / albums, but this could cause script exectuion problems, due to the long scan time.

  4. ChuckRock
    Member
    Posted 4 months ago #

    I was going to start trying to just updated the database tables, but I pulled out a script compiler for creating automation scripts for software testing that I use to use.

    I have created a script that I can have Nextgen-gallery do the importing of the folders. But I have and issue. I need some way to know when Nextgen-gallery is finished creating new thumbnails before the script tells it to import the next folder. I have tried to watch for “Creating New Thumbnails” and if it’s still on the page wait. That works the first time, then it seems that text is still on the page but just not viewable. Is there some where I could add some text that would be there during the import and thumbnail creation, then goes away when it’s done? I can then have the script check for that and wait until Nextgen is complete before adding the next import.

    I am still going to work on trying to do the import by just updating the database tables. I would like to limit the resources that are being used on my web server and thumbnail creation use a chunk of resources. With having some were close to 150k more image files to add, I think it would cause a lot of slow down on the web server.

    Thanks
    Chuck

  5. ChuckRock
    Member
    Posted 4 months ago #

    Oh, one more thing how does the “Activate related images” setting in the general options work?

    Do you have to place something in the post to tell where the images will show up?

    Thanks, again

    Chuck

  6. macon_hare
    Member
    Posted 4 months ago #

    Did you find answer to your problem? I am trying to import images into Next Gen from 500 websites into 500 new WP Blogs. (Blogs will replace the websites) Have you found any scripts out there that import large files of images into Next Gen?

  7. alexrabe
    Member
    Posted 4 months ago #

    @ChuckRock
    I suggest to add a action hook for that : http://codex.wordpress.org/Function_Reference/add_action. if you have a bit PHP knowledge we can work on this together and write a addon plugin. Cotact me by mail if interested...

  8. ChuckRock
    Member
    Posted 4 months ago #

    I think I know what I need to do to insert the data in to the correct tables and I have been playing with some raw php code.

    I will update this in a few days when I am closer to having something that works.

    Chuck

Reply

You must log in to post.

About this Topic