Page 5 of 6

resize image before upload to db

Posted: Sat Jun 14, 2014 8:55 am
by obullei

Hello EJLD,

We are working on it at the moment and will get back to you with update as soon as possible.


resize image before upload to db

Posted: Sun Jun 15, 2014 6:36 pm
by Alena Prykhodko

Hello Eric,

Please look at a similar post https://getsatisfaction.com/apperyio/....


resize image before upload to db

Posted: Mon Jun 16, 2014 12:04 pm
by EJLD

Hi Alena, I got the all code of that canyon's cropper. I'll see how I can get my way out. Thk you.


resize image before upload to db

Posted: Sun Jun 22, 2014 1:51 pm
by EJLD

Hi There, I made progress.
I download the code for the cropper you guys indicated in your post before
http://www.jqueryrain.com/2013/08/jqu...

after simplying, i can view the pic and move it on my appery page.

the only thing I still don't know how to solve is the .php file.
it is used to save the cropped image as a new file.

how can i use this php file ? any suggestion ?

or shall I rewrite in a supported code by appery ? any suggestion as well ? :)

thks in advance
Eric


resize image before upload to db

Posted: Sun Jun 22, 2014 11:45 pm
by EJLD

Hi again,

in fact, I hv more questions about my cropper to insert in between "take pic" and "save to DB" of the Appery's Camera App.

the progress i made is that I can view the image and the cropper within an html component. code is basic between html, css and js.

my idea is instead of viewing the pic imageBD64... in the Image component "photopreview" (same name as per Appery camera instrux tutorial), I'd like to view in a HTML component.

in the Appery's mapping, the camera_shot's imageDB64... goes not only to the Image component's assets but also to a photo_buffer as local storage variable.

is there any way to get the path of this photo_buffer, in order to call it from and view it in the html component ?

thks for your advice,
best, Eric


resize image before upload to db

Posted: Mon Jun 23, 2014 4:46 pm
by Evgene Karachevtsev

Hello Eric,

1) "how to solve is the .php file"
Please clarify, are you going to save in Appery.io backend DB? Then you don't need a php file. You should just send the data in Aperry.io database using API DB Appery.io.

2) Local storage variable is available from any js code

codelocalStorage.getItem("itemName")/code

More info is here: http://cordova.apache.org/docs/en/3.0...


resize image before upload to db

Posted: Mon Jun 23, 2014 9:50 pm
by EJLD

Hi Evgene, thks for your answers. I'll look into this.
Best
Eric


resize image before upload to db

Posted: Sun Jul 13, 2014 2:25 pm
by EJLD

Hi Everyone,
so far (again) I'm very happy with the camera app, as well as you guys' advice to use the canyoncode img cropper. I set it up and it works well ... until ... :-) ...
that last point I need to fix but very strange.
the HTML component is changing itself my code replacing/inserting parts.
could you check the att'd screenshot and tell me what's wrong which makes the Appery engine working on its own :-) ?
thk you very much in advance
Eric

Image


resize image before upload to db

Posted: Sun Jul 13, 2014 2:26 pm
by EJLD

BTW my app is already on share with support@appery
name o2o4pw
if it helps


resize image before upload to db

Posted: Mon Jul 14, 2014 7:24 pm
by Kateryna Grynko

Hello,

Sorry, we cannot reproduce the issue. Could you please post detail steps to reproduce such behaviour?