П О Р Т А Л                            
С Е Т Е В Ы Х                          
П Р О Е К Т О В                        
  
Поиск по сайту:
                                                 
Главная

О проекте

Web-мастеру
     HTML & JavaScript
     SSI
     Perl
     PHP
     XML & XSLT
     Unix Shell

MySQL

Безопасность

Хостинг

Другое








Самое читаемое:

Учебник PHP - "Для Чайника".
Просмотров 6106 раз(а).

Иллюстрированный самоучитель по созданию сайтов.
Просмотров 8254 раз(а).

Учебник HTML.
Просмотров 4881 раз(а).

Руководство по PHP5.
Просмотров 1968 раз(а).

Хостинг через призму DNS.
Просмотров 6976 раз(а).

Подборка текстов стандартных документов.
Просмотров 57525 раз(а).

Учебник PHP - Самоучитель
Просмотров 5172 раз(а).

Документация на MySQL (учебник & справочное руководство)
Просмотров 11299 раз(а).

Внешние атаки...
Просмотров 7253 раз(а).

Учебник PHP.
Просмотров 4261 раз(а).

SSI в примерах.
Просмотров 1203 раз(а).



 
 
| Добавить в избранное | Сделать стартовой | Помощь





Руководство по PHP
Пред. След.

exif_thumbnail

(PHP 4 >= 4.2.0, PHP 5)

exif_thumbnail -- Retrieve the embedded thumbnail of a TIFF or JPEG image

Описание

string exif_thumbnail ( string filename [, int &width [, int &height [, int &imagetype]]] )

exif_thumbnail() reads the embedded thumbnail of a TIFF or JPEG image.

If you want to deliver thumbnails through this function, you should send the mimetype information using the header() function.

It is possible that exif_thumbnail() cannot create an image but can determine its size. In this case, the return value is FALSE but width and height are set.

Список параметров

filename

The name of the image file being read. This image contains an embedded thumbnail.

width

The return width of the returned thumbnail.

height

The returned height of the returned thumbnail.

imagetype

The returned image type of the returned thumbnail. This is either TIFF or JPEG.

Возвращаемые значения

Returns the embedded thumbnail, or FALSE if the image contains no thumbnail.

Список изменений

ВерсияОписание
4.3.0 The optional parameters width, height, and imagetype all became available.
4.3.0 May return thumbnails in the TIFF format.

Примеры

Пример 1. exif_thumbnail() example

<?php
if (array_key_exists('file', $_REQUEST)) {
    
$image = exif_thumbnail($_REQUEST['file'], $width, $height, $type);
} else {
    
$image = false;
}
if (
$image!==false) {
    
header('Content-type: ' .image_type_to_mime_type($type));
    echo
$image;
    exit;
} else {
    
// no thumbnail available, handle the error here
    
echo 'No thumbnail available';
}
?>

Смотрите также

exif_read_data()
image_type_to_mime_type()



Если Вы не нашли что искали, то рекомендую воспользоваться поиском по сайту:
 





Copyright © 2005-2016 Project.Net.Ru