Rebuild Images failed for 4778 photos. Why?

voice903fm

Joined: 2007-01-06
Posts: 126
Posted: Fri, 2013-03-08 16:47

Gallery is at www.mauricewatts.com/gallery3

The thumbnail show up but when I click them to open the photo a blank page shows up.

Ran the rebuild Images and it failed. Here's a line for the log.

Quote:
Unable to rebuild images for '68CG4025.jpg'
exception 'Kohana_Exception' with message 'The ImageMagick directory specified does not contain a required program, convert' in /home/content/49/6611349/html/gallery3/system/libraries/drivers/Image/ImageMagick.php:46
Stack trace:
#0 /home/content/49/6611349/html/gallery3/system/libraries/Image.php(123): Image_ImageMagick_Driver->__construct(Array)
#1 /home/content/49/6611349/html/gallery3/system/libraries/Image.php(56): Image_Core->__construct('/home/content/4...', NULL)
#2 /home/content/49/6611349/html/gallery3/modules/gallery/helpers/gallery_graphics.php(65): Image_Core::factory('/home/content/4...')
#3 [internal function]: gallery_graphics_Core::resize('/home/content/4...', '/home/content/4...', Array, Object(Item_Model))
#4 /home/content/49/6611349/html/gallery3/modules/gallery/helpers/graphics.php(173): call_user_func_array('gallery_graphic...', Array)
#5 /home/content/49/6611349/html/gallery3/modules/gallery/helpers/gallery_task.php(107): graphics_Core::generate(Object(Item_Model))
#6 [internal function]: gallery_task_Core::rebuild_dirty_images(Object(Task_Model))
#7 /home/content/49/6611349/html/gallery3/modules/gallery/helpers/task.php(90): call_user_func_array('gallery_task::r...', Array)
#8 /home/content/49/6611349/html/gallery3/modules/gallery/controllers/admin_maintenance.php(194): task_Core::run('11')
#9 [internal function]: Admin_Maintenance_Controller->run('11')
#10 /home/content/49/6611349/html/gallery3/modules/gallery/controllers/admin.php(62): call_user_func_array(Array, Array)
#11 [internal function]: Admin_Controller->__call('maintenance', Array)
#12 /home/content/49/6611349/html/gallery3/system/core/Kohana.php(331): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#13 [internal function]: Kohana_Core::instance(NULL)
#14 /home/content/49/6611349/html/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#15 /home/content/49/6611349/html/gallery3/application/Bootstrap.php(67): Event_Core::run('system.execute')
#16 /home/content/49/6611349/html/gallery3/index.php(102): require('/home/content/4...')
#17 {main}
Updated: 0 images. Total: 4778.

Any suggestions?

Also I'm preparing to install and fresh Gallery 3.0.5 through my hosting company. How can I import the photos from my current gallery into it?

The Voice!

Version: 3.0 (Build 170)
Host name: boscgi0203.eigbox.net
Operating system: Linux 2.6.33.3-nx
Apache: 2.2.13
PHP: 5.2.12
MySQL: 5.0.51a-log

 
kanisrj
kanisrj's picture

Joined: 2008-11-02
Posts: 26
Posted: Tue, 2013-10-08 22:32

I am having a similar problem, I checked to see if all images were intact, it appears they are fine, the "Extract Exif GPS data" finds all the photos, but i still have "You have 1571 out of date photos" and when I try fix that, not one photo gets processed.

I also would like to start with a clean install and import my photos and data but don't know how to go about it.

One more point, when I click on the missing image I get this message "The album 'IMG 5587' is not writable."

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Tue, 2013-10-15 18:51
Quote:
I also would like to start with a clean install and import my photos and data but don't know how to go about it.

Create a new directory.
Install a new instance of Gallery.
If you think the problem is with your database, stop there, create a new database, and maybe try to just import the images: http://codex.galleryproject.org/Gallery3:Modules:serveradd

Before you do all of that, maybe check the error logs? Try a different graphics toolkit?

 
kanisrj
kanisrj's picture

Joined: 2008-11-02
Posts: 26
Posted: Thu, 2013-10-17 15:14

Thanks tempg, its what I ended up doing, then upload my modified theme to have all correct except the months and months of work adding descriptions to the photos.

Sadly all that was lost.

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Sat, 2013-10-19 16:37
kanisrj wrote:
all correct except the months and months of work adding descriptions to the photos.

Sadly all that was lost.

I say over and over in these forums that you need to add the descriptions, titles, tags, etc directly to the photo metadata BEFORE uploading the photos; Gallery (and many other services) can then auto-import that data.

It doesn't help your current situation (and I hope you never have to do this again), but it might be worth the time to do this now. Add the info to your original photos' metadata instead of just doing it through Gallery. We have no real idea what we'll be using in 10 years (or even 5 years) and it would be a total waste (at best) to have to start all over again after you've added another 5-10 years of images.

If, for whatever reason, you decide it's best to do this through Gallery again, the captionator module may help speed things up a bit.
http://codex.galleryproject.org/Gallery3:Modules:captionator

Last word (for now), this also underscores the importance of periodically backing up your database. It may not have saved everything, but it would have all the info up to the last time you backed up. You can probably use a search engine (or your host's FAQs/knowledgebase) to figure out how to do that if you don't already know, but if you can't find it, I'll try to walk you through the first backup.

 
kanisrj
kanisrj's picture

Joined: 2008-11-02
Posts: 26
Posted: Sat, 2013-10-19 23:30

Thanks again for your help tempg.

What you suggest makes good sense, to add it to the meta data, something I have never done in the past. I have thousands of photos, but doing so would be a long term investment, at this point I have no clue how to do that.

I have in the past tried a few programs do add GPS coordinates to photos, however I had zero luck in saving it to the photo. What program would you recommend to do that?

I split my library into 3 separate galleries, the two biggest ones worked like a charm, but the third one was a disaster, I have no idea as to why.

I do suspect the reason was that it was impossible on my webhost to get a perfect zip, or any other sort of backup file that would actually not be corrupt (Hostmonster)

I made about 5 backup copies of each, every one failed to produce all images. The only method that seemed to work was a complete file by file ftp download that took 2 days to compete. The only one that I could not replicate in its entirety was the one where many of the thumbnail and reduced sizes were missing.

Moving was a nightmare to say the least.

Anyhow thanks for the info, and a reply on how to add metadata to photos would be greatly appreciated.

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Mon, 2013-10-21 13:04

I'm not sure about the GPS coordinates, but, as a starting point (not sure what OS you're using):
http://galleryproject.org/node/102836#comment-377386

I'd recommend trying one or two images first.
Make sure that you have the exif module active.
http://galleryproject.org/node/108094

EDIT: If the Gallery is working and you're just adding the exif info, you can do this over time. Add the information to a couple of images, replace the originals using ftp (or however you do it), and then use the rebuild_items module to update the exif info. Again, test with 1-2 images before you invest a lot of time.

And, of course, you'll still need to keep backups. I recommend keeping a copy of the original images (not good to just have them on the server) along with backups of the website (or at least the full var folder) and a separate backup of the database.

 
kanisrj
kanisrj's picture

Joined: 2008-11-02
Posts: 26
Posted: Mon, 2013-10-21 16:30

Wow tempg,

All I can say is thank-you, thank-you and thank-you.

Putting the description in the exif then uploading really works, most importantly the photos will have the information as long as they exist, online or not.

This makes it worthwhile to weed through close to 50 thousand photos (a daunting task) long term job, but worth the effort.

Definitely I will never have to deal with the problem of losing descriptions again.