How to Compress Image size while Uploading with PHP

High-quality images take time to load on the webpage depending on the number of images.

You can create multiple sizes of the image file when uploading and use the low and high-quality images when required.

When reducing an image size then it also decreases its quality.

The best example of this is WordPress, whenever an image file is uploaded then it will generate a different-different size of the file. Those images will use in the theme according to requirement.

In this tutorial, I show how you can compress image size while uploading with PHP.

How to Compress Image size while Uploading with PHP

Read more

jQuery Datepicker to filter records with PHP MySQL

Date filter makes it easier to list records according to specific date range selection.

The user can pick dates and search the list. Records will be displayed according to date selection.

To add datepicker you can use jQuery UI, Bootstrap, or any other jQuery plugin.

In this tutorial, I am using jQuery UI to add datepicker widget and filter the records with PHP MySQL.

jQuery Datepicker to filter records with PHP MySQL

Read more

Upload and Create Photo Gallery with Photobox in PHP

Photobox is a jQuery library that use to add image gallery on the webpage.

It comes with different options for customization and supports IE8+ and modern browsers.

You need to arrange images in a specific order and initialize Photobox on the container to create the gallery.

In this tutorial, I am using the Photobox library to create the image gallery by reading uploaded images from a directory with PHP.

Upload and Create Photo Gallery with Photobox in PHP

Read more