images

PHP: How To Create Copyright Watermark On Your Images

This is happen 3 days ago when my friend asking for converting him .htaccess into lighttpd rewrite rules format. After conversion done he wanted to share this script to everyone. If you’re professional Fotographer or just blogger, you may wanted to copyright all your photos/images. Even we know, sometimes people like to share for having fun…. but some people need a copyright to protected his original works before someone copy it. If you’re doing this manually it will take a long time and of course you will bored before this done. In short time we can make a simple watermark to protected our images.

Requirements:

  1. Apache with mod_rewrite / lighttpd (just convert rewrite rules, it should work)
  2. PHP with GD library (check in your phpconfig or asking your webhosting)

Step one.

Prepare one images that you should used as watermark.Â? This images should be in .PNG format, you can created one using photoshop software to make transparant effect.

Step two.

Make new or open your .htaccess files and write down this code inside it:

RewriteEngine On
RewriteRule ^(.+)\.jpg$ wrapper.php?image=$1\.jpg [L]
RewriteRule ^(.+)\.gif$ wrapper.php?image=$1\.gif [L]
RewriteRule ^(.+)\.png$ wrapper.php?image=$1\.png [L]
RewriteRule ^(.+)\.bmp$ wrapper.php?image=$1\.bmp [L]

For Lighttpd users try to using this conversion, if you meet any problem just following your path and symbol :

url.rewrite-once = (
“^\(.*).jpg” => “/wrapper.php?image=$1.jpg”,
“^\(.*).gif” => “/wrapper.php?image=$1.gif”,
“^\(.*).png” => “/wrapper.php?image=$1.png”,
“^\(.*).bmp” => “/wrapper.php?image=$1.bmp”
)

Step three.

Create wrapper.php files and put code below inside it:

<?php
$watermark = “watermark.png”;
$image = $_GET[“image”];

if (empty($image)) die();

if (!file_exists($image)) {
header(“404 Not Found”);
echo “File Not Found.”; die();
}
Read More »PHP: How To Create Copyright Watermark On Your Images

RELATED SEARCH TERMS:

Make Money From Your Images With ImageSpaceMedia.com

In the past article, I write about how to monetize your images website using britepic. Yesterday my friend email me and share this good information, now we can monetize our images on blog/website using “ImageSpaceMedia” technology. I would say ImageSpaceMedia ads better in looks and earnings, in BritePic cost per click around $0.01 to $0.10 in ImageSpaceMedia cost per click is fix $0.10 per click, it’s also has good look on ads viewed, look at this sample… I Like this ads, it’s look almost same with youtube video ads, I’m sure your CTR through this image ads will be very… Read More »Make Money From Your Images With ImageSpaceMedia.com

TIPS:Making Your Website/Blog Loading Faster.

Hi all, this is my free tips and trick for you all on how to making your website or blog loading faster. After a few months I notice there is a high time consuming on open my own blog, after analyze it I found out there is some optimization we can do to make out website or blog loading faster.

1. Keep your images file size as low as you can.

Making your images file size lower are great option to make your website/blog loading faster, You can do it by converting your images using 3rd tools you like (I used acdsee converting to 65% quality) This will help your website or blog loading faster because it will only take a small consume bandwidth, remember not all country in this world have standard internet connection that would help them if you lower your images quality to catch your images file size to help them load it faster.

Badly this will low your images quality, if you run wallpapers/photos website better keep it as high as you can.

2. Optimize your SQL query.

This is a hard to follow, please refer to your database documentation website and find out the way how you can optimize your database query. If you meet problem then you might rent some programmer out there to help your problem (Usually you have to pay).

3. Make sure there is no error/lost files.

This is happen to my blog last few months ago, I did notice it because usually I open this blog using firefox, after realize it using internet explorer I found some missing images and error on page. This is a little hard to follow, you have to analyze which code making your website or blog showing error, for my problem it was happened not because code error but from this “addthis plugins” after remove it and added the code manually this error gone 😀

4. Choose the best hosting option.

Making sense, you have to choose the best hosting by category:

Read More »TIPS:Making Your Website/Blog Loading Faster.

PHP:Show Online/Offline Server Status

In this article we will learn how to created online/offline server status, mostly this php code function used in gaming site to show server available or not. In my emulate site I was created sample php snippet code to show server online/offline. Click here to read sample code in txt format. All you need is just this sample code: <? $ip = “this.ismy.ip.number”; $port = “portnumber”; if ([email protected]($ip,$port,$ERROR_NO,$ERROR_STR,(float)0.5)) { fclose($check); echo “MY OWN SERVER<br>”; echo “<img border=’0′ src=’images/online.jpg’ alt=’ONLINE’>”; } else { echo “MY OWN SERVER<br>”; echo “<img border=’0′ src=’images/offline.jpg’ alt=’OFFLINE’>”; } ?> Sample result: Just that! really simple right?… Read More »PHP:Show Online/Offline Server Status