Comments (3)
There appears to be another issue; when examinging the DNG file for previews, the LoaderTiff
is used but it makes an assumption that all previews will have a "image/tiff" mime-type (as set in LoaderExifDataJpeg::getProperties()
).
In the use case above, we are able to use exiftool
to udpate the preview image using a jpeg - I do not know if this is to spec but at least Phil Harvey's commet notes such a DNG with JPEG preview image can be read correctly by MacOS.
from exiv2.
I wouldn't get hung up on the size per se, as they don't really disagree:
Exif.Image.StripByteCounts Long 1 72470
| 12) PreviewImageLength = 72470
However, the preview not being detected as a JPEG might need looking into.
from exiv2.
## NOTICE image size reported as 188984 vs actual 188855 (+118bytes diff)
## BUT looking at -pt it CORRECTLY reports size
So the -pt
reports the actual size of the JPEG byte stream, and that is in agreement and what matters. The +118 bytes is the size of the TIFF preview image one would extract - the extra bytes are for the TIFF container that wraps that JPEG payload.
Not sure if there's an actual bug here, just difference in behaviour: exiv2 decides to treat DNG/TIFF subimages as still valid TIFF images when possible, and doesn't necessary "unwrap" them unless they're specifically designated as preview/thumbnail images (using e.g. the JPEGInterchangeFormatLength tag instead of StripByteCounts, which in contrast seems to make LoaderTiff
the priority loader).
from exiv2.
Related Issues (20)
- Let's release version 0.28.1 HOT 6
- Missing source release archive for 0.28.1
- Problematic use of std:regex on Windows (MSYS2 UCRT64) HOT 4
- `exiv2 -m file` / `exiv2 -M` cannot handle whitespaces value HOT 3
- ExifData::orientation returns 0 HOT 1
- please add crw tag "JpgFromRaw" support to get bigger preview image for cr3 image HOT 3
- please add new rw2 preview image tag support
- Chinese path not supported HOT 2
- Extreme slowdown due to use of std:regex on Windows (MSYS2 UCRT64) HOT 2
- Exif.Photo.UserComment value garbled HOT 1
- Windows 7 and libcurl
- Who can do changes in Wiki?
- Build option to omit ssh? HOT 4
- exiv2.org expires on February 29, 2024 HOT 8
- Localization file template update on crowdin HOT 18
- Lens Recognition for Sigma 24mm f/1.4 DG HSM Art HOT 2
- JXR Format support HOT 1
- Writing XMP metadata to jp2 files erases all XMP metadata in file HOT 10
- Dates are misinterpreted as XmpText HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exiv2.