jillianmarie
-
Posts
1 -
Joined
-
Last visited
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
File Upload - Image Resize and Saves in Image Folder
in PHP Coding Help
Posted
Hey all, hoping to get this code solved.
I am building an image gallery for a client's website and wanted a way for the client to upload their own images from the back end and shows up on the website page for the pictures. I am using color box as the lightbox feature for the photos and on the webpage thumbnails are displayed in rows.
In the backend, I have the upload page and here is my form:
From the admin upload page, the client can upload their image and it will save it into the "image/uploads/" folder. Here is the uploader.php script:
Now the website page will display all the images in the "images/uploads" folder and will update itself when new photos are uploaded.
Here is the gallery code from the website:
With the help from timthumb.php and timthumb-config.php I am able to produce the thumbnails for the website. Once clicked, brings up the colorbox feature for the image slideshow.
For some reason, this code only can use image sizes under 1500px. How can I upload a bigger image and resize it to save itself into the "images/uploads/" folder to be under 1500px?
Please look at my codes and let me know where and what code I need to produce the resized image.
Thanks!