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 : Friday, April 20, 2018 7:12:24 AM(UTC)
Franchi_S5

Rank: Advanced Member

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

Thanks: 18 times
Hi GM support.

I have problems with some tiff images. I need remove the XMP entries.
Please, could you help me...??

Attached you will see the errors on the XMP entries.
Thanks in advance.

XMP.jpg

Andrey Semenov  
#2 Posted : Monday, April 23, 2018 12:51:37 AM(UTC)
Andrey Semenov

Rank: Advanced Member

Groups: Member, Administration
Joined: 7/4/2017(UTC)
Posts: 33

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

Could you please attach TIFF sample file?
Also, what version of Graphics Mill you are using?

Regards,
Andrew
thanks 1 user thanked Andrey Semenov for this useful post.
Franchi_S5 on 4/23/2018(UTC)
Franchi_S5  
#3 Posted : Monday, April 23, 2018 2:45:14 AM(UTC)
Franchi_S5

Rank: Advanced Member

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

Thanks: 18 times
Originally Posted by: Andrey Semenov Go to Quoted Post
Hi,

Could you please attach TIFF sample file?
Also, what version of Graphics Mill you are using?

Regards,
Andrew


Hi Andrew,
I´m trying upload the tiff image but I´m having problems. I have tried compressing with zip but I have the same problems uploading.
The smallest image I have is 9Mb.
Franchi_S5  
#4 Posted : Monday, April 23, 2018 3:13:20 AM(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: Andrey Semenov Go to Quoted Post
Hi,

Could you please attach TIFF sample file?
Also, what version of Graphics Mill you are using?

Regards,
Andrew


Hi Andrew,
I´m trying upload the tiff image but I´m having problems. I have tried compressing with zip but I have the same problems uploading.
The smallest image I have is 9Mb.


Try this...thanks

Tiff Image Sample with XMP error.
Andrey Semenov  
#5 Posted : Monday, April 23, 2018 9:14:23 PM(UTC)
Andrey Semenov

Rank: Advanced Member

Groups: Member, Administration
Joined: 7/4/2017(UTC)
Posts: 33

Was thanked: 10 time(s) in 10 post(s)
You can do something like this:

Code:
using (var tiffReader = new TiffReader(@"Images\input.tif"))
using (var tiffWriter = new TiffWriter(@"Images\output.tif"))
{
    XmpData xmp = new XmpData();
    tiffWriter.Xmp = xmp.Save();
    Pipeline.Run(tiffReader + tiffWriter);
}


Regards,
Andrew
thanks 1 user thanked Andrey Semenov for this useful post.
Franchi_S5 on 4/24/2018(UTC)
Franchi_S5  
#6 Posted : Tuesday, April 24, 2018 1:13:03 AM(UTC)
Franchi_S5

Rank: Advanced Member

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

Thanks: 18 times
Originally Posted by: Andrey Semenov Go to Quoted Post
You can do something like this:

Code:
using (var tiffReader = new TiffReader(@"Images\input.tif"))
using (var tiffWriter = new TiffWriter(@"Images\output.tif"))
{
    XmpData xmp = new XmpData();
    tiffWriter.Xmp = xmp.Save();
    Pipeline.Run(tiffReader + tiffWriter);
}


Regards,
Andrew


Thanks Andrew.
There is no way to remove the XMP in the input image without save a new file..??
I have big images, the most of them over 100Mb in a network environment.
Thanks again.
Andrey Semenov  
#7 Posted : Tuesday, April 24, 2018 1:28:11 AM(UTC)
Andrey Semenov

Rank: Advanced Member

Groups: Member, Administration
Joined: 7/4/2017(UTC)
Posts: 33

Was thanked: 10 time(s) in 10 post(s)
Originally Posted by: Franchi_S5 Go to Quoted Post
Thanks Andrew.
There is no way to remove the XMP in the input image without save a new file..??
I have big images, the most of them over 100Mb in a network environment.
Thanks again.


It is possible to read existing file in memory and then rewrite it, e.g.:

Code:
using (var bitmap = new Bitmap(@"Images\input.tif"))
using (var tiffWriter = new TiffWriter(@"Images\input.tif"))
{
    XmpData xmp = new XmpData();
    tiffWriter.Xmp = xmp.Save();
    Pipeline.Run(bitmap + tiffWriter);
}


thanks 1 user thanked Andrey Semenov for this useful post.
Franchi_S5 on 4/24/2018(UTC)
Franchi_S5  
#8 Posted : Tuesday, April 24, 2018 2:16:40 AM(UTC)
Franchi_S5

Rank: Advanced Member

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

Thanks: 18 times
Originally Posted by: Andrey Semenov Go to Quoted Post
Originally Posted by: Franchi_S5 Go to Quoted Post
Thanks Andrew.
There is no way to remove the XMP in the input image without save a new file..??
I have big images, the most of them over 100Mb in a network environment.
Thanks again.


It is possible to read existing file in memory and then rewrite it, e.g.:

Code:
using (var bitmap = new Bitmap(@"Images\input.tif"))
using (var tiffWriter = new TiffWriter(@"Images\input.tif"))
{
    XmpData xmp = new XmpData();
    tiffWriter.Xmp = xmp.Save();
    Pipeline.Run(bitmap + tiffWriter);
}




Hi again Andrey. I have tested the last code and it doesn´t change the input image. I have no error but the input image has no change.
I don´t understand why...

Code:
using (var reader = new Aurigma.GraphicsMill.Bitmap(fichero.FullName))
using (var writer = new TiffWriter(fichero.FullName))
                {
                        XmpData xmp = new XmpData();
                        writer.Xmp = xmp.Save();
                                               
                        Pipeline.Run(reader + writer);
                 }

Edited by user Tuesday, April 24, 2018 2:19:23 AM(UTC)  | Reason: Not specified

Franchi_S5  
#9 Posted : Tuesday, April 24, 2018 4:57:26 AM(UTC)
Franchi_S5

Rank: Advanced Member

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

Thanks: 18 times
Originally Posted by: Andrey Semenov Go to Quoted Post
Hi,

Could you please attach TIFF sample file?
Also, what version of Graphics Mill you are using?

Regards,
Andrew


Hi Andrew,
I´ve been checking my code and I have a strange error when I save the Xmp to the TiffWriter

Code:
var exif = new ExifDictionary();
var iptc = new IptcDictionary();
                     if (procesar_exif == false)
                    {
                        exif = reader.Exif;
                        exif.Remove(ExifDictionary.Thumbnail);
                        writer.Exif = exif;
                    }
                    else
                    {
                        exif = reader.Exif;
                        exif.Remove(ExifDictionary.Thumbnail);
                        if (reader.Iptc != null) iptc = reader.Iptc;

                        if (checkBoxEXIF.Enabled) writer.Exif = InsertarEXIF(exif);
                        if (checkBoxIPTC.Checked) writer.Iptc = InsertarIPTC(iptc);
                        if (reader.Xmp != null)
                        {
                            writer.Xmp = reader.Xmp;
                        }
                        else
                        {
                            XmpData xmp = new XmpData();
                            InsertarXMP(xmp);
                            writer.Xmp = xmp.Save();
                        }
                  }


And here is my InsertarXMP method:

Code:
private void InsertarXMP(XmpData xmp)
        {
            if (textBoxXMP_Ciudad.Text != "")
            {
                if (xmp.Contains(XmpTagNames.PhotoshopCity))
                {
                    xmp.Remove(XmpTagNames.PhotoshopCity);
                }
                var node = new XmpValueNode(XmpNodeType.SimpleProperty, textBoxXMP_Ciudad.Text, XmpTagNames.PhotoshopCity);
                xmp.AddNode(node);
            }

            if (textBoxXMP_Provincia.Text != "")
            {
                if (xmp.Contains(XmpTagNames.PhotoshopState))
                {
                    xmp.Remove(XmpTagNames.PhotoshopState);
                }
                var node = new XmpValueNode(XmpNodeType.SimpleProperty, textBoxXMP_Provincia.Text, XmpTagNames.PhotoshopState);
                xmp.AddNode(node);
            }

            if (textBoxXMP_Pais.Text != "")
            {
                if (xmp.Contains(XmpTagNames.PhotoshopCountry))
                {
                    xmp.Remove(XmpTagNames.PhotoshopCountry);
                }
                var node = new XmpValueNode(XmpNodeType.SimpleProperty, textBoxXMP_Pais.Text, XmpTagNames.PhotoshopCountry);
                xmp.AddNode(node);
            }

            if (textBoxXMP_Web.Text != "")
            {
                if (xmp.Contains(XmpTagNames.XmpRightsWebStatement))
                {
                    xmp.Remove(XmpTagNames.XmpRightsWebStatement);
                }
                var node = new XmpValueNode(XmpNodeType.SimpleProperty, textBoxXMP_Web.Text, XmpTagNames.XmpRightsWebStatement);
                xmp.AddNode(node);
            }
        }


When I´m in debugging, and after writer.Xmp = xmp.Save(); I have checked that all the strange characters that I told you in my first question are stored just after this line.

I don´t know if I have done something wrong or this could be an error in the GM Library.



Andrey Semenov  
#10 Posted : Tuesday, April 24, 2018 9:44:43 PM(UTC)
Andrey Semenov

Rank: Advanced Member

Groups: Member, Administration
Joined: 7/4/2017(UTC)
Posts: 33

Was thanked: 10 time(s) in 10 post(s)
As I see, there are no XMP entries in attached TIFF (5326963249_0002.tif):

Code:
<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 5.6.0">
   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
      <rdf:Description rdf:about=""/>
   </rdf:RDF>
</x:xmpmeta>


I see only EXIF metadata in this file. Could you please attach a file with XMP entries which should be removed?
thanks 1 user thanked Andrey Semenov for this useful post.
Franchi_S5 on 4/25/2018(UTC)
Franchi_S5  
#11 Posted : Wednesday, April 25, 2018 2:29:24 AM(UTC)
Franchi_S5

Rank: Advanced Member

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

Thanks: 18 times
Originally Posted by: Andrey Semenov Go to Quoted Post
As I see, there are no XMP entries in attached TIFF (5326963249_0002.tif):

Code:
<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 5.6.0">
   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
      <rdf:Description rdf:about=""/>
   </rdf:RDF>
</x:xmpmeta>


I see only EXIF metadata in this file. Could you please attach a file with XMP entries which should be removed?


Hi Andrew,

I have been checking the attached TIFF and I can see the Metadata section with the strange characters.
I use the Xnview image viewer, it´s a free Image Viewer. If you open the image with Xnview and once opened double click over the image you will see the XMP section.
Anyway, we use too a standard Digital Objects Validation, the name is Jhove, this is the mandatory tool we must use before sending images to our clients.
This tool validate the image and export a XML file with the information about this validation.

Attached I send to you the XML file with the validation of the TIFF image. At the end of the XML file you will see the characters that I told you.
It´s very very strange. I have only seem this problem after process the images with GM library adding XMP Metadata. Anyway, it may be my mistake, but I would need to know what I´m doing wrong.

I attached too the original TIFF before processing and the XML file after validation of this image. Here you will see the image doesn´t have XMP Metadata inside.

You can download the files here:
https://drive.google.com...o4gPHRiGo90m5sswh0grh2_A



Regards and thanks in advance.

Edited by user Wednesday, April 25, 2018 2:32:02 AM(UTC)  | Reason: Not specified

Andrey Semenov  
#12 Posted : Friday, April 27, 2018 12:02:54 AM(UTC)
Andrey Semenov

Rank: Advanced Member

Groups: Member, Administration
Joined: 7/4/2017(UTC)
Posts: 33

Was thanked: 10 time(s) in 10 post(s)
Could you please also share you source code, which generates XML like attached one?

I still see that XMP information is empty and not really sure how these strange symbols can appear. Screenshot from XnView is attached also.

xmp-xnview.png

Regards,
Andrew
Franchi_S5  
#13 Posted : Friday, April 27, 2018 2:57:37 AM(UTC)
Franchi_S5

Rank: Advanced Member

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

Thanks: 18 times
Originally Posted by: Andrey Semenov Go to Quoted Post
Could you please also share you source code, which generates XML like attached one?

I still see that XMP information is empty and not really sure how these strange symbols can appear. Screenshot from XnView is attached also.

xmp-xnview.png

Regards,
Andrew

Hi Andrew,

I didn´t write the code for validation. The Validation Tool is Jhove. It´s a standard app created for Digital Objects Validation and it´s approved by the Library of Congress. You can find it here: http://jhove.sourceforge.net/index.html

If you download the app and extract it from the downloaded .zip you can run the jhove-gui.bat. Then drag and drop the TIFF image over the GUI of the app and will show you the result of the validation. You can export the result as XML too.

We usually use this tool every day for checking all our images. It´s mandatory for all our Projects because the Libraries and Arquives require of this validation. I have never see this strange characteres, only after processing the image with GM. And what I don´t understand is that Xnview show me that strange characteres too.

May be a Jhove bug? May be a Xnview bug? May be a GM bug? I don´t know but I´m going crazy d'oh!

I can´t understand why your screenshot is XMP empty. Could your screenshot belongs to the MASTER TIFF (before processing) instead of the TIFF processed
with G.M. ?? The screenshot I sent you was with Xnview too.

Thanks again,

Franchi_S5  
#14 Posted : Tuesday, May 1, 2018 2:33:01 PM(UTC)
Franchi_S5

Rank: Advanced Member

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

Thanks: 18 times
Any help please..??
Andrey Semenov  
#15 Posted : Thursday, May 3, 2018 1:33:14 AM(UTC)
Andrey Semenov

Rank: Advanced Member

Groups: Member, Administration
Joined: 7/4/2017(UTC)
Posts: 33

Was thanked: 10 time(s) in 10 post(s)
Sorry for the late response.

Thanks for additional information - I have reproduced the problem and added it to our bug tracker, as it looks like a problem on Graphics Mill side.

Regards,
Andrew
thanks 1 user thanked Andrey Semenov for this useful post.
Franchi_S5 on 5/3/2018(UTC)
Franchi_S5  
#16 Posted : Thursday, May 3, 2018 1:58:04 AM(UTC)
Franchi_S5

Rank: Advanced Member

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

Thanks: 18 times
Thanks Andrew,
I will wait for news.
Regards.
Users browsing this topic
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.