Plugin Contributor
Imagely
(@imagely)
Hi @sysiphos,
Unfortunately, there are no such workarounds that’d allow importing folders of images to existing galleries.
Not really sure if this’ll help with your workflow but you can upload images by FTP to an existing gallery folder then scan the folder for new images from “Manage Galleries -> [Gallery Name] -> Gallery Settings[tab] -> Scan folder for new images”
Seems like a good idea, @imagely! This would explain, why the folder import does not offer that feature.
This might solve another problem, if the Scan folder for new images can support other things:
- replacement of images (I re-edited let’s say 30 of 200 images I’m the gallery and want to replace them with new version).
- Update metadata like tags, titles. I can either store them in the imagefile – in that case it’s like I described above – or would deliver side car xmp files (if NextGen Gallery supports car files).
- Is there a REST API command for Scan folder for new images?
If you can confirm one of this points, it would help me a lot!
-
This reply was modified 3 years, 2 months ago by
Sysiphos.
Hi @sysiphos,
Replacing and updating the existing images in automated way by uploading copies isn’t possible.
As for the REST API command for scanning folder for new images, I’ll have to check with the dev team to see if that’s something achievable.
Plugin Contributor
Imagely
(@imagely)
Hi @sysiphos,
There’s no such a REST API command but you can trigger/force a gallery folder scan with the following code:
$gallerypath = $wpdb->get_var("SELECT path FROM {$wpdb->nggallery} WHERE gid = '{$this->gid}'");
nggAdmin::import_gallery($gallerypath, $gallery_id);