2011-12-28 91 views
1

我正在使用swfupload上传图片并在客户端调整它们的大小。出于测试目的,我创建了一个5000x5000的png,尺寸非常小,图像大小调整失败。尺寸太大时,任何人都会遇到图像尺寸调整问题?使用swfupload?swfupload图像调整大小停止如果图像尺寸很大?

我已经包含了调试日志:对于两个文件 - 一个成功,另一个停止。

SWF DEBUG: Event: fileDialogStart : Browsing files. Single Select. Allowed file types: *.jpg; *.png 
SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list... 
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_0 
SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1 
SWF DEBUG: StartUpload: First file in queue 
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0 
SWF DEBUG: StartUpload(): Uploading Type: Resized Image. 
SWF DEBUG: PrepareThumbnail(): Beginning image resizing. 
SWF DEBUG: Settings: Width: 250, Height: 250, Encoding: JPEG, Quality: 100. 
SWF DEBUG: PrepareResizedImageCompleteHandler(): Finished resizing. Initializing MultipartURLLoader. 
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for resized upload. Starting upload to /FileUpload/AsyncUpload for File ID: SWFUpload_0_0 
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0 Bytes: 0. Total: 36585 
SWF DEBUG: Event: uploadProgress (simulated 100%): File ID: SWFUpload_0_0. Bytes: 36585. Total: 36585 
SWF DEBUG: Event: uploadSuccess: File ID: SWFUpload_0_0 Response Received: true Data: {"guid":"04cbb2ca-f7a2-4f75-9c14-b8e19e5ca9b2.jpg","width":250,"height":190} 
SWF DEBUG: Event: uploadComplete : Upload cycle complete. 

该叫停的文件:

SWF DEBUG: Event: fileDialogStart : Browsing files. Single Select. Allowed file types: *.jpg; *.png 
SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list... 
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_1 
SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1 
SWF DEBUG: StartUpload: First file in queue 
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_1 
SWF DEBUG: StartUpload(): Uploading Type: Resized Image. 
SWF DEBUG: PrepareThumbnail(): Beginning image resizing. 
SWF DEBUG: Settings: Width: 250, Height: 250, Encoding: JPEG, Quality: 100. 

回答

1

的Flash Player 10将限制最大图像尺寸。 BitmapData对象的宽度或高度最大为8191像素,像素总数不得超过16777215.较大的图像无法在Flash 10中加载。