Auto-resize image on upload in FORMBUILDER

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
lemonaid
Forum Members
Forum Members
Posts: 77
Joined: Mon Sep 22, 2008 7:44 am

Auto-resize image on upload in FORMBUILDER

Post by lemonaid »

Apologies if this has been covered in the past. I've spent an hour searching and can't find anything.

I have a client who requires their customer to forward/upload an image when completing a form. Of course, people are now taking images willy nilly with their smartphone and trying to upload enormous pictures which are being rejected.

Is there a way to have formbuilder resize images in the process of uploading?

Thanks in advance.
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Auto-resize image on upload in FORMBUILDER

Post by Jos »

Not in the process of uploading, only afterwards with CGSmartImage
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Auto-resize image on upload in FORMBUILDER

Post by velden »

HTML5 supports image resizing by javascript.

However, I never used it myself, nor do I know how well it is supported by different browsers/devices.

Example post (it has JS example): http://www.codeforest.net/html5-image-u ... e-and-crop

Not sure how to integrate that with FormBuilder. Perhaps use JS to catch the onSubmit event and do the resizing if possible. Then 'inject' the resulting image in the form field and post.

Just thinking out loud.
Post Reply

Return to “Modules/Add-Ons”