Mail Index


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ApacheGallery] more filetype patch



I think that's great.  I'd love it if any file type I put up was recognised.  I like the visual index idea, much better than the built in Apache indexing.

On Thu, 11 Dec 2003, Guillaume Rousse wrote:

> Heelo.
> 
> Attached is a patch for more configurable filetype selection with A::G. It 
> adds two configuration directives:
> GalleryDocFile is a pattern matching all non-image files to be displayed
> GalleryImgFile is a pattern matching all images file to be displayed
> 
> Exemple:
> PerlSetVar     GalleryDocFile          '\.(mpe?g|avi|mov|asf|wmv|doc|mp3|ogg|
> pdf|rtf|wav|txt|dlt|html?|csv|eps)$'
> PerlSetVar   GalleryImgFile             '\.(jpe?g|png|tiff?|ppm|gif)$
> 
> I also changed a bit the way mimetype is selected, to allow for unknown files 
> to have their own icons. I think however base directory for icons should be 
> changed, so as to avoid conflict with apache filetype icons (c.png, for 
> instance).
> 
> I added GIF format in supported image format, with thumbnails in jpg. I also 
> tried EPS file, but very curiously, only the first one in directory is 
> correctly resized and displayed, and trying to select it result in a crash. 
> 
> I have the following error messages in my log when accessing the directory:
> ESP Ghostscript 7.07.1: Unrecoverable error, exit code 1
> And the following when trying to access the image:
>  Can't call method "create_scaled_image" on an undefined value 
> at /usr/lib/perl5/vendor_perl/5.8.2/Apache/Gallery.pm line 1185
> 
> BTW, maybe what i'm trying to achieve (some kind of read-only file manager on 
> the web) isn't the objective of A::G. I anyone knows of a better suited 
> software, please let me know.
> 

-- 

Zak Brown
www.mode3.com

--

"Reports that say something hasn't happened are interesting to me, because as we know, there are known unknowns; there things we know we know, 

"We also know there are known unknowns; that is to say we know there are some things we do not know. But there are also unknown unknowns -- the ones we don't know we don't know."

		-- Defense Secretary Donald Rumsfeld


_______________________________________________
users mailing list
[email protected]
http://ufo.hestdesign.com/cgi-bin/mailman/listinfo/agusers