如果图像尺寸很大,swfupload图像调整大小停止?

时间:2011-12-28 01:54:22

标签: swfupload

我正在使用swfupload上传图片并在客户端调整大小。出于测试目的,我创建了一个5000x5000的png并且具有非常小的尺寸,并且图像调整大小失败。当尺寸过大时,是否有人遇到任何图像尺寸调整问题?使用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 个答案:

答案 0 :(得分:1)

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

相关问题