JPG from raw squeezed after tags transfer from SRW file

Started by srwuser, June 28, 2018, 06:08:10 PM

Previous topic - Next topic

srwuser

I'm trying to extract JPG from raw SRW file, but after transfer of tags from SRW to JPG image is getting squeezed by X axis.
Here is a command I'm using:
exiftool -if '$jpgfromraw' -b -jpgfromraw -w %d%f_%ue.jpg -execute -tagsfromfile @ -srcfile %d%f_%ue.jpg -overwrite_original -common_args --ext jpg .
Extracted JPG (result of jpgfromraw, without tagsfromfile) looks fine and became weirdly squeezed only after tags transfer.
That's probably a problem with orientation because another photo in portrait orientation looks ok.
ExifTool version is 11.03, OS is macOS High Sierra

Can't attach images, so I've uploaded them to dropbox:
https://www.dropbox.com/sh/n7jgzedfby8371v/AABcCndyUCxRFYyIVLcLEbpDa?dl=0

srwuser

and yeah, JPG looks squeezed only in some programs, e.g. XnViewMP

Phil Harvey

I can't look right now, but the only things I can think of that could potentially distort the image like that are the EXIF Orientation and XResolution/YResolution.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

Yeah, the resolution tags in the raw are really odd
C:\>exiftool -g1 -a -s -*resolu* "Y:\!temp\05060009.SRW"
---- PreviewIFD ----
XResolution                     : 0.9837400966
YResolution                     : 20.89618535
ResolutionUnit                  : inches
---- SubIFD ----
XResolution                     : 0.4627069715
YResolution                     : 0.1095343364
ResolutionUnit                  : inches
XResolution                     : 2723.2375
YResolution                     : 112.0023346
ResolutionUnit                  : inches
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

srwuser

All RAW files from my Samsung NX500 camera have the same weird resolution in inches.  :(
Are there any possible workaround? Like "transfer all tags except orientation"?

StarGeek

I'd suggest not copying the X/YResolution tags.  Add --XResolution --YResolution after the -TagsFromFile option.  Note the double minus signs.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype