This topic is locked

Image resize BEFORE upload

2/6/2020 3:26:40 PM
PHPRunner General questions
M
Melanie authorDevClub member

I created a site for upload of photos from iPad and mobile phones - with the high quality cameras now built into the mobile devices, file sizes are large and on cellular connections uploading photos takes too much time and bandwidth.
I cannot change image resolution on IOS. PHPRunner allows for image resize AFTER upload. I am looking for any way that I can change image size BEFORE upload or while uploading to reduce the time for upload.
Has anyone done this successfully? I do not want to add an extra step of moving the photo somewhere else first or editing it - I would like the user to take the photo, USE and have the resize happen on upload.

K
keithh0427 2/6/2020

Something like the following, maybe.
https://inkplant.com/code/php-resize-image-function

M
Melanie authorDevClub member 2/6/2020



Something like the following, maybe.
https://inkplant.com/code/php-resize-image-function


Thanks - I have found several things like this - but cannot figure out how to make it work BEFORE the file is uploaded.

A
acpan 2/6/2020

Check this and see if you can make it work:
html5 resize image before upload
HTML5 File API

M
Melanie authorDevClub member 2/7/2020



Check this and see if you can make it work:
html5 resize image before upload
HTML5 File API


Yes I saw that too - have no idea where I would incorporate that into my phprunner add page though.

Admin 2/10/2020

I think something like this can be done but integration into existing PHPRunner upload process will take a reasonable amount of coding time.

M
Melanie authorDevClub member 2/10/2020



I think something like this can be done but integration into existing PHPRunner upload process will take a reasonable amount of coding time.


Thanks much - I think it would be a very valued addition. As it is now we are abandoning the upload of the photo as it is just too burdensome for the users. They will enter the data and save it, then go to an 'audit' screen and double check it before 'posting' it to our accounting system. The idea of the photo was to upload it and have our accounting people double check it against the photo.
Melanie