• 07-12-2014, 22:43:31
    #64
    Konudaki tüm gerekli tüm acıklamaları not ettim.
    inş. bunların ışığında bir yere varırız.
  • 09-12-2014, 00:53:18
    #65
    Exif bilgileri filanda geçmiş konuda bir resmin exif yani iptct verileri silip kendi verilerinizi ekleyebilirsiniz. Tabi başkası tarafından kopyalanan resimin boyutu değiştiği an iptct verileride silinir. Fakat siz kendi bünyenizde googleun sizin resimlerin içeriğini görmesini isterseniz o ayrı. Neyse aşağıdaki kodla dilediğiniz resme iptct verisi kendinize göre ekleyebilirsiniz. Hatta bir foreach ile dosyadaki tüm resimlere otomatik iptct verisi dahi eklersiniz. Hediyem olsun güzel konu olmuş. Kod localimde duruyordu bir yerden alıntı fakat nerden bilmiyorum açıkcası. İşine yarayan alsın kullansın işte.

    function iptc_make_tag($rec, $data, $value)
    {
        $length = strlen($value);
        $retval = chr(0x1C) . chr($rec) . chr($data);
    
        if($length < 0x8000)
        {
            $retval .= chr($length >> 8) .  chr($length & 0xFF);
        }
        else
        {
            $retval .= chr(0x80) .
                       chr(0x04) .
                       chr(($length >> 24) & 0xFF) .
                       chr(($length >> 16) & 0xFF) .
                       chr(($length >> 8) & 0xFF) .
                       chr($length & 0xFF);
        }
    
        return $retval . $value;
    }
    
    // jpeg dosyasının yolu
    $path = "yeniresimler/3.JPG";
    
    $image = getimagesize($path, $info);
    
    // Burdan resmin iptct bilgilerine ulaşıyoruz bir dahaki sayfa yenilememizde iptctlerin bizim belirlediğimiz değerlerle değiştirildiğini görüceksiniz.
        echo '<pre>';
        var_dump($info);
        echo '</pre>';
    
    
    
    
    // IPTC etiketlerini düzenleyelim
    $iptc = array(
    '1#000' => 'EnvelopeRecordVersion',
    '1#005' => 'Destination',
    '1#020' => 'FileFormat',
    '1#022' => 'FileVersion',
    '1#030' => 'ServiceIdentifier',
    '1#040' => 'EnvelopeNumber',
    '1#050' => 'ProductID',
    '1#060' => 'EnvelopePriority',
    '1#070' => 'DateSent',
    '1#080' => 'TimeSent',
    '1#090' => 'CodedCharacterSet',
    '1#100' => 'UniqueObjectName',
    '1#120' => 'ARMIdentifier',
    '1#122' => 'ARMVersion',
    '2#000' => 'ApplicationRecordVersion',
    '2#003' => 'ObjectTypeReference',
    '2#004' => 'ObjectAttributeReference',
    '2#005' => 'ObjectName',
    '2#007' => 'EditStatus',
    '2#008' => 'EditorialUpdate',
    '2#010' => 'Urgency',
    '2#012' => 'SubjectReference',
    '2#015' => 'Category',
    '2#020' => 'SupplementalCategories',
    '2#022' => 'FixtureIdentifier',
    '2#025' => 'Keywords',
    '2#026' => 'ContentLocationCode',
    '2#027' => 'ContentLocationName',
    '2#030' => 'ReleaseDate',
    '2#035' => 'ReleaseTime',
    '2#037' => 'ExpirationDate',
    '2#038' => 'ExpirationTime',
    '2#040' => 'SpecialInstructions',
    '2#042' => 'ActionAdvised',
    '2#045' => 'ReferenceService',
    '2#047' => 'ReferenceDate',
    '2#050' => 'ReferenceNumber',
    '2#055' => 'DateCreated',
    '2#060' => 'TimeCreated',
    '2#062' => 'DigitalCreationDate',
    '2#063' => 'DigitalCreationTime',
    '2#065' => 'OriginatingProgram',
    '2#070' => 'ProgramVersion',
    '2#075' => 'ObjectCycle',
    '2#080' => 'By-line',
    '2#085' => 'By-lineTitle',
    '2#090' => 'City',
    '2#092' => 'Sub-location',
    '2#095' => 'Province-State',
    '2#100' => 'Country-PrimaryLocationCode',
    '2#101' => 'Country-PrimaryLocationName',
    '2#103' => 'OriginalTransmissionReference',
    '2#105' => 'Headline',
    '2#110' => 'Credit',
    '2#115' => 'Source',
    '2#116' => 'CopyrightNotice',
    '2#118' => 'Contact',
    '2#120' => 'Caption-Abstract',
    '2#121' => 'LocalCaption',
    '2#122' => 'Writer-Editor',
    '2#125' => 'RasterizedCaption',
    '2#130' => 'ImageType',
    '2#131' => 'ImageOrientation',
    '2#135' => 'LanguageIdentifier',
    '2#150' => 'AudioType',
    '2#151' => 'AudioSamplingRate',
    '2#152' => 'AudioSamplingResolution',
    '2#153' => 'AudioDuration',
    '2#154' => 'AudioOutcue',
    '2#184' => 'JobID',
    '2#185' => 'MasterDocumentID',
    '2#186' => 'ShortDocumentID',
    '2#187' => 'UniqueDocumentID',
    '2#188' => 'OwnerID',
    '2#200' => 'ObjectPreviewFileFormat',
    '2#201' => 'ObjectPreviewFileVersion',
    '2#202' => 'ObjectPreviewData',
    '2#221' => 'Prefs',
    '2#225' => 'ClassifyState',
    '2#228' => 'SimilarityIndex',
    '2#230' => 'DocumentNotes',
    '2#231' => 'DocumentHistory',
    '2#232' => 'ExifCameraInfo',
    '2#255' => 'CatalogSets',
    '3#000' => 'NewsPhotoVersion',
    '3#010' => 'IPTCPictureNumber',
    '3#020' => 'IPTCImageWidth',
    '3#030' => 'IPTCImageHeight',
    '3#040' => 'IPTCPixelWidth',
    '3#050' => 'IPTCPixelHeight',
    '3#055' => 'SupplementalType',
    '3#060' => 'ColorRepresentation',
    '3#064' => 'InterchangeColorSpace',
    '3#065' => 'ColorSequence',
    '3#066' => 'ICC_Profile',
    '3#070' => 'ColorCalibrationMatrix',
    '3#080' => 'LookupTable',
    '3#084' => 'NumIndexEntries',
    '3#085' => 'ColorPalette',
    '3#086' => 'IPTCBitsPerSample',
    '3#090' => 'SampleStructure',
    '3#100' => 'ScanningDirection',
    '3#102' => 'IPTCImageRotation',
    '3#110' => 'DataCompressionMethod',
    '3#120' => 'QuantizationMethod',
    '3#125' => 'EndPoints',
    '3#130' => 'ExcursionTolerance',
    '3#135' => 'BitsPerComponent',
    '3#140' => 'MaximumDensityRange',
    '3#145' => 'GammaCompensatedValue',
    '7#010' => 'SizeMode',
    '7#020' => 'MaxSubfileSize',
    '7#090' => 'ObjectSizeAnnounced',
    '7#095' => 'MaximumObjectSize',
    '8#010' => 'SubFile',
    '9#010' => 'ConfirmedObjectSize',
    );
    
    // IPTC etiketlerini ikil veriye dönüştürelim
    $data = '';
    
    foreach($iptc as $tag => $string)
    {
        $tag = substr($tag, 2);
        $data .= iptc_make_tag(2, $tag, $string);
    }
    
    // IPTC verisini resme gömelim.
    $content = iptcembed($data, $path);
    
    // Yeni resim verisini dosyaya yazalım.
    $fp = fopen($path, "wb");
    fwrite($fp, $content);
    fclose($fp);
  • 04-01-2015, 11:48:45
    #66
    Üyeliği durduruldu
    Çok güzel bilgler var konuda.