Apr 07, 2011 — 3 comments
A common feature that you will across in websites is the ability to resize an image to fit an exact size so that it will displayed correctly on your design. If you have a very large image and you are going to place it on your website in a space that is only 100px x 100px then you will want to be able to resize this image to fit in the space. One option is to just set the width and height attributes on the image tag in your HTML, this will force the image to be displayed at this size.
Today I am going to show you how to create a PHP script to randomly select from an array to display a random predetermined ad.
In a previous code snippet we found about how you can define new custom images sizes to use on your WordPress theme. This will use the WordPress built in function called add_image_size(). add_image_size( 'custom-image-size1', 300, 900, true );
Learn how to use PHP GD to build a PHP server side script that can accept a local or even remote image file, and then bake any text we would like into that image. This is great for when you have the need to use custom marker icons in say Google Maps, but also would like to have numbers on the markers as well.
Step by Step guide for Building 3D Pie Chart With PHP Using GD Library.
How to Add Watermark to an image using PHP
How To Write Text On An Image In PHP
Ever wondered how to replace that boring mystery man in your wordpress comments area???? Well this tutorial is for you, I’ll show you how to give your blog a more personal touch in the way of removing and adding your own custom gravatar.
Learn how to design a bold, eye-catching energy drink advert using a range of photo manipulation techniques. You’ll learn blending, coloring, lighting, texture creation and much more!
If you have a website where you let your users to upload images, you know that even the small images (around 100x100) can reach 50 - 100KB. This is way too much, when you could simply downsize the image to around 1 - 5KB, this is only the 1 - 5% of the size of the original image. Just imagine the benefits of downsizing 100.000 images...
Help us out! More and more tutorials are submitted to Good-Tutorials each day. We could use your help with finding good tutorials. Mind lending a hand?