php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #21883 jpc and jp2
Submitted: 2003-01-26 01:55 UTC Modified: 2003-07-22 15:29 UTC
From: olivier dot jacquemard at wanadoo dot fr Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.3.2 OS: all
Private report: No CVE-ID: None
 [2003-01-26 01:55 UTC] olivier dot jacquemard at wanadoo dot fr
-Short script :

<?php
  $taille = getimagesize("JPEG2000.jp2");
  dump $taille;
?>

-List of modules :
I dowloaded PHP4.3 binary for Windows (ZIP file), from your site.

-Any other information :
I tried the same script with a JPG image, it works.
I saw every where that JPEG2000 is managed in PHP 4.3. : http://www.zend.com/manual/function.getimagesize.php for exemple. Is there a "Zend" PHP or is it for the future ?

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-26 04:43 UTC] derick@php.net
It's only working correctly in PHP > 4.3 -> doc problem.
 [2003-01-26 15:34 UTC] adamw at archgrove dot co dot uk
Sadly, JPEG 2000 support didn't make it for 4.3. JPEG 2000 raw codestream support should be in 4.3.1. JP2 support will probably feature in 5.0.

A current stable snapshot should work for JPC, and JP2 will work if you compile from HEAD.

adamw
 [2003-01-27 12:42 UTC] olivier dot jacquemard at wanadoo dot fr
Thank you, i think the "bug" is closed. I am waiting for PHP 4.3.x where x > 1.
 [2003-01-27 12:50 UTC] philip@php.net
This remains open until jpc and jp2 are documented properly.  This may need to be faq that's referred to in various places?  Or maybe a language-snippet?  Because I doubt getimagesize() is the only appropriate place for this information.
 [2003-02-13 01:18 UTC] sniper@php.net
Only thing to document is that since 4.3.1 PHP supports
JPEG 2000 and WBMP imagetypes too..

 [2003-02-23 06:56 UTC] olivier dot jacquemard at wanadoo dot fr
I have downloaded PHP 4.3.1 and i didn't found any change in using something like getimagesize("jpeg2000.jp2").
I have two questions :
Is there a remedy to read the header of a jpeg2000 and extract the length and height of the image ?
Is it possible to define a class and use it as a buffer to read the header of a jpeg2000 image ?
 [2003-02-23 09:42 UTC] philip@php.net
4.3.1 is identical to 4.3.0 except that one security change to CGI so the change hasn't happened yet.
 [2003-07-22 15:29 UTC] philip@php.net
This is now fixed/documented in CVS and will show up when the manual is next built, thanks for the report!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Aug 19 08:01:29 2024 UTC