ExifTool Forum

ExifTool => Newbies => Topic started by: canjmp on March 21, 2023, 09:00:33 AM

Title: Resized Photo Injected Not Identical
Post by: canjmp on March 21, 2023, 09:00:33 AM
I would much appreciate your experience with metadata.

Purpose is to make dual fisheye 7776x3338 photos accepted by stitching software for stitching. Presently the 5792x2896 photos are stitched successfully. The stitching software was originally designed to stitch 7776x3338 photos and now does not.

I converted a 7776x3338 photo to 5792x2896 then copied the metadata from an example 5792x2896 on to the resized photo.

The resized injected image is not being stitched by the software.

I used the following script:

Set "AA=C:\Exiftool\Temp_Image\360_00ph_meta.jpg"    ::XMP source file, full address

set "G=360_0001.jpg"

ffmpeg -i %G% -vf scale=5792:2896 -y NewSizePhoto.jpg


REM    Copy all metadata to the New Size Photo

exiftool -TagsFromFile %AA% "-all:all>all:all" NewSizePhoto.jpg


Example photos are:
7776x3338 photo
https://www.dropbox.com/s/dsho3k827fxoef9/360_0001.JPG?dl=0

NewSizePhoto
https://www.dropbox.com/s/l9ex3cwnoj9q58y/NewSizePhoto.jpg?dl=0

and other 5792x2896 photo
https://www.dropbox.com/s/dljzn722r99tut3/360_0002.JPG?dl=0
Title: Re: Resized Photo Injected Not Identical
Post by: Phil Harvey on March 21, 2023, 09:07:09 AM
I don't have any idea what metadata your stitching software requires, so I can't help much here.  Maybe try comparing the metadata from an image that works in your stitching software to one that doesn't.

- Phil
Title: Re: Resized Photo Injected Not Identical
Post by: StarGeek on March 22, 2023, 03:13:01 AM
Your original images are MPF (Multi-Picture Format) (https://exiftool.org/TagNames/MPF.html) but ffmpeg is creating a simple jpg image.  You're losing all the MPF images in the conversion.

C:\>exiftool -G1 -a -s -MPF:all "Y:\!temp\New folder\360_0001.JPG" "Y:\!temp\New folder\NewSizePhoto.jpg"
======== Y:/!temp/New folder/360_0001.JPG
[MPF0]          MPFVersion                      : 0100
[MPF0]          NumberOfImages                  : 2
[MPImage1]      MPImageFlags                    : Representative image, Dependent parent image
[MPImage1]      MPImageFormat                  : JPEG
[MPImage1]      MPImageType                    : Baseline MP Primary Image
[MPImage1]      MPImageLength                  : 10699848
[MPImage1]      MPImageStart                    : 0
[MPImage1]      DependentImage1EntryNumber      : 2
[MPImage1]      DependentImage2EntryNumber      : 0
[MPImage2]      MPImageFlags                    : Dependent child image
[MPImage2]      MPImageFormat                  : JPEG
[MPImage2]      MPImageType                    : Large Thumbnail (VGA equivalent)
[MPImage2]      MPImageLength                  : 622192
[MPImage2]      MPImageStart                    : 10699848
[MPImage2]      DependentImage1EntryNumber      : 1920
[MPImage2]      DependentImage2EntryNumber      : 960
[MPImage2]      PreviewImage                    : (Binary data 622192 bytes, use -b option to extract)
======== Y:/!temp/New folder/NewSizePhoto.jpg
    2 image files read