angular-file-upload icon indicating copy to clipboard operation
angular-file-upload copied to clipboard

Voting: Do you need a directive generate thumbnails for images in standard module package?

Open nervgh opened this issue 11 years ago • 23 comments
trafficstars

Yes/no? Comments are optional.

Demo - uploads only images (with canvas preview)

nervgh avatar Jan 07 '14 00:01 nervgh

For me no.

RastoStric avatar Jan 07 '14 07:01 RastoStric

No

Comments: I don't need it - but I do like the idea of it being optional. It is included in the blueimp file upload that many people are used to (http://blueimp.github.io/jQuery-File-Upload/angularjs.html)

kurtfunai avatar Jan 07 '14 15:01 kurtfunai

Yes, I didn't realise that it wasn't in the standard module because I downloaded the min.js version and couldn't understand why the example code wasn't producing thumbnails on my test. Very confusing to leave it in the examples and not include it in the package.

JonCognioDigital avatar Jan 22 '14 12:01 JonCognioDigital

+1 Yes

viveks-m avatar Jan 26 '14 16:01 viveks-m

+1 Yes

veewee avatar Feb 12 '14 14:02 veewee

+1 Yes

maku avatar Feb 21 '14 12:02 maku

No, I like creating my own directive for it.

davidwparker avatar May 27 '14 21:05 davidwparker

Yes

martinsznapka avatar Jun 12 '14 16:06 martinsznapka

Yes

theninthnode avatar Aug 12 '14 09:08 theninthnode

Yes

stevesuh avatar Sep 08 '14 15:09 stevesuh

yes

But just a very basic implementation with maximum flexibility.

"flexibility" is the first motivation to use your plugin.

If i will someday need a plugin that will do everything for me i'll take another one. But i will keep in mind, that such decision will force me to use strict flow and exact implementation scenario.

But can hardly imagine the real-life reason to do so.

alexandr2110pro avatar Nov 06 '14 17:11 alexandr2110pro

for me no

rboughani avatar Nov 07 '14 13:11 rboughani

+1 Yes

devmark avatar Nov 09 '14 13:11 devmark

Yes

jswhisperer avatar Nov 24 '14 10:11 jswhisperer

for image uploads, this is crucial. I was previously using v0.5 and I was able to generate thumbnails manually:

uploader.onAfterAddingFile = function(item) {
      var _URL = $window.URL || $window.webkitURL;
      var img = new Image();
      img.onload = function() {
        if (this.width !== 1200 || this.height !== 627) {
          uploader.removeFromQueue(item);
          toastr.error('Image size is not 1200x627!');
          scope.$apply();
        }
      };
      img.src = _URL.createObjectURL(item.file);
      item.imgSrc = img.src;
      updateSrcs();
    };

however now, since the item.file is a FileLikeObject, this doesn't work anymore.

azharkhan avatar Jan 09 '15 20:01 azharkhan

@azharkhan..... Maybe item._file works.

ooqiaDev avatar Jan 14 '15 01:01 ooqiaDev

@ooqiaDev thanks for the help, I noticed that in the directive code that was in the example, and it solved the problems I was having. I appreciate the help.

I'm wondering why the FileLike object was created, (out of curiosity), rather than just using the File object.

azharkhan avatar Jan 14 '15 16:01 azharkhan

Yes please... there are uploaded images on the server and when I load the page I want to them to be displayed. It will be a great help. Thanks in advance.

abhisheknjain avatar Feb 18 '15 18:02 abhisheknjain

+1

yoghi avatar Feb 18 '15 18:02 yoghi

Yes

mort3za avatar Jul 01 '15 10:07 mort3za

yes On Jul 1, 2015 3:48 PM, "Morteza Ziaeemehr" [email protected] wrote:

Yes

— Reply to this email directly or view it on GitHub https://github.com/nervgh/angular-file-upload/issues/45#issuecomment-117582650 .

abhisheknjain avatar Jul 01 '15 10:07 abhisheknjain

+1

ihr-it-projekt avatar Sep 29 '17 07:09 ihr-it-projekt

Hello! Can't see on the docs - is this feature available now?

heyantonvolkov avatar Oct 30 '17 17:10 heyantonvolkov