Re: Re: Question on php_image_type_to_mime_type

From: Date: Fri, 15 Aug 2003 21:20:52 +0000
Subject: Re: Re: Question on php_image_type_to_mime_type
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-4004@lists.php.net to get a copy of this message
Marcus Börger wrote:
Hello Mehdi, Friday, August 15, 2003, 10:47:41 PM, you wrote: MA> Marcus Börger wrote:
Hello Mehdi, Friday, August 15, 2003, 10:22:28 PM, you wrote: MA> >>I'm in php-src/ext/standard/image.c (revision 1.92)
Looking at php_image_type_to_mime it seems like there are two constants not handled : IMAGETYPE_JB2 IMAGETYPE_JPX Am I looking at the good version of the C file ?
Yes.
MA> Shouldn't be corrected ? No, they are used elsewhere, too. If you mean the support is missing, feel free to add it.
MA> Hi Marcus, MA> I don't have karma to php-src :) MA> Here's what should be changed :
MA> constant          mime-type
MA> IMAGETYPE_JPX     image/jpx
MA> IMAGETYPE_JB2     image/jb2
Which source are those based on?
JB2 : http://cgi.netscape.com/cgi-bin/pi_moreinfo.cgi?PID=11473 JPX : http://www.ietf.org/internet-drafts/draft-singer-jp2-01.txt The source for JB2 mime type may seems not enough. didou

« previous php.internals (#4004) next »