File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ --TEST--
2+ GetImageSize() for avif using monochrome format
3+ --FILE--
4+ <?php 
5+ /* Prototype  : proto array getimagesize(string imagefile [, array info]) 
6+  * Description: Get the size of an image as 4-element array 
7+  * Source code: ext/standard/image.c 
8+  * Alias to functions: 
9+  */ 
10+ 
11+ echo  "*** Testing getimagesize() : avif using monochrome format *** \n" ;
12+ var_dump (getimagesize (__DIR__  . "/monochrome.avif " , $ arr
13+ var_dump ($ arr
14+ ?> 
15+ --EXPECT--
16+ *** Testing getimagesize() : avif using monochrome format ***
17+ array(7) {
18+   [0]=>
19+   int(8)
20+   [1]=>
21+   int(1)
22+   [2]=>
23+   int(19)
24+   [3]=>
25+   string(20) "width="8" height="1""
26+   ["bits"]=>
27+   int(8)
28+   ["channels"]=>
29+   int(1)
30+   ["mime"]=>
31+   string(10) "image/avif"
32+ }
33+ array(0) {
34+ }
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments