Krptkn.PngExtractor (Кропоткин Framework v0.1.0) View Source
This module uses naive techniques to extract the metadata inside PNG files. It also uses Exexif if exif info is found inside the PNG file.
Link to this section Summary
Functions
Turns EXIF data into map. Uses Exexif.
Extracts EXIF metadata from a PNG buffer (compressed or not).
Link to this section Functions
Turns EXIF data into map. Uses Exexif.
Returns a dictionary with EXIF data.
Examples
iex> Krptkn.PngExtractor.exifstr2map(data)
%{
size: "160x160",
"Created By Software": "Adobe Photoshop CC 2017 (Macintosh)",
}
Extracts EXIF metadata from a PNG buffer (compressed or not).
Returns a dictionary with EXIF data.
Examples
iex> Krptkn.PngExtractor.extract_from_png_buffer(binary_data)
%{
size: "160x160",
"Created By Software": "Adobe Photoshop CC 2017 (Macintosh)",
}