Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HELP: How Do I Resize Image Before Been Inserted Into My Database Using Php
I had this upload form, which i use this jquery plugin called croppie.js to allow users crop, reposition and zoom their image before been uploaded into my database.
Everything works fine but when images are been uploaded, the plugin doesn't reduce the image size instead it keeps the image original size and makes it clearer and large (i found out that images been uploaded have a size of 1.92mb, 1.20mb and so on, and they are all clear just they way they are before been uploaded)...
So, my php does the real work by renaming the image and changes the image format to .png before inserting it into my database. I know there is a way one can reduce image width and height before inserting it into database but i don't know how. I need help from you guys, i will like to resize image to a width and height of 200 x 200 and keep its transparent background because the image been uploaded using the jquery plugin i use, crop users image into a circular mode (that is, removing the image background)...
So, I will like to know how to resize image width and height before been inserted into databse using php.

@devHammed @dealwap @Dynamo @Laive @abcheats and all nctians...
I am a proud member of NIgerian Coders Team
hi @aaron i don't know how to do it but i will like to have your jquery user picture upload file
I am a proud member of NIgerian Coders Team
(09-17-2018, 06:48 PM)abcheats Wrote:
hi @aaron i don't know how to do it but i will like to have your jquery user picture upload file

sorry sef, the plugin has a feature that reduces image quality... Problem solved...
Search for croppie.js in google and when u have it, i can make it work for u with jquery ajax (live)... Add me up on facebook;
I am a proud member of NIgerian Coders Team

Possibly Related Threads...
Thread Author Replies Views Last Post
  HELP: How to Insert a select input data into a database Using Php Aaron 33 1,299 04-23-2018, 06:49 PM
Last Post: Aaron
  HELP: How To Upload Multiple Images In Mysql Database abcheats 6 382 02-18-2018, 06:24 AM
Last Post: Laive
  HELP: My Carrignton Theme Doesn't Show Full Size Image Dadanebo 0 105 01-04-2018, 11:02 PM
Last Post: Dadanebo
  HELP: How Can I Encode Image Url Using Php Aaron 3 285 12-14-2017, 11:06 PM
Last Post: Aaron
  HELP: How To Validate Image Dimensions Using Php Aaron 0 161 11-23-2017, 11:50 AM
Last Post: Aaron
  HELP: My Image Upload Form Is Not Working Aaron 32 1,163 11-05-2017, 10:04 PM
Last Post:
  SHARED: How To Run Php And Mysql Database On Any Andriod Devine Like Xampp For Computer sedenu4u 1 308 10-08-2017, 07:40 PM
Last Post: Deelino
  TUTORIAL: Php Login Without Using Database bfaschat 8 498 06-15-2017, 08:25 AM
Last Post: devHammed
  Find Height and Width Of an Image dealwap 1 544 04-27-2016, 09:21 PM
Last Post: dealwap
  Cleaning Database Input With PHP dealwap 0 380 01-25-2016, 01:36 PM
Last Post: dealwap

Users browsing this thread: 1 Guest(s)

About Nigeria's Creative Talents

Nigeria's Creative Talents is an online community where every creative Nigerians can share ideas with themselves.

For any more information, please use our contact form.

              User Links