Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Franchi_S5  
#1 Posted : Monday, April 30, 2018 3:01:47 AM(UTC)
Franchi_S5

Rank: Advanced Member

Groups: Member
Joined: 3/8/2018(UTC)
Posts: 38

Thanks: 18 times
Hi suuport,

working with TIFF images I have found problems to write the next IPTC Tags:

Sublocation

Country Code

Attached you will find a screenshot of one image with this TAGS added with Xnview Software, but I cant add this tag with GM9.

mets-pueblo-p1.jpg

Code:
using (Aurigma.GraphicsMill.Bitmap bitmap = new Aurigma.GraphicsMill.Bitmap(@"E:\TEST\IPTC\0002.tif"))
            {
                Aurigma.GraphicsMill.Codecs.TiffSettings encoderOptions = new Aurigma.GraphicsMill.Codecs.TiffSettings();
                
                //IPTC
                Aurigma.GraphicsMill.Codecs.IptcDictionary iptc = new Aurigma.GraphicsMill.Codecs.IptcDictionary();
                iptc[Aurigma.GraphicsMill.Codecs.IptcDictionary.Writer] = "EN";
                iptc[Aurigma.GraphicsMill.Codecs.IptcDictionary.Headline] = "BVNP";
                iptc[Aurigma.GraphicsMill.Codecs.IptcDictionary.Keyword] = "Press. Politics newspapers..";
                iptc[Aurigma.GraphicsMill.Codecs.IptcDictionary.Category] = "IDS";
                iptc[Aurigma.GraphicsMill.Codecs.IptcDictionary.SupplementaryCategory] = "E371858";
                iptc[Aurigma.GraphicsMill.Codecs.IptcDictionary.CopyrightNotice] = "DP";
                iptc[Aurigma.GraphicsMill.Codecs.IptcDictionary.Credit] = "©BVNP. BCV";
                iptc[Aurigma.GraphicsMill.Codecs.IptcDictionary.Source] = "Biblioteca. Name of the Library";
                iptc[Aurigma.GraphicsMill.Codecs.IptcDictionary.City] = "VALÈNCIA";
                iptc[Aurigma.GraphicsMill.Codecs.IptcDictionary.State] = "COMUNITAT VALENCIANA";
                iptc[Aurigma.GraphicsMill.Codecs.IptcDictionary.Country] = "SPAIN";
                
                encoderOptions.Iptc = iptc;

                
                bitmap.Save(@"E:\TEST\IPTC\salida.tif", encoderOptions);
            }

Please could you help me..?? Thanks in advance.

Eugene Kosmin  
#2 Posted : Sunday, May 6, 2018 7:39:11 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 455

Was thanked: 27 time(s) in 27 post(s)
Hi,

Sorry for the long delay.

I've added this issue to our bug tracker. We'll fix it as soon as possible.

Best regards,

Eugene Kosmin.

Aurigma Development Team

thanks 1 user thanked Eugene Kosmin for this useful post.
Franchi_S5 on 5/7/2018(UTC)
Franchi_S5  
#3 Posted : Tuesday, July 3, 2018 9:57:33 AM(UTC)
Franchi_S5

Rank: Advanced Member

Groups: Member
Joined: 3/8/2018(UTC)
Posts: 38

Thanks: 18 times
Originally Posted by: Eugene Kosmin Go to Quoted Post
Hi,

Sorry for the long delay.

I've added this issue to our bug tracker. We'll fix it as soon as possible.

Any solution for this bug??

Thanks in advance.

Eugene Kosmin  
#4 Posted : Tuesday, July 3, 2018 5:09:57 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 455

Was thanked: 27 time(s) in 27 post(s)
Hi,

Please check the latest version 9.3.33. It contains the fix you need.

Best regards,

Eugene Kosmin.

Aurigma Development Team

thanks 1 user thanked Eugene Kosmin for this useful post.
Franchi_S5 on 7/4/2018(UTC)
Franchi_S5  
#5 Posted : Wednesday, July 4, 2018 5:28:50 AM(UTC)
Franchi_S5

Rank: Advanced Member

Groups: Member
Joined: 3/8/2018(UTC)
Posts: 38

Thanks: 18 times
Originally Posted by: Eugene Kosmin Go to Quoted Post
Hi,

Please check the latest version 9.3.33. It contains the fix you need.

Hi Eugene, I have been testing the new version and it works ok.

But I need some help.

I´m trying add some IPTC and EXIF values with special characters and when I check it with Xnview, for example, the special characters are wrong.

For example the copyright symbol appears as an interrogation (?).

Please, how can I solve this problem...??

Thanks in advance.

Franchi_S5  
#6 Posted : Wednesday, July 25, 2018 3:35:23 PM(UTC)
Franchi_S5

Rank: Advanced Member

Groups: Member
Joined: 3/8/2018(UTC)
Posts: 38

Thanks: 18 times
Originally Posted by: Franchi_S5 Go to Quoted Post
Originally Posted by: Eugene Kosmin Go to Quoted Post
Hi,

Please check the latest version 9.3.33. It contains the fix you need.

Hi Eugene, I have been testing the new version and it works ok.

But I need some help.

I´m trying add some IPTC and EXIF values with special characters and when I check it with Xnview, for example, the special characters are wrong.

For example the copyright symbol appears as an interrogation (?).

Please, how can I solve this problem...??

Thanks in advance.

No answer..?? Please I need help with this issue.

Anybody here..??

Edited by user Thursday, July 26, 2018 11:25:51 PM(UTC)  | Reason: Not specified

Eugene Kosmin  
#7 Posted : Thursday, August 2, 2018 1:00:42 AM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 455

Was thanked: 27 time(s) in 27 post(s)
Hi,

I'm sorry for the long delay...

Could you give us more steps to reproduce the problem? I've tried to generate an image with the code you provided above, and it works fine. I can see the copyright symbol in both Photoshop and xnView applications.

copyright.JPG

Best regards,

Eugene Kosmin.

Aurigma Development Team

thanks 1 user thanked Eugene Kosmin for this useful post.
Franchi_S5 on 8/2/2018(UTC)
Franchi_S5  
#8 Posted : Thursday, August 2, 2018 2:38:12 AM(UTC)
Franchi_S5

Rank: Advanced Member

Groups: Member
Joined: 3/8/2018(UTC)
Posts: 38

Thanks: 18 times
Originally Posted by: Eugene Kosmin Go to Quoted Post
Hi,

I'm sorry for the long delay...

Could you give us more steps to reproduce the problem? I've tried to generate an image with the code you provided above, and it works fine. I can see the copyright symbol in both Photoshop and xnView applications.

copyright.JPG

Oh my god, I can´t understand anything. YOU ARE RIGHT. I tried it thousands of times I had symbols problems, but I have just to try it again and it works fine.

Any way I post you the code. If you see anything please let me know. Thanks in advance and sorry for this confusion.

Code:
var reader = JpegReader.Create(fichero.FullName);
                    var iptc = new Aurigma.GraphicsMill.Codecs.IptcDictionary();
                    var exif = new ExifDictionary();
                    iptc = reader.Iptc;
                    exif = reader.Exif;

                     // modify the metadata   
                    if (!(textBoxCopyright.Text == ""))
                    {
                        //byte[] bytes = Encoding.Unicode.GetBytes(textBoxCopyright.Text);
                        exif[ExifDictionary.Copyright] = textBoxCopyright.Text;

                    }
                    if (!(textBoxSoftware.Text == ""))
                    {
                        exif[ExifDictionary.Software] = textBoxSoftware.Text;
                    }
                    if (!(textBoxFabricante.Text == ""))
                    {
                        exif[ExifDictionary.Make] = textBoxFabricante.Text;
                    }
                    if (!(textBoxModelo.Text == ""))
                    {
                        exif[ExifDictionary.Model] = textBoxModelo.Text;
                    }
                    if (!(textBoxArtista.Text == ""))
                    {
                        exif[ExifDictionary.Artist] = textBoxArtista.Text;
                    }

                    if (!(textBoxCopyrightIPTC.Text == ""))
                    {
                        if (checkBoxExcel.Checked)
                        {
                            SUPLEMENTAL_CATEGORIES = textBoxSupCategIPTC.Text + ID_T + "," + ID_D + "," + ID_O;
                        }
                        else
                        {
                            SUPLEMENTAL_CATEGORIES = textBoxSupCategIPTC.Text;
                        }

                        if (!(textBoxAutorIPTC.Text == "")) iptc[IptcDictionary.Caption] = textBoxAutorIPTC.Text;
                        if (!(textBoxTitularIPTC.Text == "")) iptc[IptcDictionary.Headline] = textBoxTitularIPTC.Text;
                        if (!(textBoxPalabrasClaveIPTC.Text == "")) iptc[IptcDictionary.Keyword] = textBoxPalabrasClaveIPTC.Text;
                        if (!(textBoxCategoryIPTC.Text == "")) iptc[IptcDictionary.Category] = textBoxCategoryIPTC.Text;
                        if (!(SUPLEMENTAL_CATEGORIES == "")) iptc[IptcDictionary.SupplementaryCategory] = SUPLEMENTAL_CATEGORIES;
                        if (!(textBoxCopyrightIPTC.Text == "")) iptc[IptcDictionary.CopyrightNotice] = textBoxCopyrightIPTC.Text;
                        if (!(textBoxCreditsIPTC.Text == "")) iptc[IptcDictionary.Credit] = textBoxCreditsIPTC.Text;
                        if (!(textBoxSourceIPTC.Text == "")) iptc[IptcDictionary.Source] = textBoxSourceIPTC.Text;
                        if (!(textBoxCityIPTC.Text == "")) iptc[IptcDictionary.City] = textBoxCityIPTC.Text;
                        if (!(textBoxLocalidadIPTC.Text == "")) iptc[IptcDictionary.Sublocation] = textBoxLocalidadIPTC.Text;
                        if (!(textBoxProvinciaIPTC.Text == "")) iptc[IptcDictionary.State] = textBoxProvinciaIPTC.Text;
                        if (!(textBoxCountryIPTC.Text == "")) iptc[IptcDictionary.Country] = textBoxCountryIPTC.Text;
                        if (!(textBoxCountryCodeIPTC.Text == "")) iptc[IptcDictionary.CountryCode] = textBoxCountryCodeIPTC.Text;

                        // Save the new image 
                        using (var writer = new JpegWriter(fichero.FullName.Replace(".jpg", "_tmp.jpg"), 90))
                        {
                            writer.Exif = exif;
                            writer.Iptc = iptc;
                            Pipeline.Run(reader + writer);
                            reader.Dispose();
                            FileInfo originalImage = new FileInfo(fichero.FullName);
                            // Delete the original
                            originalImage.Delete();
                            exif.Dispose();
                            iptc.Dispose();
                        }
                        System.IO.File.Move(fichero.FullName.Replace(".jpg", "_tmp.jpg"), fichero.FullName);
                    }
Users browsing this topic
Similar Topics
Problem saving DateCreated IPTC metadata (Discussions – Graphics Mill)
by bz3x 3/18/2009 11:07:20 PM(UTC)
IPTC Metadata missing when resizing (Other Products)
by kaarthic 6/19/2006 10:52:50 PM(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.