Add new Tags saved from ImageMagick to be recongized by photoshop etc.

Started by Archive, May 12, 2010, 08:53:53 AM

Previous topic - Next topic

Archive

[Originally posted by kingyu on 2006-03-29 00:44:24-08]

 Hello,

 I have a problem changing values for the following tags on images generated by ImageMagick :

Code:
$exifTool -> SetNewValue( ObjectName => $sourceCode );
$exifTool -> SetNewValue( Title => $sourceCode );
$exifTool -> SetNewValue( CopyrightNotice => "..." );
$exifTool -> SetNewValue( Rights => "xxx" );
$exifTool -> SetNewValue( Copyright => "xxx" );
$exifTool -> SetNewValue( Credit => "xxx" );
$exifTool -> SetNewValue( Source => "xxx" );
$exifTool -> WriteInfo( $sourceFile ) ;

It seems that (1) serveral of these tags are gone (copyrightNotice, objectName), and (2) some not recognized by photoshop (credit, source, title, rights, copyright).  

For (1), It seems that ImageMagick removes many tags that the original image had before.  I am just wondering how the ExifTool handles adding values for a tag that does not exist, it doesn't add a new tag, and if so, how would I add a new tag in the image metadata?

For (2), When using ImageInfo, it displays the Credit and Sources correctly, but it does not show up in Photoshop.  I am thinking that the information might be added to the wrong segment (should go into IPTC or XMP?) Is there a way to display the tags with the Group information?

Many Thanks!!!

Archive

[Originally posted by exiftool on 2006-03-29 12:23:09-08]

This is https://exiftool.org/faq.html#Q3" target="_blank">question number 3 in the FAQ.

If you have a question after reading the FAQ, let me know.

Archive

[Originally posted by kingyu on 2006-03-29 22:10:17-08]

 Hello,

 Thanks for your help, I have been checking stuff with perl and forgot about commend line tools.  Sorry.  

 So I followed the FAQ and found that the IPTC segment is damaged.  

Code:
[ExifTool]      ExifTool Version Number         : 6.00
[ExifTool]      Warning                         : Bad IPTC data tag (marker 0x38)

 I am guessing if this is the reason photoshop cannot read whatever I tried to write in the file.  I tried to write tags from a file without luck.. Are there any other better suggestion for repair/replace the IPTC tags?

 Warning when using -- exiftool -tagsfromfile image_1.jpg image_2.jpg --

Code:
Warning: [minor] Unrecognized data in IPTC trailer - image_2.jpg

 Thanks..

Archive

[Originally posted by kingyu on 2006-03-29 22:22:08-08]

 Hello again,

 I just tried -- exiftool -IPTC:all= image.jpg

 which to remove the IPTC segment by commend line, and now I am trying to figure out how to do it in perl scripts without have to call a commend line.  

Thanks again..

Archive

[Originally posted by exiftool on 2006-03-30 01:00:02-08]

Ah yes.  In your API calls you should check the return value of ImageInfo() and call GetInfo('Warning','Error') to retrieve any warnings or errors that may have occurred.

Removing all IPTC information is simple:

Code:
$exifTool->SetNewValue('IPTC:all');
$exifTool->WriteInfo('src.jpg','dst.jpg');