[ansel] MIME Magic gives wrong extension
Richard Wallace
rwallace at thewallacepack.net
Sat Jan 15 23:24:29 PST 2005
Hello,
In Ansel_Gallery::getVFSName() the call to MIME_Magic::MIMEToExt()$type) returns
jpe for JPEG images. I found that if I simply change the ordering in
Horde/MIME/mime.mapping.php for image/jpeg types to put 'jpg' => 'image/jpeg'
above other types of jpeg images that it works fine. Is there a better way to
do this?
I had hoped that maybe if I installed the fileinfo PHP and PECL extensions.
Unfortunately, my efforts to do this on FreeBSD have fallen short for now. If
anyone has suggestions on the best way to go about doing this I would greatly
appreciate it. Or if you have an idea on how better to solve the problem of
the wrong extension type that would be great too.
Thanks,
Rich
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the ansel
mailing list