This class provides an access to thumbnail details (e.g. thumbnail dimensions, compression mode, etc) and allows saving thumbnails on a server.
The following tables list the members exposed by the ThumbnailInfo type.
Name | Description | |
---|---|---|
getCompressionMode() | Gets compression mode of the thumbnail. | |
getContentLength() | Gets the value of the Content-length HTTP header. | |
getContentType() | Gets the value of the Content-type HTTP header. | |
getFileName() | Gets name of the thumbnail file received on the server. | |
getFileSize() | Gets size of the thumbnail. | |
getHeight() | Gets height of the thumbnail. | |
getIndex() | Gets 1-based index of the thumbnail. | |
getSucceeded() | Indicates if the thumbnail was created successfully. | |
getWidth() | Gets width of the source file. |
Name | Description | |
---|---|---|
getSafeFileName($dirPath) | Returns a safe file name for the file if it would be saved to dirPath folder. | |
save($filename) | Saves the thumbnail file to the specified path. | |
saveToFolder($dirPath, $renameConflicted) | Saves the thumbnail file to the specified directory on a server avoiding name conflict. |