Support > cpg1.6 plugin contributions
Sort by EXIF date
Αndré:
--- Quote from: Ludger on December 15, 2017, 03:57:31 pm ---The updates already take place in a loop as one query execution per loop. Here is the loop:
while ($picture = single_picture($result2)) {
$result = load_exif($picture);
};
--- End quote ---
Maybe "loop" was the wrong word. What I meant is something like we do in the admin tools when resizing pictures. It processes a couple of images, then reload the page and then process the next couple of images. Without a reload of the page (or AJAX) you still may exceed the PHP maximum execution time.
ron4mac:
Also: you shouldn't rely on exif_read_data() being available. See the change I had to make here because of that.
Ludger:
André: I understand the problem. Had that timeout once on my real-life system. I am heading for launching a JavaScript, that starts a couple of Ajax-Worker-Spawns for the database. It will be interesting to see, if I can manage that through the plugin backdoors...
Ludger:
Ron: I understand that there is already an EXIF reader in the software. Is that reachable for plugins? I would like to use it as fallback...
ron4mac:
--- Quote from: Ludger on December 16, 2017, 11:07:49 am ---Ron: I understand that there is already an EXIF reader in the software. Is that reachable for plugins? I would like to use it as fallback...
--- End quote ---
Yes, you would do that similar to how it is done in the link above.
For a plugin, just add include_once 'include/exif.php';
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version