1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

changing image exif data for your own?

Discussion in 'Black Hat SEO' started by regme, Jan 7, 2013.

  1. regme

    regme Newbie

    Joined:
    Jun 16, 2012
    Messages:
    46
    Likes Received:
    10
    Have any one php script for changing Exif DATA of image?
     
  2. Aaric

    Aaric Elite Member

    Joined:
    Mar 7, 2010
    Messages:
    1,575
    Likes Received:
    1,120
    Gender:
    Male
    Location:
    USA
    I found this , let us know if this one able to solve your purpose, not php

    Code:
    
    The best tool I found for the job is called Exifer, is free, and can be downloaded here. To adjust your photos here?s http://www.tucows.com/adnload/281273_106644.html what you need to do:
    
    
    1. First of all create a new folder and put a copy of all the photos you wish to change inside it ? it is better to work from a backup copy in case something goes wrong.
    2. Installer Exifer and run it. Browse to the folder containing the photos.
    3. Select all the photos by Ctrl-A then right-click on an image and go to ?EXIF/IPTC? and click on ?Edit?.
    4. Click the ?EXIF data? tab at the top of the window that opens. The click the ?Date tab below it.
    5. Tick the box next to where it says ?Incremental (formore than one selected image)
    6. You can then specify the number of days/hours/minutes to adjust all your photos by. Select the amount using the drop down menu and click okay to adjust your photos.
    7. Check the photos carefully before deleting the originals.
    
    There are times that the EXIF data may be corrupted meaning that you can no longer change the data but generally this should work without any problems.
    
     
  3. regme

    regme Newbie

    Joined:
    Jun 16, 2012
    Messages:
    46
    Likes Received:
    10
    Ok, this is what i got for few dollars. On hosting must be installed IMAGIC module. Was tested on FreeBSD 8. Hope it will be useful not only for me.
    PHP:

            $arkeyword
    =array("size""foot""zodiac""birth""...other words for randomize");        $arForComments=array("photo","picture","2013","...other words for randomize");
            
    $arSlRand =array_rand $arkeyword,  3);                 $TEXT="2#05#Object Name=\"".$artist."\"        2#25#Keywords=\"".$artist.' '.$arkeyword[$arSlRand[0]].' '.$arkeyword[$arSlRand[1]].' '.$arkeyword[$arSlRand[2]]."\"        2#55#Date Created=\"".date("Y-m-d")."\"        2#80#By-Line=\"save from google\"        2#115#Source=\"save from google\"        2#116#Copyright Notice=\"saved on site.com\"        2#120#Abstract=\"".$artist."\"";
                     
    file_put_contents("copiryght.txt",$TEXT);        $ar=array();        $error='';
            
    $image = new Imagick();        $image->readImage($path);        $image->stripImage();         $image->setImageProperty('comment'$artist.' '.$arForComments[array_rand $arForComments,  1)].'  on lyricsroll.com' ) ;        $image->writeImage($path);        $image->destroy();
            
    exec"/usr/local/bin/mogrify -profile 8BIMTEXT:copiryght.txt ".$path ,$ar$error);        exec"/usr/local/bin/mogrify -profile 8BIMTEXT:copiryght.txt ".$new_path,$ar$error);