Dani3lSun / apex-plugin-dropzone

Oracle APEX Region Plugin - Dropzone
MIT License
72 stars 19 forks source link

Thumbnail upload too? #24

Closed PlagueRus closed 7 years ago

PlagueRus commented 7 years ago

Hi Daniel,

Is it possible to upload files and "thumbnail" along with the files that are already created in the "dropzone" plug-in?

P.S. I use "Oracle XE" without the ability to use ORDSYS packages.

regards

Dmitry

Dani3lSun commented 7 years ago

Hey @PlagueRus sorry for the late response...Was completely packed with work...

Unfortunately this is not possible and I think I will not integrate such a feature...The reason is, I want the upload plugin as easy as possible, so main feature is uploading files...

One way to achieve this behaviour would be to use javascript and canvas: https://stackoverflow.com/questions/19262141/resize-image-with-javascript-canvas-smoothly

Another way (that´s the way I do it on my XE instances) is to use a nodejs app that does it for me. It has a simple web service interface which can be used from DB using apex_web_service package. The original blob (big image) is sent to that REST interface, the nodejs server resizes the image and responses the smaller image...this smaller image is then saved into DB tables.

PlagueRus commented 7 years ago

Thanks for response. =)

I'll think about the solution.

2017-07-21 9:46 GMT+03:00 Daniel Hochleitner notifications@github.com:

Hey @PlagueRus https://github.com/plaguerus sorry for the late response...Was completely packed with work...

Unfortunately this is not possible and I think I will not integrate such a feature...The reason is, I want the upload plugin as easy as possible, so main feature is uploading files...

One way to achieve this behaviour would be to use javascript and canvas: https://stackoverflow.com/questions/19262141/resize- image-with-javascript-canvas-smoothly

Another way (that´s the way I do it on my XE instances) is to use a nodejs app that does it for me. It has a simple web service interface which can be used from DB using apex_web_service package. The original blob (big image) is sent to that REST interface, the nodejs server resizes the image and responses the smaller image...this smaller image is then saved into DB tables.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Dani3lSun/apex-plugin-dropzone/issues/24#issuecomment-316918747, or mute the thread https://github.com/notifications/unsubscribe-auth/AGVDXuZKRRSSOt3Lo_ZLgsaiA1d6_blNks5sQEksgaJpZM4OTkQk .

-- С уважением, Леушин Дмитрий

Dani3lSun commented 7 years ago

Hey @PlagueRus just to let you know: Dropzone 2.1.0 can now resize images directly on the client, maybe this is helpful for you... https://github.com/Dani3lSun/apex-plugin-dropzone/releases/tag/v2.1.0