Skip to main content

Posts

Showing posts with the label Images

How To Watermark A Photo Using PHP

Hello Friends, This blog post will help you to create a watermark image using PHP. But first let’s get introduce yourself with watermarking. What is Watermark? Watermark is a marker which is embedded inside image (other media). It is use to identify the ownership. Why we need Watermarking? Watermarking helps to maintain integrity   and avoid unauthorized use for images (other media source also). For example let’s suppose you are have image hosting website and you provide unique and beautiful images to user. If you want only authorize user should download your images then you need to provide image preview with watermarking and original image to authorized user only so that unauthorized user cannot misuse it. Now let look at some coding stuff. First example shows watermarking images with text, normally we use copyright text. And second example show watermarking with watermark image. Watermarking using text // set water mark text $watermark = 'wate

Preload Images Using Javascript

Preload Image is technique which helps browser to render images with minimum delay. Today we will see example of image gallery. Gallery contain 5 images which load images one after another whenever user clicks next and back button. This is a basic image gallery scenario which is used in all possible website, then why we need preloaded images for this gallery? Now a day’s most of website becoming faster and user expectation is increasing. Suppose your website doesn’t use preload image technique for gallery and a user visits any image gallery from Google Plus or Facebook and visits your website gallery. Then that user always prefer those websites rather than yours. Why? Because your website load one image at a time. When user click on next button, then only gallery load image and user has wait till it get loaded. To avoid this situation gallery needs to download all images

jQuery: How To Make Your Image based Website Load Faster

Hello Friends, Today I am writing my second tutorial post regarding optimization of webpage which contains bulks of images. Let’s consider one scenario where you want to display hundreds of images at a time. And also your client wants this webpage should load faster. Now here is the problem, webpage won’t get loaded fully unless all of its images get download first. Which means as number of images in webpage increases the load time of that webpage also increased. To solve this problem we must reduce the webpage load time, indirectly it means that we need to load less amount of images. Consider a scenario where we load only one default image at each place of actual images indicating that these actual images are getting downloaded and using Javascript we will download these actual images after window finishes its loading. Following diagrams will help you to understand the flow. as one image wont takes too much time to load, therefore webpage speed inc

Subscribe for latest tutorial updates

* indicates required