Is there a way to have Gallery2 re-sync its database from the albums folder?
Ideally, look for new/removed images and re-read IPTC data on files that have changed?
Dammn... I've a lot of photos to organise, and I wanted to upload them to Gallery, but then be able to re-sync IPTC data as I go through and update them. I was thinking the easiest way was to simply update the files directly and then have Gallery re-read that data.
Does Gallery have the ability to write IPTC data back to files at all? Maybe I could do the updates via Gallery.
floridave
Joined: 2003-12-22
Posts: 25951
Posted: Sun, 2008-04-13 16:46
Quote:
Does Gallery have the ability to write IPTC data back to files at all?
not at the moment. It reads the data and you can display the data.
The map module writes data to the EXIF but that is far as it goes.
I'm finding that some photos aren't having their IPTC keyword tag data read into the database. I'm uploading the files to the server, then using the Local add. Odd behaviour as some files are reading in ok and others arent, and if I remove/re-add a specific folder then the keywords are added in ok (so doesn't seem to be damaged jpg files or anything).
Will experiment a bit more, but is there any debug log that might help?
adrianmarsh
Joined: 2008-04-05
Posts: 7
Posted: Sun, 2008-04-13 18:41
I found the debug options, and logged it to a file, but I had some other issues (which may lead to the above). Basically, if I try to add a parent folder, then eventually Gallery would error out. If I added each subfolder individually, they would succeed (except one, which again needed to be added as individual subfolders).
Turning on debug, I get the below in the browser (eventually). I'm guessing its a resource issue, maybe somethine I need to tweak in php.ini
Quote:
Notice: Undefined index: Model in /home/webdisk/testing/gallery2/modules/exif/lib/exifer/makers/olympus.inc on line 116
Notice: Undefined index: Model in /home/webdisk/testing/gallery2/modules/exif/lib/exifer/makers/olympus.inc on line 116
Notice: Undefined index: Model in /home/webdisk/testing/gallery2/modules/exif/lib/exifer/makers/olympus.inc on line 116
Notice: Undefined index: Model in /home/webdisk/testing/gallery2/modules/exif/lib/exifer/makers/olympus.inc on line 116
Notice: Undefined index: Model in /home/webdisk/testing/gallery2/modules/exif/lib/exifer/makers/olympus.inc on line 116
Notice: Undefined index: Model in /home/webdisk/testing/gallery2/modules/exif/lib/exifer/makers/olympus.inc on line 116
Notice: Undefined index: Model in /home/webdisk/testing/gallery2/modules/exif/lib/exifer/makers/olympus.inc on line 116
Notice: Undefined index: Model in /home/webdisk/testing/gallery2/modules/exif/lib/exifer/makers/olympus.inc on line 116
Warning: fopen(/var/log/gallerydebug) [function.fopen]: failed to open stream: Too many open files in /home/webdisk/testing/gallery2/modules/core/classes/Gallery.class on line 746
Warning: fopen(/var/log/gallerydebug) [function.fopen]: failed to open stream: Too many open files in /home/webdisk/testing/gallery2/modules/core/classes/Gallery.class on line 746
Warning: fopen(/var/log/gallerydebug) [function.fopen]: failed to open stream: Too many open files in /home/webdisk/testing/gallery2/modules/core/classes/Gallery.class on line 746
Warning: fopen(/var/log/gallerydebug) [function.fopen]: failed to open stream: Too many open files in /home/webdisk/testing/gallery2/modules/core/classes/Gallery.class on line 746
Warning: fopen(/var/log/gallerydebug) [function.fopen]: failed to open stream: Too many open files in /home/webdisk/testing/gallery2/modules/core/classes/Gallery.class on line 746
Warning: fopen(/var/log/gallerydebug) [function.fopen]: failed to open stream: Too many open files in /home/webdisk/testing/gallery2/modules/core/classes/Gallery.class on line 746
Warning: fopen(/var/log/gallerydebug) [function.fopen]: failed to open stream: Too many open files in /home/webdisk/testing/gallery2/modules/core/classes/Gallery.class on line 746
Warning: fopen(/var/log/gallerydebug) [function.fopen]: failed to open stream: Too many open files in /home/webdisk/testing/gallery2/modules/core/classes/Gallery.class on line 746
Warning: copy(/home/webdisk/gallery2_data/albums/Scanned From Negs/Folder Set 21/Negative Set 21-5/image0508.jpg) [function.copy]: failed to open stream: Too many open files in /home/webdisk/testing/gallery2/modules/core/classes/GalleryPlatform.class on line 65
Warning: Cannot modify header information - headers already sent by (output started at /home/webdisk/testing/gallery2/modules/exif/lib/exifer/makers/olympus.inc:116) in /home/webdisk/testing/gallery2/modules/core/classes/GalleryPhpVm.class on line 142
Platform Error
An error has occurred while interacting with the platform.
The exact nature of the platform error is unknown. A common cause are insufficient file system permissions. This can happen if you or your webhost changed something in the file system, e.g. by restoring data from a backup.
Back to the Gallery
Error Detail -
Error (ERROR_PLATFORM_FAILURE)
* in modules/core/classes/GalleryDataItem.class at line 178 (GalleryCoreApi::error)
* in modules/core/classes/GalleryPhotoItem.class at line 104 (GalleryDataItem::create)
* in modules/core/classes/helpers/GalleryItemHelper_medium.class at line 148 (GalleryPhotoItem::create)
* in modules/core/classes/GalleryCoreApi.class at line 1583 (GalleryItemHelper_medium::addItemToAlbum)
* in modules/itemadd/ItemAddFromServer.inc at line 185 (GalleryCoreApi::addItemToAlbum)
* in modules/itemadd/ItemAddFromServer.inc at line 281 (ItemAddFromServer::addItem)
* in modules/itemadd/ItemAddFromServer.inc at line 301 (ItemAddFromServer::processDirectory)
* in modules/itemadd/ItemAddFromServer.inc at line 301 (ItemAddFromServer::processDirectory)
* in modules/itemadd/ItemAddFromServer.inc at line 146 (ItemAddFromServer::processDirectory)
* in modules/core/ItemAdd.inc at line 84 (ItemAddFromServer::handleRequest)
* in main.php at line 231 (ItemAddController::handleRequest)
* in main.php at line 94
* in main.php at line 83
System Information
Gallery version 2.2.4
PHP version 5.1.6 apache2handler
Webserver Apache/2.2.3 (CentOS)
Database mysqli 5.0.22
Toolkits ImageMagick, Thumbnail
Operating system Linux home 2.6.18-53.el5 #1 SMP Mon Nov 12 02:22:48 EST 2007 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13
Posts: 25951
@re-sync: No.
@new images: You could use the reupload module, but there is a issue with the reupload module about exif and iptc data:
http://sourceforge.net/tracker/index.php?func=detail&aid=1780645&group_id=7130&atid=107130
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 7
Dammn... I've a lot of photos to organise, and I wanted to upload them to Gallery, but then be able to re-sync IPTC data as I go through and update them. I was thinking the easiest way was to simply update the files directly and then have Gallery re-read that data.
Does Gallery have the ability to write IPTC data back to files at all? Maybe I could do the updates via Gallery.
Posts: 25951
not at the moment. It reads the data and you can display the data.
The map module writes data to the EXIF but that is far as it goes.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 7
Hmmm....
I'm finding that some photos aren't having their IPTC keyword tag data read into the database. I'm uploading the files to the server, then using the Local add. Odd behaviour as some files are reading in ok and others arent, and if I remove/re-add a specific folder then the keywords are added in ok (so doesn't seem to be damaged jpg files or anything).
Will experiment a bit more, but is there any debug log that might help?
Posts: 7
I found the debug options, and logged it to a file, but I had some other issues (which may lead to the above). Basically, if I try to add a parent folder, then eventually Gallery would error out. If I added each subfolder individually, they would succeed (except one, which again needed to be added as individual subfolders).
Turning on debug, I get the below in the browser (eventually). I'm guessing its a resource issue, maybe somethine I need to tweak in php.ini