1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-01-02 03:37:54 +02:00

description not part of data. added fun test pictures

This commit is contained in:
gras 2024-04-14 23:28:10 +02:00
parent b0657862e1
commit 23a05f6b43
9 changed files with 33 additions and 47 deletions

View File

@ -2,51 +2,33 @@
//tagname1 is typically a full date time, but in some cases tagname1 and tagname2 together make up a full timestamp //tagname1 is typically a full date time, but in some cases tagname1 and tagname2 together make up a full timestamp
const metadataTags: [string, string, string][] = [ const metadataTags: [string, string][] = [
// EXIF tags // Date tag Offset or time tag // Description
["exif.DateTimeOriginal", "exif.OffsetTimeOriginal", "Date and time when the original image was taken"], ["exif.DateTimeOriginal", "exif.OffsetTimeOriginal"], //"Date and time when the original image was taken - shutter close time"
["exif.CreateDate", "exif.OffsetTime", "Date and time when the image was created"], ["exif.CreateDate", "exif.OffsetTime"], //"Date and time when the image was created"],
["xmp:CreateDate", "", "Date and time when the image was created (XMP standard)"], ["ifd0.ModifyDate", ""], //"Modificaton date from the idf0 section"],
["exif.DateTimeDigitized", "exif.OffsetTimeDigitized", "Date and time when the image was digitized"], ["ihdr.Creation Time", ""], //"PNG Creation Time"],
["iptc.DateCreated", "iptc.TimeCreated", "Date and time when the image was created (IPTC standard)"], ["photoshop.DateCreated", ""], //"Date and time when the image was created"],
["ihdr.Creation Time", "", "PNG Creation Time"], ["xmp:CreateDate", ""], //"Date and time when the image was created (XMP standard)"],
["iptc.DateCreated", "iptc.TimeCreated"], //"Date and time when the image was created (IPTC standard)"],
// TIFF tags ["exif.DateTimeDigitized", "exif.OffsetTimeDigitized"], //"Date and time when the image was digitized"],
["TIFF.DateTime", "", "Date and time when the image was created (TIFF standard)"], ["xmp.MetadataDate", ""], //??????????
["TIFF.DateTime", ""], //"Date and time when the image was created (TIFF standard)"],
// QuickTime tags ["quicktime.CreationDate", ""], //"Date and time when the QuickTime movie was created"],
["quicktime.CreationDate", "", "Date and time when the QuickTime movie was created"], ["quicktime.CreateDate", ""], //"Date and time when the QuickTime movie was created in UTC"],
["quicktime.CreateDate", "", "Date and time when the QuickTime movie was created in UTC"], ["AVI.CreationTime", ""], //"Date and time when the AVI video was created"],
["MP4.CreationTime", ""], //"Date and time when the MP4 video was created"],
//Photoshop tags ["MP4.ModifyDate", ""], //"Date and time when the MP4 video was last modified"],
["photoshop.DateCreated", "", "Date and time when the image was created"], ["WebP.VP8X/Time", ""], //"Date and time when the WebP image was created"],
["heic.ContentCreateDate", ""], //"Date and time when the HEIC image content was created"],
// AVI tags ["heic.CreationDate", ""], //"Date and time when the HEIC image was created"],
["AVI.CreationTime", "", "Date and time when the AVI video was created"], ["cr2.DateTimeOriginal", ""], //"Date and time when the original Canon RAW image was taken"],
["nef.DateTimeOriginal", ""], //"Date and time when the original Nikon RAW image was taken"],
// MP4 tags ["dng.DateTimeOriginal", ""], //"Date and time when the original DNG image was taken"],
["MP4.CreationTime", "", "Date and time when the MP4 video was created"], ["rw2.DateTimeOriginal", ""], //"Date and time when the original Panasonic RAW image was taken"],
["MP4.ModifyDate", "", "Date and time when the MP4 video was last modified"], ["arw.DateTimeOriginal", ""], //"Date and time when the original Sony Alpha RAW image was taken"],
["cr3.DateTimeOriginal", ""], //"Date and time when the original Canon RAW image was taken"],
// WebP tags ["sr2.DateTimeOriginal", ""], //"Date and time when the original Sony RAW image was taken"],
["WebP.VP8X/Time", "", "Date and time when the WebP image was created"], ["orf.DateTimeOriginal", ""], //"Date and time when the original Olympus RAW image was taken"],
["xmp:ModifyDate", ""], //"Date and time when the image was last modified (XMP standard)"]
// HEIC tags
["heic.ContentCreateDate", "", "Date and time when the HEIC image content was created"],
["heic.CreationDate", "", "Date and time when the HEIC image was created"],
// RAW image format tags
["cr2.DateTimeOriginal", "", "Date and time when the original Canon RAW image was taken"],
["nef.DateTimeOriginal", "", "Date and time when the original Nikon RAW image was taken"],
["dng.DateTimeOriginal", "", "Date and time when the original DNG image was taken"],
["rw2.DateTimeOriginal", "", "Date and time when the original Panasonic RAW image was taken"],
["arw.DateTimeOriginal", "", "Date and time when the original Sony Alpha RAW image was taken"],
["cr3.DateTimeOriginal", "", "Date and time when the original Canon RAW image was taken"],
["sr2.DateTimeOriginal", "", "Date and time when the original Sony RAW image was taken"],
["orf.DateTimeOriginal", "", "Date and time when the original Olympus RAW image was taken"],
["ifd0.ModifyDate", "", "Modificaton date from the idf0 section"],
["xmp:ModifyDate", "", "Date and time when the image was last modified (XMP standard)"]
]; ];

View File

@ -230,6 +230,10 @@ export class Utils {
} }
} }
static getLocalTimeMS(creationDate: number, creationDateOffset: string) {
const offsetMinutes = Utils.getOffsetMinutes(creationDateOffset);
return creationDate + (offsetMinutes ? (offsetMinutes * 60000) : 0);
}
static isLeapYear(year: number) { static isLeapYear(year: number) {
return (0 == year % 4) && (0 != year % 100) || (0 == year % 400) return (0 == year % 4) && (0 != year % 100) || (0 == year % 400)

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB