I was looking for a photo archival system, but since I didn't find any worth buying I've decided to build my own off G2. I installed it off CVS without hitch, there were literally no problems on my local dev server (win2k, apache 1.3.23, php 4.2.1). This was yesterday. I did a cvs update today and found that bharat's been working on the netpbm.class which is (of course) a good thing, however whenever I try to create a random tree I get an error, here's the stack:
<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE>Test: core :: CreateRandomTree [1 iteration(s)]
Timing: 0.1387 elapsed, 7.2075 per second
Error: Error (ERROR_UNSUPPORTED_FILE_TYPE, ERROR_BAD_DATA_TYPE)
* in d:crusadegtgallery2modules
etpbmclassesNetPbmGraphics.class at line 263
* in d:crusadegtgallery2modules
etpbmclassesNetPbmGraphics.class at line 58
* in d:crusadegtgallery2modulescoreclassesGalleryPhotoItem.class at line 122
* in d:crusadegtgallery2modulescore estTestCaseCreateRandomTree.class at line 126
* in d:crusadegtgallery2modulescore estTestCaseCreateRandomTree.class at line 46
* in d:crusadegtgallery2setup estTestCase.class at line 18
* in d:crusadegtgallery2setup estindex.php at line 212</TD></TR></TABLE><!-- BBCode End -->
I figured this would be a simple problem to fix, the relevant code is a switch for mime types, the default case is:
<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE> default:
$gallery->debug('Unsupported file type: ' . $mimeType);
return array(GalleryStatus::error(ERROR_UNSUPPORTED_FILE_TYPE, __FILE__, __LINE__), null);
}</TD></TR></TABLE><!-- BBCode End -->
And so I've spent all this time getting to my point. Why doesn't the debug statement show up in the output for the test harness?
So the results are:
1. I'm getting a null mime type for any image when creating a random tree (win2k,apache 1.3.23, php4.2.1)
2. I'm not sure if this is the fault of the test code, but when this error occurs the item is still created but without any pictures. Since the entire point of the gallery is the pictures, I'd think that failing to create an image would invalidate the creation of the item.
Hopefully you find this helpful to you, Bharat, (I can't find a single file written by anybody else :smile: and hopefully I can give you a hand once I get more familiar with your system. I'm impressed with the amout of thought that went into creating the core and with how extensible the system is. I think I can do everything to implement the system I want using a set of modules!
Posts: 7994
Posts: 4
A couple ideas I've had: I'm going to move the derived images to a different directory (didn't get a chance to check this before I hit the snag that was mentioned) and am not sure . I plan on getting started with a module to read in whatever file types netpbm can support (tiffs most importantly) as sort of a figuring out what's going on module. I'd also like a function that periodically checks a directory (recursively) for new images added. Finally I'll probably implement a module that interacts with a task management system. That's the working idea, haven't planned everything out properly yet, I really needed to check to see if gallery could do what I needed and it can, so you'll be seeing me in and out for a while.
Since you've said in your dev docs that you'd like to get to know the people who might contribute, I'll give you a little background on my project. I'm a Computer Engineering Undergrad at Georgia Tech and am the online editor/computer guy for the school newspaper, the <!-- BBCode Start --><A HREF="http://"http://nique.net"" TARGET="_blank">Technique</A><!-- BBCode End -->. The photography staff wants a revamped photo assignment and archival system and I've agreed to do it. I want to use gallery for the archival system and integrate the two systems. The staff shoots around 20 rolls of film per week and develops them in house, the archival system will hold our digital camera images (we have a few) and photo sheet type scans of the film negatives to make finding pictures easier.
Additionally, do you prefer bug reports in the forums or on the dev mailing list?