php - Metadata extraction from PNG images -
How to remove metadata from an image? I have used the exev2 library but it gives only limited data compared to this website. Is there some more advanced library?
I have already tried the Hyacro-Metadata Python Library.
In addition to this, how does Windows remove the description of the image (which we see from the properties)?
. With the start of all PNG with an IHDR block and ending with an IEND block since PNG is such a very flexible standard, it can be enhanced by creating new types of blocks - thus animated animated PNG work All browsers can see the first frame, but browsers, which understand the type of blocks used in APNG, can see the animation.
There are several places that live text data in a PNG image, and even the metadata can remain. You have mentioned "description tag" which can only remain in text blocks, so that I am focusing on that.
There are three different types of text blocks in PNG standard: text (Latin-1 encoded, uncompressed), zTXt (compressed, Latin-1) , And finally iTXt , which can be the most useful of all three UTF-8 encoded texts and can either be compressed or decomposed.
Then, your question becomes, "What is a convenient way to remove the text block?"
At first, I thought piping could do this:
txt / zTXt / iTXt
reading Not paid attention, but not generated.
Fortunately, Cillia has support for this - Funny!
So, without any solution, find the image with the IATX piece: should do it.
& gt; & Gt; & Gt; Im = Image.open ('/ tmp / itxt.png') & gt; & Gt; & Gt; Im.info {'interlace': 1, 'gamma': 0.45455, 'dpi': (72, 72), 'title': 'PNG', 'author': 'La Palum de ma tante'}
According to the source code, and it is also covered.
For a more general case, looking for other readers, those with JPEG and GIF also have a good coverage format - so I would recommend PIL for this. Not to say that the Guardian of Hokroyer-Metadata text pull will not appreciate the request to add the request! : -)
Comments
Post a Comment