You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Moxie doens't support reading of gif image sizes? The following code, used with plupload, returns always false for gif but works fine for png and jpg.
Please not that the gif I'm trying to use is an animated gif.
plupload.addFileFilter('min_img_resolution',function(maxRes,file,cb){varself=this;varimg=newwindow.moxie.image.Image();functionfinalize(result){// cleanupimg.destroy();img=null;// if rule has been violated in one way or another, trigger an errorif(!result){self.trigger('Error',{code: plupload.IMAGE_DIMENSIONS_ERROR,message: 'Image should be at least '+maxRes[0]+' pixels wide.',file: file});}cb(result);}img.onload=function(){finalize(img.width>=maxRes[0]&&img.height>=maxRes[1]);};img.onerror=function(){finalize(false);};img.load(file.getSource());});
The text was updated successfully, but these errors were encountered:
@jayarjo thanks for the quick response. I've seen the ticket with the discussion about the animation. But animation is another topic, the size doesn't change. So a first step would be to get the right size for gifs.
As for animations... well. There must be a way to do it. I've seen another site (competitor of my company) doing it: You upload the file. They show an animated (!) thumbnail and in an overlay the upload progress bar. So I know it's somehow doable. I just haven't had more time yet to figure out how they do it / what lib they use.
Is there any other way or library I could use to get what we need?
Moxie doens't support reading of gif image sizes? The following code, used with plupload, returns always false for gif but works fine for png and jpg.
Please not that the gif I'm trying to use is an animated gif.
The text was updated successfully, but these errors were encountered: