A while back I thought it would be a good idea to implement face detection in Gallery2, based on a similar feature in Facebook. I downloaded the OpenCV computer vision toolkit and ran the facedetect sample app against a collection of 60 photos from my gallery, some with no faces, others with a single face, still others with multiple faces, faces in profile, etc. No matter which training file I used, the face detection was horribly unreliable.
I just upgraded the Gallery install on bonzo to 2.2 RC1, which has some cool new features like dynamic albums, and (supposedly) performance improvements. It seems to have worked fine.
A while back I had some problems with MySQL running out of space on /var. Today I found out my Gallery2 was down, responding to all requests with “An error has occurred while interacting with the database.”
In the config.php file in the gallery2 install folder, there’s a line that sets the debug mode. By default it’s:
$gallery->setDebug(false);
For debugging I changed it to:
$gallery->setDebug('buffered');
and reloaded the Gallery main page. That displays a shitload of debug messages at the end of the page. In my case, I saw the familiar MySQL message about a table being corrupted. This time, it was g2_CacheMap. I did a quick repair table g2_CacheMap in mysql, and voila!, Gallery is back up.
I recently kicked up the upload_max_filesize parameter to 16MB so I could upload big 7MP images. However, now I’ve taken to shooting incriminating video with my Z750, which gets into the hundreds of megabytes. So, how big is too big? I’m going to try 500MB.
In /usr/local/etc/php.ini:
; Maximum allowed size for uploaded files.
upload_max_filesize = 512M
Let’s see what happens…
UPDATE: Nothing happened. The latest beta of Gallery Remote seems to not care for enormous video files; it just hangs at ‘Preparing to upload…’ indefinitely.
; Maximum size of POST data that PHP will accept. post_max_size = 8M8M seems plenty, but apparently there's a helluva lot of overhead associated with uploading an image. I'll double it, to 16M:
; Maximum size of POST data that PHP will accept. post_max_size = 16M