plupload icon indicating copy to clipboard operation
plupload copied to clipboard

Sometimes images are destroyed when uploaded to server by PLUpload

Open duypp opened this issue 8 years ago • 10 comments

Plupload is great. But Recently, I encountered an error that I can not know why is why. Sometimes, When i upload the image to the server, images uploaded successfully but when view this image, It is no longer the original image, it is stretched or just a corner of the original image. Please help me. Sorry my english is not good, this is the image after posting to the server. l_1504150706 106 o_1504150732 193

duypp avatar Aug 31 '17 08:08 duypp

  • What's the version of you Plupload?
  • What the client-side platform that does that?
  • Can you share problematic images?
  • Could you post your Plupload config or even better create a case in our playground?

jayarjo avatar Sep 02 '17 12:09 jayarjo

Hi jayarjo

  • Version of my Plupload is v2.1.2

  • Client-side Platform is Android, IOS. The error rate is very small, about 0.5% but in some cases it annoys my customers

  • My website does not retain the original image so I can not share the original image, but if my client uploads 10 photos, the first 1-2 photos will not error, but the next one will be wrong.

  • My Plupload config: ` $("#uploader").plupload({ // General settings runtimes : 'html5,flash,silverlight,html4', url : script_url, // User can upload no more then 10 files in one go (sets multiple_queues to false) max_file_count: 10,

      chunk_size: '5mb',
    
      // Resize images on clientside if we can
      resize : {
      	width : 1200, 
      	quality : 90,
      	crop: false, // crop to exact dimensions
      	preserve_headers: false
      },
    
      filters : {
      	// Specify what files to browse for
      	mime_types: [
      		{title : "Image files", extensions : "jpg,JPEG,gif,png"}
      	]
      },
    
      // Rename files by clicking on their titles
      rename: true,
    
      // Sort files
      sortable: true,
    
      // Enable ability to drag'n'drop files onto the widget (currently only HTML5 supports that)
      dragdrop: true,
    
      // Views to activate
      views: {
      	list: true,
      	thumbs: true, // Show thumbs
      	active: 'thumbs'
      },
    
      // Flash settings
      flash_swf_url : root_url+'js/Moxie.swf',
    
      // Silverlight settings
      silverlight_xap_url : root_url+'js/Moxie.xap'
    

    });` Did the error occur due to a client device that had a memory leak so that it was so small?

duypp avatar Sep 05 '17 01:09 duypp

Some versions of Android were having similar issue I think, but we were never able to replicate it. Having original image would help immensely. Could you ask your client to send it to you maybe? Also Plupload 2.3.3 uses somewhat different resizing algorithm, so upgrading might help, unless it's a device level bug that has to be worked around specifically.

jayarjo avatar Sep 05 '17 03:09 jayarjo

OK. I will try to work with the client to see the original image and update the new version of Plupload. Thank you very much for your response. :)

duypp avatar Sep 05 '17 03:09 duypp

I had a similar issue - turning off image resize and compression worked for me (compression I think was the killer) from what I can tell so far, it was on Android tablets, on the adding of more than 1 image to the queue. I think the device is running out of memory to complete the compression/resize - that could be either related to memory leak in plupload or Chrome - or just that they need the memory and there isn't enough.

Upgraded to 2.3.5 and the issue seemed to go away, but recently we've had a slightly different (not massively similar) issue appear, and again turning off compression/resize seemed to resolve that. That looks more like a blurred version - rather than the squished into a corner one. asda_portadown_asd4433_10_11_2017_4234718

Attached another example for you. sainsbury_truro_671_19_07_2017_4001919

IceBubble avatar Nov 18 '17 20:11 IceBubble

I have the same problem. i cant replicate, photos submit in black or like the examples.

sistemasici avatar Sep 21 '19 11:09 sistemasici

Same issue here, photo submit black only on different Androids phones. I don't use chunk_size

   filters : {
	max_file_size : '10mb',
	mime_types: [
		{title : "Images", extensions : "jpg,gif,png"},
		{title : "Vidéos", extensions : "mov, mp4"}
	]
},
resize: {
	width : 1024,
	quality : 90
},

I will try without the quality compression

tow-joe avatar Sep 26 '19 19:09 tow-joe

I have the same issue as well. Can replicate it on Android Chrome 77.x versions (and also happens on 78 beta) when using large resolution, at least 17-19 megapixel, images.

Like mentioned earlier in this thread, turning off image resize and compression works, but I'd like to keep those on.

chunk_size: "2000kb",
resize: {width : 1280, height : 1280, quality : 100, crop: false},
filters: {
    max_img_width: 14000,
    mime_types: [
        {title : "Image files", extensions : "jpg,jpeg,png"}
    ]
}

The device info I'm able to replicate the issue: Sony Xperia XZ1 Compact Android 9, G8441 Build/47.2.A.10.107 Chrome v. 77.0.3865.92

I have been reported this happening on other devices as well and based on those I have narrowed the similarities down to Chrome version 77+. Even one iPhone user tested this on Chrome v. 77.x and was able to replicate it.

sakamonk avatar Sep 27 '19 12:09 sakamonk

Any news ?

tow-joe avatar Sep 30 '19 20:09 tow-joe

Any news ?

tow-joe avatar Nov 20 '19 21:11 tow-joe