Page 1 of 1
TIFF -> JPG resolution (density) conversion error
Posted: 2012-06-19T04:35:13-07:00
by tomikulmala
Hi,
I'm trying to convert TIFF -image to JPG -image with the following command, but the density just doesn't seem to change:
Code: Select all
convert source.tif -resize 435x290 -units PixelsPerInch -density 72x72 -quality 100 target.jpg
Source TIFF is 300 dpi, 5616x3744 pixels, 60.2MB file.
What I'm trying to do is to resize the image to 435x290 pixels and 72 dpi resolution with 100% quality. After conversion the JPG is always 300 dpi (checked in Photoshop CS 3 and Windows Explorer, because these are the tools my client uses).
Any help on what am I doing wrong?
Re: TIFF -> JPG resolution (density) conversion error
Posted: 2012-06-19T10:10:20-07:00
by fmw42
what do you get from
identify -verbose source.tif
Tiff may have two resolutions specified, one in a tiff meta tag and that probably won't be changed by IM.
Re: TIFF -> JPG resolution (density) conversion error
Posted: 2012-06-19T21:19:29-07:00
by tomikulmala
fmw42 wrote:identify -verbose source.tif
This is a rather long listing, but here it is. To me it seems the resolution is 300 dpi all the way.
Code: Select all
Image: 4055a89a4de4da521091d84c09b97ad9.tif
Format: TIFF (Tagged Image File Format)
Class: DirectClass
Geometry: 5616x3744+0+0
Resolution: 300x300
Print size: 18.72x12.48
Units: PixelsPerInch
Type: TrueColor
Base type: TrueColor
Endianess: MSB
Colorspace: sRGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Red:
min: 0 (0)
max: 255 (1)
mean: 118.267 (0.463793)
standard deviation: 75.8881 (0.2976)
kurtosis: -1.16469
skewness: 0.214578
Green:
min: 0 (0)
max: 255 (1)
mean: 115.023 (0.45107)
standard deviation: 77.5312 (0.304044)
kurtosis: -1.21238
skewness: 0.198287
Blue:
min: 0 (0)
max: 255 (1)
mean: 113.271 (0.4442)
standard deviation: 78.1891 (0.306624)
kurtosis: -1.24527
skewness: 0.210181
Image statistics:
Overall:
min: 0 (0)
max: 255 (1)
mean: 115.52 (0.453021)
standard deviation: 77.2088 (0.30278)
kurtosis: -1.20423
skewness: 0.205609
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Interlace: None
Background color: white
Border color: srgb(223,223,223)
Matte color: grey74
Transparent color: black
Compose: Over
Page geometry: 5616x3744+0+0
Dispose: Undefined
Iterations: 0
Compression: None
Orientation: TopLeft
Properties:
aux:Firmware: 2.0.8
aux:FlashCompensation: 0/1
aux:ImageNumber: 0
aux:Lens: EF17-40mm f/4L USM
aux:LensID: 231
aux:LensInfo: 17/1 40/1 0/0 0/0
aux:SerialNumber: 2531510318
crs:AlreadyApplied: True
crs:BlueHue: 0
crs:BlueSaturation: 0
crs:Brightness: +50
crs:CameraProfile: Adobe Standard
crs:CameraProfileDigest: 3DA8CE4A626CE36A1D0C55BF157793C9
crs:ChromaticAberrationB: 0
crs:ChromaticAberrationR: 0
crs:Clarity: +3
crs:ColorNoiseReduction: 25
crs:ColorNoiseReductionDetail: 50
crs:Contrast: +34
crs:ConvertToGrayscale: False
crs:Defringe: 0
crs:Exposure: +0.45
crs:FillLight: 7
crs:GrainAmount: 0
crs:GreenHue: 0
crs:GreenSaturation: 0
crs:HasCrop: False
crs:HasSettings: True
crs:HighlightRecovery: 7
crs:HueAdjustmentAqua: 0
crs:HueAdjustmentBlue: 0
crs:HueAdjustmentGreen: 0
crs:HueAdjustmentMagenta: 0
crs:HueAdjustmentOrange: 0
crs:HueAdjustmentPurple: 0
crs:HueAdjustmentRed: 0
crs:HueAdjustmentYellow: 0
crs:LuminanceAdjustmentAqua: 0
crs:LuminanceAdjustmentBlue: 0
crs:LuminanceAdjustmentGreen: 0
crs:LuminanceAdjustmentMagenta: 0
crs:LuminanceAdjustmentOrange: 0
crs:LuminanceAdjustmentPurple: 0
crs:LuminanceAdjustmentRed: 0
crs:LuminanceAdjustmentYellow: 0
crs:LuminanceSmoothing: 0
crs:ParametricDarks: -3
crs:ParametricHighlights: -6
crs:ParametricHighlightSplit: 75
crs:ParametricLights: +2
crs:ParametricMidtoneSplit: 50
crs:ParametricShadows: +3
crs:ParametricShadowSplit: 25
crs:PostCropVignetteAmount: 0
crs:ProcessVersion: 5.7
crs:RawFileName: 062.CR2
crs:RedHue: 0
crs:RedSaturation: 0
crs:Saturation: 0
crs:SaturationAdjustmentAqua: 0
crs:SaturationAdjustmentBlue: 0
crs:SaturationAdjustmentGreen: 0
crs:SaturationAdjustmentMagenta: 0
crs:SaturationAdjustmentOrange: 0
crs:SaturationAdjustmentPurple: 0
crs:SaturationAdjustmentRed: 0
crs:SaturationAdjustmentYellow: 0
crs:Shadows: 3
crs:ShadowTint: 0
crs:SharpenDetail: 25
crs:SharpenEdgeMasking: 0
crs:SharpenRadius: +1.0
crs:Sharpness: 0
crs:SplitToningBalance: 0
crs:SplitToningHighlightHue: 0
crs:SplitToningHighlightSaturation: 0
crs:SplitToningShadowHue: 0
crs:SplitToningShadowSaturation: 0
crs:Temperature: 6600
crs:Tint: +50
crs:ToneCurveName: Medium Contrast
crs:Version: 6.0
crs:Vibrance: 0
crs:VignetteAmount: 0
crs:WhiteBalance: Custom
date:create: 2012-06-20T07:10:11+03:00
date:modify: 2012-06-20T07:10:11+03:00
dc:format: image/tiff
exif:ApertureValue: 6.64386
exif:ColorSpace: 65535
exif:CustomRendered: 0
exif:DateTimeDigitized: 2011:02:08 10:59:03
exif:DateTimeOriginal: 2011:02:08 10:59:03
exif:ExifVersion: 0221
exif:ExposureBiasValue: 0
exif:ExposureMode: 1
exif:ExposureProgram: 1
exif:ExposureTime: 0.04
exif:Fired: False
exif:Flash: 16
exif:FNumber: 10
exif:FocalLength: 17
exif:FocalPlaneResolutionUnit: 2
exif:FocalPlaneXResolution: 3849.21
exif:FocalPlaneYResolution: 3908.14
exif:Function: False
exif:ISOSpeedRatings: 1
exif:MaxApertureValue: 4
exif:MeteringMode: 3
exif:Mode: 2
exif:PixelXDimension: 5616
exif:PixelYDimension: 3744
exif:RedEyeMode: False
exif:Return: 0
exif:SceneCaptureType: 0
exif:ShutterSpeedValue: 4.64386
exif:SubjectDistance: 0.51
exif:SubSecTimeDigitized: 57
exif:SubSecTimeOriginal: 57
exif:WhiteBalance: 1
photoshop:AuthorsPosition: Matkakortin lukija
photoshop:City: Helsinki
photoshop:ColorMode: 3
photoshop:DateCreated: 2011-02-08T10:59:03.057
photoshop:Headline: Informatiivinen kuva
photoshop:ICCProfile: Adobe RGB (1998)
photoshop:LegacyIPTCDigest: A05AC99C1BA3684C61548EA8A552ACE9
rdf:Alt:
rdf:Bag:
signature: 8511832d3a45fb7f158670b603a421a772b663e851acbcfb679b3ff8e2fa2229
tiff:endian: lsb
tiff:ImageLength: 3744
tiff:ImageWidth: 5616
tiff:make: Canon
tiff:model: Canon EOS 5D Mark II
tiff:photometric: RGB
tiff:PhotometricInterpretation: 2
tiff:rows-per-strip: 1
tiff:SamplesPerPixel: 3
tiff:software: Adobe Photoshop CS5 Windows
tiff:timestamp: 2011:09:06 16:08:59
tiff:XResolution: 300/1
tiff:YResolution: 300/1
xap:CreateDate: 2011-02-08T10:59:03.57+02:00
xap:CreatorTool: Adobe Photoshop CS5 Windows
xap:MetadataDate: 2011-09-13T14:39:46+03:00
xap:ModifyDate: 2011-09-06T16:08:59+03:00
xap:Rating: 0
xapMM:DocumentID: xmp.did:4AD7D45587D8E011BB7F9E43CC95F7DA
xapMM:InstanceID: xmp.iid:52D7D45587D8E011BB7F9E43CC95F7DA
xapMM:OriginalDocumentID: xmp.did:4AD7D45587D8E011BB7F9E43CC95F7DA
Profiles:
Profile-8bim: 10706 bytes
Profile-icc: 560 bytes
Adobe RGB (1998)
Profile-iptc: 220 bytes
City[1,90]: 0x00000000: 254700 -%
unknown[2,0]:
Keyword[2,25]: Talvi
Keyword[2,25]: Ratikka
Keyword[2,25]: Kortinlukija
Keyword[2,25]: Helsinki
Keyword[2,25]: Aikuinen
Created Date[2,55]: 20110208
Byline[2,80]: ---HIDDEN---
Byline Title[2,85]: Matkakortin lukija
City[2,90]: Helsinki
Headline[2,105]: Informatiivinen kuva
Copyright String[2,116]: ---HIDDEN---
Caption[2,120]: Ratikka 7B, Pasila
Profile-xmp: 23257 bytes
Artifacts:
filename: 4055a89a4de4da521091d84c09b97ad9.tif
verbose: true
Tainted: False
Filesize: 63.11MB
Number pixels: 21.03M
Pixels per second: 60.08MB
User time: 0.000u
Elapsed time: 0:01.349
Version: ImageMagick 6.7.7-7 2012-06-19 Q16 http://www.imagemagick.org
(Sorry, had to hide a couple names, but it won't affect anything)
Re: TIFF -> JPG resolution (density) conversion error
Posted: 2012-06-19T21:28:31-07:00
by fmw42
What do you get from your output image
identify -verbose output
I suspect that the IM density will be 72, but the tiff resolution will be unchanged from
tiff:XResolution: 300/1
tiff:YResolution: 300/1
Then photoshop will see the tiff resolution and not the IM changed resolution and think it is still 300.
As I said earlier, I don't think IM will change any of the meta data relating to tiff or EXIF, etc. But you would need to hear more from one of the IM developers.
Re: TIFF -> JPG resolution (density) conversion error
Posted: 2012-06-19T21:34:56-07:00
by tomikulmala
fmw42 wrote:identify -verbose output
Code: Select all
Image: kortinlukija_435px.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Class: DirectClass
Geometry: 435x290+0+0
Resolution: 300x300
Print size: 1.45x0.966667
Units: PixelsPerInch
Type: TrueColor
Endianess: Undefined
Colorspace: RGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Red:
min: 0 (0)
max: 255 (1)
mean: 118.214 (0.463584)
standard deviation: 75.4944 (0.296056)
kurtosis: -1.15607
skewness: 0.214313
Green:
min: 0 (0)
max: 255 (1)
mean: 115.048 (0.451168)
standard deviation: 77.1622 (0.302597)
kurtosis: -1.20599
skewness: 0.197809
Blue:
min: 0 (0)
max: 255 (1)
mean: 113.144 (0.443703)
standard deviation: 77.9439 (0.305662)
kurtosis: -1.24233
skewness: 0.20785
Image statistics:
Overall:
min: 0 (0)
max: 255 (1)
mean: 86.6015 (0.339614)
standard deviation: 83.2789 (0.326584)
kurtosis: -1.08741
skewness: 0.535741
Rendering intent: Undefined
Interlace: None
Background color: white
Border color: rgb(223,223,223)
Matte color: grey74
Transparent color: black
Compose: Over
Page geometry: 435x290+0+0
Dispose: Undefined
Iterations: 0
Compression: JPEG
Quality: 100
Orientation: TopLeft
Properties:
aux:Firmware: 2.0.8
aux:FlashCompensation: 0/1
aux:ImageNumber: 0
aux:Lens: EF17-40mm f/4L USM
aux:LensID: 231
aux:LensInfo: 17/1 40/1 0/0 0/0
aux:SerialNumber: 2531510318
crs:AlreadyApplied: True
crs:BlueHue: 0
crs:BlueSaturation: 0
crs:Brightness: +50
crs:CameraProfile: Adobe Standard
crs:CameraProfileDigest: 3DA8CE4A626CE36A1D0C55BF157793C9
crs:ChromaticAberrationB: 0
crs:ChromaticAberrationR: 0
crs:Clarity: +3
crs:ColorNoiseReduction: 25
crs:ColorNoiseReductionDetail: 50
crs:Contrast: +34
crs:ConvertToGrayscale: False
crs:Defringe: 0
crs:Exposure: +0.45
crs:FillLight: 7
crs:GrainAmount: 0
crs:GreenHue: 0
crs:GreenSaturation: 0
crs:HasCrop: False
crs:HasSettings: True
crs:HighlightRecovery: 7
crs:HueAdjustmentAqua: 0
crs:HueAdjustmentBlue: 0
crs:HueAdjustmentGreen: 0
crs:HueAdjustmentMagenta: 0
crs:HueAdjustmentOrange: 0
crs:HueAdjustmentPurple: 0
crs:HueAdjustmentRed: 0
crs:HueAdjustmentYellow: 0
crs:LuminanceAdjustmentAqua: 0
crs:LuminanceAdjustmentBlue: 0
crs:LuminanceAdjustmentGreen: 0
crs:LuminanceAdjustmentMagenta: 0
crs:LuminanceAdjustmentOrange: 0
crs:LuminanceAdjustmentPurple: 0
crs:LuminanceAdjustmentRed: 0
crs:LuminanceAdjustmentYellow: 0
crs:LuminanceSmoothing: 0
crs:ParametricDarks: -3
crs:ParametricHighlights: -6
crs:ParametricHighlightSplit: 75
crs:ParametricLights: +2
crs:ParametricMidtoneSplit: 50
crs:ParametricShadows: +3
crs:ParametricShadowSplit: 25
crs:PostCropVignetteAmount: 0
crs:ProcessVersion: 5.7
crs:RawFileName: 062.CR2
crs:RedHue: 0
crs:RedSaturation: 0
crs:Saturation: 0
crs:SaturationAdjustmentAqua: 0
crs:SaturationAdjustmentBlue: 0
crs:SaturationAdjustmentGreen: 0
crs:SaturationAdjustmentMagenta: 0
crs:SaturationAdjustmentOrange: 0
crs:SaturationAdjustmentPurple: 0
crs:SaturationAdjustmentRed: 0
crs:SaturationAdjustmentYellow: 0
crs:Shadows: 3
crs:ShadowTint: 0
crs:SharpenDetail: 25
crs:SharpenEdgeMasking: 0
crs:SharpenRadius: +1.0
crs:Sharpness: 0
crs:SplitToningBalance: 0
crs:SplitToningHighlightHue: 0
crs:SplitToningHighlightSaturation: 0
crs:SplitToningShadowHue: 0
crs:SplitToningShadowSaturation: 0
crs:Temperature: 6600
crs:Tint: +50
crs:ToneCurveName: Medium Contrast
crs:Version: 6.0
crs:Vibrance: 0
crs:VignetteAmount: 0
crs:WhiteBalance: Custom
date:create: 2012-06-20T07:30:29+03:00
date:modify: 2012-06-20T07:30:29+03:00
dc:format: image/tiff
exif:ApertureValue: 6643856/1000000
exif:ColorSpace: 65535
exif:CustomRendered: 0
exif:DateTimeDigitized: 2011-02-08T10:59:03.57+02:00
exif:DateTimeOriginal: 2011-02-08T10:59:03.57+02:00
exif:ExifVersion: 0221
exif:ExposureBiasValue: 0/1
exif:ExposureMode: 1
exif:ExposureProgram: 1
exif:ExposureTime: 1/25
exif:Fired: False
exif:FNumber: 10/1
exif:FocalLength: 17/1
exif:FocalPlaneResolutionUnit: 2
exif:FocalPlaneXResolution: 5616000/1459
exif:FocalPlaneYResolution: 3744000/958
exif:Function: False
exif:MaxApertureValue: 4/1
exif:MeteringMode: 3
exif:Mode: 2
exif:PixelXDimension: 5616
exif:PixelYDimension: 3744
exif:RedEyeMode: False
exif:Return: 0
exif:SceneCaptureType: 0
exif:ShutterSpeedValue: 4643856/1000000
exif:SubjectDistance: 51/100
exif:WhiteBalance: 1
jpeg:colorspace: 2
jpeg:sampling-factor: 1x1,1x1,1x1
photoshop:AuthorsPosition: Matkakortin lukija
photoshop:City: Helsinki
photoshop:ColorMode: 3
photoshop:DateCreated: 2011-02-08T10:59:03.057
photoshop:Headline: Informatiivinen kuva
photoshop:ICCProfile: Adobe RGB (1998)
photoshop:LegacyIPTCDigest: A05AC99C1BA3684C61548EA8A552ACE9
rdf:Alt:
rdf:Bag:
signature: f5f4e8f806bd6f1d87b5a6d11ddd5f1e15b78e6285e4c359e416f778a0aca0d2
tiff:ImageLength: 3744
tiff:ImageWidth: 5616
tiff:Make: Canon
tiff:Model: Canon EOS 5D Mark II
tiff:PhotometricInterpretation: 2
tiff:SamplesPerPixel: 3
xap:CreateDate: 2011-02-08T10:59:03.57+02:00
xap:CreatorTool: Adobe Photoshop CS5 Windows
xap:MetadataDate: 2011-09-13T14:39:46+03:00
xap:ModifyDate: 2011-09-06T16:08:59+03:00
xap:Rating: 0
xapMM:DocumentID: xmp.did:4AD7D45587D8E011BB7F9E43CC95F7DA
xapMM:InstanceID: xmp.iid:52D7D45587D8E011BB7F9E43CC95F7DA
xapMM:OriginalDocumentID: xmp.did:4AD7D45587D8E011BB7F9E43CC95F7DA
Profiles:
Profile-8bim: 10706 bytes
Profile-icc: 560 bytes
Adobe RGB (1998)
Profile-xmp: 23257 bytes
Artifacts:
verbose: true
Tainted: False
Filesize: 166KB
Number pixels: 126KB
Pixels per second: 12.62MB
User time: 0.000u
Elapsed time: 0:01.009
Version: ImageMagick 6.6.0-4 2010-11-16 Q16 http://www.imagemagick.org
Re: TIFF -> JPG resolution (density) conversion error
Posted: 2012-06-19T21:58:43-07:00
by fmw42
Well, that is not what I expected. The IM density is still 300 and the TIFF resolution has been remove.
What version of IM are you using?
try without the resize.
convert source.tif -units PixelsPerInch -density 72x72 -quality 100 target.jpg
and
convert source.tif -density 72x72 -units PixelsPerInch -quality 100 target.jpg
If those fail, can you provide a link to an example tiff file that is not proprietary that we can test on and which shows this problem?
Re: TIFF -> JPG resolution (density) conversion error
Posted: 2012-06-19T22:27:21-07:00
by tomikulmala
fmw42 wrote:Well, that is not what I expected. The IM density is still 300 and the TIFF resolution has been remove.
What version of IM are you using?
try without the resize.
convert source.tif -units PixelsPerInch -density 72x72 -quality 100 target.jpg
and
convert source.tif -density 72x72 -units PixelsPerInch -quality 100 target.jpg
If those fail, can you provide a link to an example tiff file that is not proprietary that we can test on and which shows this problem?
Sorry, that last listing was accidentally taken with a very old IM -version (6.6.0-4 2010-11-16).
Here's the listing taken with version 6.7.7-7 2012-06-19 (conversion was also made with the new version):
Code: Select all
Image: kortinlukija_435px.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Class: DirectClass
Geometry: 435x290+0+0
Resolution: 72x72
Print size: 6.04167x4.02778
Units: PixelsPerInch
Type: TrueColor
Endianess: Undefined
Colorspace: sRGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Red:
min: 0 (0)
max: 255 (1)
mean: 118.283 (0.463856)
standard deviation: 75.4655 (0.295943)
kurtosis: -1.15594
skewness: 0.213831
Green:
min: 0 (0)
max: 255 (1)
mean: 115.06 (0.451217)
standard deviation: 77.1286 (0.302465)
kurtosis: -1.20529
skewness: 0.19798
Blue:
min: 0 (0)
max: 255 (1)
mean: 113.284 (0.444251)
standard deviation: 77.8772 (0.305401)
kurtosis: -1.24106
skewness: 0.208167
Image statistics:
Overall:
min: 0 (0)
max: 255 (1)
mean: 115.543 (0.453108)
standard deviation: 76.8304 (0.301296)
kurtosis: -1.19756
skewness: 0.204469
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Interlace: None
Background color: white
Border color: srgb(223,223,223)
Matte color: grey74
Transparent color: black
Compose: Over
Page geometry: 435x290+0+0
Dispose: Undefined
Iterations: 0
Compression: JPEG
Quality: 100
Orientation: TopLeft
Properties:
aux:Firmware: 2.0.8
aux:FlashCompensation: 0/1
aux:ImageNumber: 0
aux:Lens: EF17-40mm f/4L USM
aux:LensID: 231
aux:LensInfo: 17/1 40/1 0/0 0/0
aux:SerialNumber: 2531510318
crs:AlreadyApplied: True
crs:BlueHue: 0
crs:BlueSaturation: 0
crs:Brightness: +50
crs:CameraProfile: Adobe Standard
crs:CameraProfileDigest: 3DA8CE4A626CE36A1D0C55BF157793C9
crs:ChromaticAberrationB: 0
crs:ChromaticAberrationR: 0
crs:Clarity: +3
crs:ColorNoiseReduction: 25
crs:ColorNoiseReductionDetail: 50
crs:Contrast: +34
crs:ConvertToGrayscale: False
crs:Defringe: 0
crs:Exposure: +0.45
crs:FillLight: 7
crs:GrainAmount: 0
crs:GreenHue: 0
crs:GreenSaturation: 0
crs:HasCrop: False
crs:HasSettings: True
crs:HighlightRecovery: 7
crs:HueAdjustmentAqua: 0
crs:HueAdjustmentBlue: 0
crs:HueAdjustmentGreen: 0
crs:HueAdjustmentMagenta: 0
crs:HueAdjustmentOrange: 0
crs:HueAdjustmentPurple: 0
crs:HueAdjustmentRed: 0
crs:HueAdjustmentYellow: 0
crs:LuminanceAdjustmentAqua: 0
crs:LuminanceAdjustmentBlue: 0
crs:LuminanceAdjustmentGreen: 0
crs:LuminanceAdjustmentMagenta: 0
crs:LuminanceAdjustmentOrange: 0
crs:LuminanceAdjustmentPurple: 0
crs:LuminanceAdjustmentRed: 0
crs:LuminanceAdjustmentYellow: 0
crs:LuminanceSmoothing: 0
crs:ParametricDarks: -3
crs:ParametricHighlights: -6
crs:ParametricHighlightSplit: 75
crs:ParametricLights: +2
crs:ParametricMidtoneSplit: 50
crs:ParametricShadows: +3
crs:ParametricShadowSplit: 25
crs:PostCropVignetteAmount: 0
crs:ProcessVersion: 5.7
crs:RawFileName: 062.CR2
crs:RedHue: 0
crs:RedSaturation: 0
crs:Saturation: 0
crs:SaturationAdjustmentAqua: 0
crs:SaturationAdjustmentBlue: 0
crs:SaturationAdjustmentGreen: 0
crs:SaturationAdjustmentMagenta: 0
crs:SaturationAdjustmentOrange: 0
crs:SaturationAdjustmentPurple: 0
crs:SaturationAdjustmentRed: 0
crs:SaturationAdjustmentYellow: 0
crs:Shadows: 3
crs:ShadowTint: 0
crs:SharpenDetail: 25
crs:SharpenEdgeMasking: 0
crs:SharpenRadius: +1.0
crs:Sharpness: 0
crs:SplitToningBalance: 0
crs:SplitToningHighlightHue: 0
crs:SplitToningHighlightSaturation: 0
crs:SplitToningShadowHue: 0
crs:SplitToningShadowSaturation: 0
crs:Temperature: 6600
crs:Tint: +50
crs:ToneCurveName: Medium Contrast
crs:Version: 6.0
crs:Vibrance: 0
crs:VignetteAmount: 0
crs:WhiteBalance: Custom
date:create: 2012-06-20T07:30:29+03:00
date:modify: 2012-06-20T07:30:29+03:00
dc:format: image/tiff
exif:ApertureValue: 6643856/1000000
exif:ColorSpace: 65535
exif:CustomRendered: 0
exif:DateTimeDigitized: 2011-02-08T10:59:03.57+02:00
exif:DateTimeOriginal: 2011-02-08T10:59:03.57+02:00
exif:ExifVersion: 0221
exif:ExposureBiasValue: 0/1
exif:ExposureMode: 1
exif:ExposureProgram: 1
exif:ExposureTime: 1/25
exif:Fired: False
exif:FNumber: 10/1
exif:FocalLength: 17/1
exif:FocalPlaneResolutionUnit: 2
exif:FocalPlaneXResolution: 5616000/1459
exif:FocalPlaneYResolution: 3744000/958
exif:Function: False
exif:MaxApertureValue: 4/1
exif:MeteringMode: 3
exif:Mode: 2
exif:PixelXDimension: 5616
exif:PixelYDimension: 3744
exif:RedEyeMode: False
exif:Return: 0
exif:SceneCaptureType: 0
exif:ShutterSpeedValue: 4643856/1000000
exif:SubjectDistance: 51/100
exif:WhiteBalance: 1
jpeg:colorspace: 2
jpeg:sampling-factor: 1x1,1x1,1x1
photoshop:AuthorsPosition: Matkakortin lukija
photoshop:City: Helsinki
photoshop:ColorMode: 3
photoshop:DateCreated: 2011-02-08T10:59:03.057
photoshop:Headline: Informatiivinen kuva
photoshop:ICCProfile: Adobe RGB (1998)
photoshop:LegacyIPTCDigest: A05AC99C1BA3684C61548EA8A552ACE9
rdf:Alt:
rdf:Bag:
signature: ae39127bd735d9b28f323a2e55377a355707abbf4f88aab469b8428a520a576f
tiff:ImageLength: 3744
tiff:ImageWidth: 5616
tiff:Make: Canon
tiff:Model: Canon EOS 5D Mark II
tiff:PhotometricInterpretation: 2
tiff:SamplesPerPixel: 3
tiff:XResolution: 300/1
tiff:YResolution: 300/1
xap:CreateDate: 2011-02-08T10:59:03.57+02:00
xap:CreatorTool: Adobe Photoshop CS5 Windows
xap:MetadataDate: 2011-09-13T14:39:46+03:00
xap:ModifyDate: 2011-09-06T16:08:59+03:00
xap:Rating: 0
xapMM:DocumentID: xmp.did:4AD7D45587D8E011BB7F9E43CC95F7DA
xapMM:InstanceID: xmp.iid:52D7D45587D8E011BB7F9E43CC95F7DA
xapMM:OriginalDocumentID: xmp.did:4AD7D45587D8E011BB7F9E43CC95F7DA
Profiles:
Profile-8bim: 10706 bytes
Profile-icc: 560 bytes
Adobe RGB (1998)
Profile-xmp: 23257 bytes
Artifacts:
filename: kortinlukija_435px.jpg
verbose: true
Tainted: False
Filesize: 166KB
Number pixels: 126K
Pixels per second: 12.62MB
User time: 0.000u
Elapsed time: 0:01.009
Version: ImageMagick 6.7.7-7 2012-06-19 Q16 http://www.imagemagick.org
And with that listing we can see the result you were suggesting before. Tiff -resolution is 300 dpi and true image resolution 72 dpi and therefore the converted images are ok?
Re: TIFF -> JPG resolution (density) conversion error
Posted: 2012-06-19T22:39:27-07:00
by fmw42
And with that listing we can see the result you were suggesting before. Tiff -resolution is 300 dpi and true image resolution 72 dpi and therefore the converted images are ok?
I guess it depends upon the app reading the image. I suspect photoshop will still look to its Tiff:resolution of 300:1.
I don't know how other apps will see it. You could try other viewers (GIMP, Firefox, Safari, etc) or just print the file and see if it is now at 72 dpi or not.
Alternately, add -strip to your command and it will remove the tiff: meta data and all other meta data. See if that helps (as long as you don't need any of the other meta data).
Re: TIFF -> JPG resolution (density) conversion error
Posted: 2012-06-19T22:51:54-07:00
by tomikulmala
fmw42 wrote:I guess it depends upon the app reading the image. I suspect photoshop will still look to its Tiff:resolution of 300:1.
I don't know how other apps will see it. You could try other viewers (GIMP, Firefox, Safari, etc) or just print the file and see if it is now at 72 dpi or not.
Alternately, add -strip to your command and it will remove the tiff: meta data and all other meta data. See if that helps (as long as you don't need any of the other meta data).
Metadata isn't really needed in the result pictures and the option -strip solved the problem.
So this was after all a Photoshop/Explorer "bug" (difference in reading image data) instead of IM bug.
Thank you very much for the tip and for all the help!
Re: TIFF -> JPG resolution (density) conversion error
Posted: 2012-06-19T23:40:42-07:00
by anthony
fmw42 wrote:convert source.tif -units PixelsPerInch -density 72x72 -quality 100 target.jpg
convert source.tif -density 72x72 -units PixelsPerInch -quality 100 target.jpg
The order of the two settings should not matter as that is all they are image meta-data settings.
Only one operator I know actually looks at those settings,
-resample.
Otherwise they are saved (according to the image file format if it can save those settings, or used for fonts and some vector image formats.