heh, nice -- I just found this:
https://github.com/smarnach/pyexiftool
Tried it out and it worked great:
```
with exiftool.ExifTool() as et:
et.execute(b'-all=', b'some.png')
```
On 12/12/2017 19:53, Hans-Christoph Steiner wrote:
>
> Ah, cool, I thought exiftool only worked with JPEGs. It seems to work
> with just about every image format. Now the open question is how to
> strip all PNG metadata with Python and Java.
>
> .hc
>
> Rick Valenzuela:
>> does exiftool do what you need?
>>
>> `exiftool -all= <some.PNG>`
>>
>> On 11/12/2017 17:57, Hans-Christoph Steiner wrote:
>>>
>>> Anyone know any tools for sanitizing PNGs without touching the
>>> compressed image data? With JPEG it is easy to strip out EXIF with
>>> python-pil or many other tools. I haven't found a simple, clean approach
>>> in Python for PNGs.
>>>
>>> .hc
>>>
>>
>
--
Rick Valenzuela
Videojournalist
Shanghai, China
_______________________________________________
List info: https://lists.mayfirst.org/mailman/listinfo/guardian-dev
To unsubscribe, email: [email protected]