How to resize bulk images using PHP

Here in this tutorial I am going to show you how to resize multiple images or bulk images using PHP programming language. I am going to use built-in functions from PHP language to scan the directory and resize images. Such functions are scandir(), imagecreatetruecolor(), imagecreatefromjpeg(), imagecopyresized() and imagejpeg(). In this example I am going to scan a particular directory that contains bulk images and one by one I will resize and save the image in the same directory. So the original image will be replaced by the resized image. If…

Continue

How to create multiple thumbnails from a single uploaded image in Codeigniter

Introduction Here in this tutorial I am going to show you how to create multiple thumbnails using PHP based Codeigniter framework from a single uploaded image. Codeigniter provides a file upload class that is used to upload single file or multiple files or even you can create thumbnail(s). This class also permits you to set various preferences, such as, destination where the file and thumbnail will be uploaded, restriction on file types, restriction on file size, whether a file name should be encrypted or not, maximum length of the file…

Continue

Python Blur Image Pillow

In this tutorial I will show you how to blur an image using Python pillow library. The pillow image library provides the ImageFilter module that contains definitions for a pre-defined set of filters, which can be be used with the Image.filter() method to apply blur on image. I am going to show you three blur effects on an image – simple, box and gaussian blurs. You can blur an image by reducing the level of noise in the image by applying a filter to that image. Blurring an image is…

Continue

How to post image tweets to Twitter using Twitter4j Java API

In this example I am going to discuss on how to post image tweets to Twitter using Twitter4j Java API. Twitter4j is an unofficial Java library and using this you can easily integrate Java application with Twitter service. Using image tweets I want to mean that I want to post text as well as image with this tweet. As many images as you wish to add to your tweet. Basically an array is defined to hold the images along with your text. Related Posts: How to post tweets using Twitter4j…

Continue

Add images to Excel file using Apache POI in Java

Introduction In this tutorial we will see an example on how to add images to excel file using Apache POI in Java programming language. Using Apache POI library it becomes easy to insert or add images into excel file. Images are part of the drawing support. To add an image just call createPicture() on the drawing patriarch. In this example we will insert or add two images of types png and jpg/jpeg. I am going to show you example using both maven and gradle build tools. Here I am using Apache POI…

Continue

Convert Pdf to Image using Python

Introduction In this post we will see how to convert pdf to image using Python language. We will use here pdf2image module for extracting image from pdf file. Though there are number of tools available for converting pdf to image file but still you may need to convert pdf using programming language for certain situations. Here we are going to use pdf2image library in Python 3 for converting image.

Continue

Convert Image to Pdf using Python

Introduction In this post we will see how to convert image to pdf using Python language. We will use here img2pdf module for converting image file to pdf file. Though there are number of tools available for converting image to pdf file but still you may need to convert image using programming language for certain situations. Here we are going to use img2pdf library in Python 3 for converting image.

Continue

Add images to Word document using Apache POI

Introduction Add images to word document using apache poi will show you how to insert or add images into a Word document using Apache POI API. I will create here a Java based application to add images to word document using apache poi library. Using apache poi library is very easy to add images into word document. I am going to show you example using both maven and gradle build tools. This example was tested on Apache POI version 3.15, 4.1.1, 4.1.2.

Continue

Haar Wavelet Transform using Java

In this tutorial I will show you a step by step guide on how haar wavelet transform happens. We will show this implementation with sample data on which we will perform haar wavelet transform. Haar Wavelet Transform is based on Lifting Scheme. Haar wavelet transformation basically used in image processing. Using haar wavelet transform you can reduce the size of the image without compromising the quality of the image. So your image quality is not going to be decreased.

Continue