Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_stream_image [ WordPress Function ]

wp_stream_image ( $image, $mime_type, $post_id )
Defined at:



No description yet.

Source


<?php
function wp_stream_image($image$mime_type$post_id) {
    
$image apply_filters('image_save_pre'$image$post_id);

    switch ( 
$mime_type ) {
        case 
'image/jpeg':
            
header('Content-Type: image/jpeg');
            return 
imagejpeg($imagenull90);
        case 
'image/png':
            
header('Content-Type: image/png');
            return 
imagepng($image);
        case 
'image/gif':
            
header('Content-Type: image/gif');
            return 
imagegif($image);
        default:
            return 
false;
    }
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics