obullei
Posts: 0
Joined: Thu Jun 05, 2014 12:17 am

resize image before upload to db

Hello EJLD,

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

resize image before upload to db

Hello Eric,

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

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

resize image before upload to db

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

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

resize image before upload to db

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

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

resize image before upload to db

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

resize image before upload to db

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...

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

resize image before upload to db

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

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

resize image before upload to db

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

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

resize image before upload to db

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

resize image before upload to db

Hello,

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

Return to “Issues”