- Upload Suite Overview
- What's New?
- Choosing Upload Technology
- Evaluating Upload Suite
- Upload Suite Editions
- System Requirements
- Installation and Deployment Notes
- ActiveX/Java Uploader
- HTML5/Flash Uploader
- Before You Started with HTML5/Flash Uploader
- HTML5/Flash Uploader Architecture
- HTML5/Flash Uploader User Interface
- Getting Started
- Using HTML5/Flash Uploader
- Troubleshooting
- Reference
- HTML5/Flash Uploader ASP.NET Reference
- HTML5/Flash Uploader PHP Reference
- AddFilesProgressDialog Class HTML5/Flash Uploader PHP
- BaseClientControl Class HTML5/Flash Uploader PHP
- BaseControl Class HTML5/Flash Uploader PHP
- ClientEvents Class HTML5/Flash Uploader PHP
- CommonDialog Class HTML5/Flash Uploader PHP
- ConvertedFile Class HTML5/Flash Uploader PHP
- Converter Class HTML5/Flash Uploader PHP
- Converter Members HTML5/Flash Uploader PHP
- Converter Properties HTML5/Flash Uploader PHP
- AutoReduceDimensions Property HTML5/Flash Uploader PHP
- Hash Property HTML5/Flash Uploader PHP
- Mode Property HTML5/Flash Uploader PHP
- ThumbnailApplyCrop Property HTML5/Flash Uploader PHP
- ThumbnailApplyDrawTool Property HTML5/Flash Uploader PHP
- ThumbnailBgColor Property HTML5/Flash Uploader PHP
- ThumbnailCompressOversizedOnly Property HTML5/Flash Uploader PHP
- ThumbnailCopyColorProfile Property HTML5/Flash Uploader PHP
- ThumbnailCopyExif Property HTML5/Flash Uploader PHP
- ThumbnailCopyIptc Property HTML5/Flash Uploader PHP
- ThumbnailFitMode Property HTML5/Flash Uploader PHP
- ThumbnailHeight Property HTML5/Flash Uploader PHP
- ThumbnailJpegQuality Property HTML5/Flash Uploader PHP
- ThumbnailResizeCmyk Property HTML5/Flash Uploader PHP
- ThumbnailResizeFailureDetector Property HTML5/Flash Uploader PHP
- ThumbnailResizeQuality Property HTML5/Flash Uploader PHP
- ThumbnailResolution Property HTML5/Flash Uploader PHP
- ThumbnailSizeLimit Property HTML5/Flash Uploader PHP
- ThumbnailType Property HTML5/Flash Uploader PHP
- ThumbnailUseExifPreview Property HTML5/Flash Uploader PHP
- ThumbnailWatermark Property HTML5/Flash Uploader PHP
- ThumbnailWidth Property HTML5/Flash Uploader PHP
- DescriptionEditor Class HTML5/Flash Uploader PHP
- DrawTool Class HTML5/Flash Uploader PHP
- FlashControl Class HTML5/Flash Uploader PHP
- ImageEditor Class HTML5/Flash Uploader PHP
- ImagePreviewWindow Class HTML5/Flash Uploader PHP
- ImageUploaderFlash Class HTML5/Flash Uploader PHP
- Messages Class HTML5/Flash Uploader PHP
- Metadata Class HTML5/Flash Uploader PHP
- Package Class HTML5/Flash Uploader PHP
- PaneItem Class HTML5/Flash Uploader PHP
- PostFields Class HTML5/Flash Uploader PHP
- Restrictions Class HTML5/Flash Uploader PHP
- StatusPane Class HTML5/Flash Uploader PHP
- TopPane Class HTML5/Flash Uploader PHP
- UploadErrorDialog Class HTML5/Flash Uploader PHP
- UploadHandler Class HTML5/Flash Uploader PHP
- UploadPane Class HTML5/Flash Uploader PHP
- UploadSettings Class HTML5/Flash Uploader PHP
- UploadedFile Class HTML5/Flash Uploader PHP
- AmazonS3Extender Class HTML5/Flash Uploader PHP
- FileSettings Class HTML5/Flash Uploader PHP
- HTML5/Flash Uploader JavaScript Reference
- HTML5/Flash Uploader Client-Side Events Reference
- POST Field Reference
- Licensing Information
- Legal Notices
Converter.ThumbnailResizeFailureDetector Property HTML5/Flash Uploader PHP
Configures how the uploader tries to detect whether image resizing failed due to memory issues and whether to retry.
Syntax
public function getThumbnailResizeFailureDetector() {
}
public function setThumbnailResizeFailureDetector($value) {
}
Property Value
Type: integer
If0 (default), it won't attempt to detect failures and do anything about it. If you set a larger value, it will be a number of attempts to create an image.
Default value is 0.
Remarks
Under certain circumstances, a browser may fail to process an image (e.g. resize it). For example, it may happen if the system runs out of memory. Unfortunately, JavaScript does not give any means to handle this situation gracefully. It will just silently fail and return a blank image. As a result, you will observe an empty black image.
This property gives you an opportunity to handle this situation. For example:
- Keep trying. Set this value to, say, 10. If some image is blank after resize, the uploader will try to resize the image again. If the image is blank again, it will try one more time - until the number of attempts reach the amount you have specified.
- Fallback to the source image. Set this value to, say, 1, and add a second converter to Mode, e.g.
*=Thumbnail;SourceFile. In this case, if the image is blank, it will notice the failure and switch to a fallback converter (SourceFile).
To speed things up, the algorithm does not check 100% of pixels. It breaks the image into a grid and selects certain pixels based on this grid. It works great with photos, but if you are uploading images with large amount of transparent pixels, it may produce false positives. Be careful!
If necessary, you may fine-tune the algorithm. To do it, instead of a number, pass the following JSON:
{
step : 10, // grid size
topPadding : 0, // offset from the top in percent
leftPadding : 0, // offset from the left border in percent
rightPadding : 0, // offset from the right border in percent
bottomPadding : 0, // offset from the bottom in percent
attemptCount : 0 // the number you would pass to this param normally
}