Commit Graph

69 Commits

Author SHA1 Message Date
62f3c0a5cb fpexif: Avoid crash when xmp data have trainling zero bytes.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9024 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-11-13 17:35:49 +00:00
2aa985a34c fpexif: Fix usage with Delphi 7. Update readme.txt.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9016 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-11-08 17:56:29 +00:00
035442ee36 fpexif: Delphi support for XMP metadata.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9012 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-11-06 16:42:17 +00:00
3040781187 fpexif: Fix IPTC string tag writing error.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9011 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-11-06 16:41:26 +00:00
49849cc193 fpexif: Fix compilation with Delphi
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8995 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-10-28 23:37:19 +00:00
ab61bf4bb9 fpexif: Fix crash when the image file contains xmp data with invalid xml structure (missing first '<')
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8994 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-10-28 23:14:27 +00:00
3e67affa50 fpexif: Clean up
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8993 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-10-28 22:25:20 +00:00
f36bceb0ca fpExif: Fix writing of multi-string IPTC tags. Nicer display text for IPTC CodeCharacterSet tag.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8992 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-10-28 18:05:41 +00:00
bc05074d55 fpexif: Add AddOrReplaceTagByID and ..ByName methods to TExifData.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8773 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-03-24 11:08:35 +00:00
48246179fa fpexif: Include translation files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8675 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-01-13 00:18:35 +00:00
139d9f108b fpexif: Fix IPTC crashing when reading a zero byte fillers at the end of IPTC segment (https://forum.lazarus.freepascal.org/index.php/topic,61832.msg466607.html#msg466607).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8674 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-01-12 23:34:10 +00:00
68e8dba861 fpexif: Minor optimization.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8642 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-12-08 17:58:19 +00:00
5715d71739 fpexif: Fix some range check errors. Patch by forum user Mirkasp (https://forum.lazarus.freepascal.org/index.php/topic,60105.msg448827).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8366 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-07-28 20:48:21 +00:00
7034ab1715 fpexif: XMPData.TagFromIndex now returns only the "value" part of the tag.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8204 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-03-09 10:56:50 +00:00
f2bf46445d fpexif: Add missing unit fpeXmpReadWrite
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8203 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-03-08 08:08:08 +00:00
79770ff31d fpexif: Support write-back of XMP
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8202 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-03-07 21:03:56 +00:00
f39aad84fe fpexif: Add support of XMP meta data (reading).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8201 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-03-07 12:10:52 +00:00
d415062ff4 fpexif: Less hints and warnings.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8125 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-10-27 14:54:14 +00:00
652eaac2d4 fpexif: Fix compilation of unit test project with Delphi 7.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8063 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-07-13 07:48:15 +00:00
f335aef18e fpexif: Fix compilation of unit tests with Delphi.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8062 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-07-13 07:40:43 +00:00
8d8f41afd1 fpexif: Fix unnamed "Software" tag ($0131) in IFD1. Issue #38926. Patch by regs.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8046 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-05-24 17:41:37 +00:00
f6b4a42589 fpexif: Typo in ImageUniqueID tag. Issue #38926.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8045 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-05-23 20:59:29 +00:00
9ac5119607 fpexif: Fix exif reader when pre-mature end-of-directory value is found in IFD. Issue #38904, patch by regs.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8044 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-05-22 22:06:21 +00:00
1641eba327 fpexif: Avoid raising an exception when IPTC is present but has zero length. Issue #38876.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8034 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-05-17 16:51:00 +00:00
f6f84585ff fpexif: Fix Exif tag $9290 ("SubSecTime").
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8004 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-04-27 16:29:55 +00:00
2ea4de6d2b fpexif: Continue reading jpg when unexpected EXIF segment is found. Show built-in shell icons in metadata viewer.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8003 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-04-27 14:48:09 +00:00
5c636d346d fpexif: Fix incorrect copying of XMP meta data when a file with XMP is re-saved.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7983 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-03-25 13:16:46 +00:00
d6e6b78c99 fpexif: Undo previous commit.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7982 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-03-24 23:03:16 +00:00
8312fda08f Fix incorrect APP1 segment size calculation.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7981 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-03-24 16:55:19 +00:00
79c276f94d fpexif: combine value and unit field of some GPS tags to direct Exifdata properties. Issue #38423.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7968 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-01-30 13:02:03 +00:00
85c861408a fpexif: Fix crash when file with incorrectly specified segment length is written. Fix XMP metadata being lost when they coexist together with EXIF.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7965 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-01-17 18:22:28 +00:00
0d703fb453 fpExif: Fix crash in images of YUNEEC CGO3 camera due to empty IFD entries.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7964 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-01-17 11:10:46 +00:00
5979de2a61 fpexif: Adapt to better work in Delphi.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7908 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-11-29 13:58:23 +00:00
a2291fa2e7 fpExif: Fix floating point overflow in the ShutterSpeed tag in case of manual exposure (https://forum.lazarus.freepascal.org/index.php/topic,49648.msg382611.html).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7837 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-11-02 09:39:32 +00:00
f25070ba4f fpexif: Fix potential divide-by-zero error in TExposureTimeTag.GetAsString (https://forum.lazarus.freepascal.org/index.php/topic,44015.msg379681.html#msg379681).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7779 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-10-14 19:11:04 +00:00
660f4a7db7 fpexif: Undo r7416
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7778 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-10-14 19:05:30 +00:00
abb796c0b2 fpexif: Set WriteJFIFandEXIF after reading a file so that existing segments are preserved.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7428 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-05-03 20:55:56 +00:00
7e70201620 fpexif: Add boolean property WriteJFIFandEXIF which forces writing JFIF and EXIF segments if both exist. (https://forum.lazarus.freepascal.org/index.php/topic,49648.0.html).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7427 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-05-03 20:32:43 +00:00
94067dff3d fpexif: Fix file-not-found error when image is on One Drive for Business. See https://forum.lazarus.freepascal.org/index.php/topic,49564.msg359676.html
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7416 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-04-29 06:33:35 +00:00
1048d9c4b1 fpexif: Fix bug in Nikon maker note reader, caused crash for some Nikon images.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7347 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-03-30 20:39:06 +00:00
90366be659 fpexif: Fix compilation with Delphi
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7344 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-03-29 21:37:05 +00:00
0df68abf33 metadata_viewer: Add drivecombobox to Delphi version of MetadataViewer demo.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7335 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-03-22 11:10:57 +00:00
9439dff7f1 fpexif: Fix minor compilation issues of demos in Delphi.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7334 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-03-21 21:36:46 +00:00
acb60ffd33 fpexif: Add Delphi examples
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7328 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-02-17 23:17:39 +00:00
9779c4beba fpexif: Prepare for compilation with Delphi. Fix crash with Nikon images.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7327 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-02-17 18:52:45 +00:00
cd0aa90768 fpexif: Fix detection of EXIF structure if a JFIF extension APP0 marker segment is in file (JFXX). Extract JFXX thumbnail.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7194 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-11-21 15:11:12 +00:00
c7dda5d7a3 fpexif: Consider exif Orientation tag when loading image in MetadataViewer.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7096 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-08-05 22:39:15 +00:00
0d39fd7dfd fpexif: Write NULL byte after string tags.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6869 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-04-26 10:15:13 +00:00
26982a47e9 fpexif: Some cleanup
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6842 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-04-09 09:24:20 +00:00
3b457821b0 fpexif: Fix memory leak due to typo ("except" instead of "finally"). Issue #34537, patch by Mike Thompson.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6841 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-04-09 09:23:28 +00:00