Alpha off and transparent background

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Locked
Deichi
Posts: 4
Joined: 2020-01-30T22:54:24-07:00
Authentication code: 1152

Alpha off and transparent background

Post by Deichi »

Hi,

I have following Problem, I want to delete Alpha channels from a TIFF (with transparent background) and want to export then as a PNG with transparent background.

I have tried following command:

convert 123.tif -Alpha off -background transparent 123.png

The result is a PNG with White background (the Alpha channels are succesfully removed).

User avatar
fmw42
Posts: 26383
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Alpha off and transparent background

Post by fmw42 »

It does not make sense to set the background to transparent, if you already have a transparent image. If you want to convert from TIFF with transparency to png with transparency, just do

Code: Select all

convert 123.tif 123.png
If this is not what you want, please post your tiff file to some free hosting service and put the URL here. Then explain in more detail what you expect for the output.

Also always provide your ImageMagick version and platform when asking questions as syntax may differ.

246246
Posts: 200
Joined: 2015-07-06T07:38:22-07:00
Authentication code: 1151

Re: Alpha off and transparent background

Post by 246246 »

I think you would like to create the type of png described at 8.5.2. Palette-Based with Transparency in http://www.libpng.org/pub/png/book/chapter08.html

If so, try

Code: Select all

magick 123.tif PNG8:123.png
You can check it like this and the result converted with PNG8 prefix is smaller and have tRNS data chunk.

Code: Select all

$ magick logo: -fill '#ffffff00' -opaque white logo.tif
$ magick logo.tif PNG8:logo-8.png
$ magick logo.tif logo.png
$ ls -lg logo.png logo-8.png
-rw-r--r-- 1 Domain Users 73184 Jan 31 17:00 logo.png
-rw-r--r-- 1 Domain Users 27553 Jan 31 17:00 logo-8.png
$ pngcheck -v logo.png | grep tRNS
$ pngcheck -v logo-8.png | grep tRNS
  chunk tRNS at offset 0x0036d, length 1: 1 transparency entry

Deichi
Posts: 4
Joined: 2020-01-30T22:54:24-07:00
Authentication code: 1152

Re: Alpha off and transparent background

Post by Deichi »

Sorry for the confusion.
My explanation was not very good.
We do not necessarily need a PNG. It would be enough for us, if we could get a Tiff without alpha channels and with transparency.
The input image is a TIFF with alpha channels and transparency, we only want to reduce the alpha channels and we want to keep the transparency.
If we use the parameter -alpha off, the output image has a white background.
I can not publish the image, because it's a person from our company.

Our IM-Version is the latest 7.0.9.20 and we use WIN2016 Server.

snibgo
Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Alpha off and transparent background

Post by snibgo »

wrote:...if we could get a Tiff without alpha channels and with transparency.
I don't understand this. TIFF files use an alpha channel to record transparency. Please show an example of a TIFF "without alpha channels and with transparency".
snibgo's IM pages: im.snibgo.com

User avatar
fmw42
Posts: 26383
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Alpha off and transparent background

Post by fmw42 »

ImageMagick cannot handle TIFF or PSD files with multiple alpha channels and background transparency. I believe ImageMagick will ignore the alpha channels and just use the background transparency. Please post a link to one of your input TIFF files so we can test with it. Tell us what you want for the output in terms of which alpha channel you want to use. I am not sure it can be done currently, but I will check and discuss with one of the developers.

246246
Posts: 200
Joined: 2015-07-06T07:38:22-07:00
Authentication code: 1151

Re: Alpha off and transparent background

Post by 246246 »

As far as I know, only gif and png support transparency without using alpha channel. So If you want to reduce channels you have to convert it to PNG or GIF.

Deichi
Posts: 4
Joined: 2020-01-30T22:54:24-07:00
Authentication code: 1152

Re: Alpha off and transparent background

Post by Deichi »

Thx, for your comments, I have sent fmw42 a PM with this TIFF and I'm waiting for an answer. Sorry this picture is not for public use.

246246
Posts: 200
Joined: 2015-07-06T07:38:22-07:00
Authentication code: 1151

Re: Alpha off and transparent background

Post by 246246 »

Can you send the

Code: Select all

magick identify -verbose yourfile.tif
output instead?

And how do you create your file? Photoshop?
If you see yout file with other software, is the background transparent?

Deichi
Posts: 4
Joined: 2020-01-30T22:54:24-07:00
Authentication code: 1152

Re: Alpha off and transparent background

Post by Deichi »

Hi, this is the log

Image: C:\temp\14_140600m_portrait.tif
Format: TIFF (Tagged Image File Format)
Mime type: image/tiff
Class: DirectClass
Geometry: 3764x3764+0+0
Resolution: 300x300
Print size: 12.5467x12.5467
Units: PixelsPerInch
Colorspace: sRGB
Type: TrueColor
Endianess: LSB
Depth: 8-bit
Channel depth:
Red: 8-bit
Green: 8-bit
Blue: 8-bit
Channel statistics:
Pixels: 14167696
Red:
min: 0 (0)
max: 255 (1)
mean: 232.621 (0.912241)
standard deviation: 36.6097 (0.143567)
kurtosis: 8.81818
skewness: -2.66624
entropy: 0.467639
Green:
min: 0 (0)
max: 255 (1)
mean: 229.901 (0.901571)
standard deviation: 41.4366 (0.162496)
kurtosis: 6.24057
skewness: -2.37751
entropy: 0.476873
Blue:
min: 0 (0)
max: 255 (1)
mean: 229.258 (0.89905)
standard deviation: 45.8931 (0.179973)
kurtosis: 5.60141
skewness: -2.39893
entropy: 0.476261
Image statistics:
Overall:
min: 0 (0)
max: 255 (1)
mean: 230.593 (0.904288)
standard deviation: 41.3131 (0.162012)
kurtosis: 6.80283
skewness: -2.49614
entropy: 0.473591
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)
Matte color: grey74
Background color: white
Border color: srgb(223,223,223)
Transparent color: none
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 3764x3764+0+0
Dispose: Undefined
Iterations: 0
Scene: 0 of 2
Compression: LZW
Orientation: TopLeft
Clipping path:
<?xml version="1.0" encoding="iso-8859-1"?>
<svg xmlns="http://www.w3.org/2000/svg" width="3764" height="3764">
<g>
<path fill-rule="evenodd" style="fill:#000000;stroke:#000000;stroke-width:0;stroke-antialiasing:false" d="
M 2420.23 863.146
C 2420.23 863.146 2430.77 873.68 2428.79 903.966
C 2426.82 934.251 2434.72 954.661 2436.69 974.413
C 2438.67 994.165 2435.37 1013.26 2426.82 1054.74
C 2427.47 1106.09 2423.52 1130.45 2403.11 1171.27
C 2408.38 1203.53 2403.77 1217.36 2393.24 1239.08
C 2415.62 1253.57 2421.55 1307.56 2402.46 1376.69
C 2383.36 1445.82 2310.94 1604.49 2249.05 1624.24
C 2241.81 1690.08 2231.27 1785.55 2231.27 1785.55
C 2231.27 1785.55 2285.26 1817.15 2344.52 1873.77
C 2414.31 1885.62 2439.98 1893.52 2525.57 1938.29
C 2611.16 1983.06 2644.74 2002.16 2702.68 2065.36
C 2736.92 2102.23 2760.62 2134.49 2788.93 2206.26
C 2817.24 2278.02 2842.26 2374.8 2854.11 2457.1
C 2865.96 2539.4 2865.3 2586.8 2869.25 2640.13
C 2873.2 2693.46 2867.93 2707.95 2867.93 2742.18
C 2867.93 2776.42 2863.98 2833.04 2858.06 2865.96
C 2866.62 2928.51 2871.23 2973.94 2892.95 3088.49
C 2906.78 3162.23 2905.46 3172.77 2906.78 3203.71
C 2908.1 3234.66 2909.41 3245.19 2914.68 3269.55
C 2919.95 3293.91 2925.87 3320.25 2925.87 3375.55
C 2925.87 3430.86 2918.63 3481.55 2918.63 3481.55
C 2918.63 3481.55 2938.38 3548.71 2946.94 3624.42
C 2955.5 3700.14 2959.45 3772.56 2959.45 3772.56
L 252.162 3771.24
C 252.162 3771.24 250.845 3731.08 252.821 3671.83
C 254.796 3612.57 252.821 3577.02 255.454 3487.48
C 258.088 3397.94 260.063 3357.78 267.305 3287.33
C 274.547 3216.88 279.156 3192.52 285.74 3122.07
C 292.324 3051.62 298.908 3001.59 317.343 2919.95
C 335.777 2838.31 343.678 2813.95 358.821 2773.79
C 373.964 2733.62 385.815 2697.41 398.983 2664.49
C 412.15 2631.57 442.436 2568.37 471.405 2523.6
C 500.374 2478.83 520.784 2447.23 553.045 2406.41
C 585.306 2365.59 620.859 2324.11 668.263 2281.97
C 715.667 2239.83 761.754 2204.28 796.648 2175.31
C 831.543 2146.34 859.195 2121.98 883.556 2100.91
C 907.916 2079.85 948.736 2046.93 990.873 2012.03
C 1033.01 1977.14 1057.37 1957.39 1100.82 1916.57
C 1144.28 1875.75 1163.37 1861.26 1196.29 1839.53
C 1229.21 1817.81 1241.72 1804.64 1252.25 1798.06
C 1262.79 1791.47 1267.4 1786.2 1267.4 1786.2
C 1267.4 1786.2 1282.54 1749.99 1288.46 1721.02
C 1294.39 1692.06 1306.24 1665.06 1315.46 1645.31
C 1324.68 1625.56 1331.92 1610.42 1337.84 1591.32
C 1343.77 1572.23 1362.2 1544.58 1412.9 1528.78
C 1358.91 1492.56 1377.26 1421.94 1376.62 1370.14
C 1375.97 1318.34 1397.34 1251 1397.34 1251
C 1397.34 1251 1380.5 1234.16 1372.73 1218.62
C 1364.96 1203.08 1366.9 1195.31 1367.55 1188.84
C 1352.66 1168.76 1341.65 1144.81 1335.17 1123.44
C 1328.7 1102.07 1326.11 1089.77 1326.11 1072.93
C 1326.11 1056.1 1325.46 1042.5 1318.34 1023.72
C 1311.22 1004.94 1311.86 997.172 1313.16 973.214
C 1314.45 949.256 1318.34 921.413 1318.34 907.815
C 1318.34 894.217 1327.4 859.251 1358.48 856.014
C 1318.99 842.416 1302.15 762.124 1307.98 703.2
C 1313.81 644.276 1326.11 488.226 1339.06 392.393
C 1352.01 296.561 1385.68 230.515 1473.74 167.706
C 1561.8 104.897 1696.49 53.096 1779.37 45.3258
C 1862.25 37.5556 2037.73 21.3679 2129.67 71.2263
C 2221.62 121.085 2320.69 191.017 2356.95 264.833
C 2393.21 338.65 2440.48 491.463 2451.49 601.541
"/>
</g>
</svg>

Profiles:
Profile-8bim: 9672 bytes
Profile-tiff:37724: 28437748 bytes
Profile-xmp: 26293 bytes
Properties:
8BIM:1999,2998:#1: <?xml version="1.0" encoding="iso-8859-1"?>
<svg xmlns="http://www.w3.org/2000/svg" width="3764" height="3764">
<g>
<path fill-rule="evenodd" style="fill:#000000;stroke:#000000;stroke-width:0;stroke-antialiasing:false" d="
M 2420.23 863.146
C 2420.23 863.146 2430.77 873.68 2428.79 903.966
C 2426.82 934.251 2434.72 954.661 2436.69 974.413
C 2438.67 994.165 2435.37 1013.26 2426.82 1054.74
C 2427.47 1106.09 2423.52 1130.45 2403.11 1171.27
C 2408.38 1203.53 2403.77 1217.36 2393.24 1239.08
C 2415.62 1253.57 2421.55 1307.56 2402.46 1376.69
C 2383.36 1445.82 2310.94 1604.49 2249.05 1624.24
C 2241.81 1690.08 2231.27 1785.55 2231.27 1785.55
C 2231.27 1785.55 2285.26 1817.15 2344.52 1873.77
C 2414.31 1885.62 2439.98 1893.52 2525.57 1938.29
C 2611.16 1983.06 2644.74 2002.16 2702.68 2065.36
C 2736.92 2102.23 2760.62 2134.49 2788.93 2206.26
C 2817.24 2278.02 2842.26 2374.8 2854.11 2457.1
C 2865.96 2539.4 2865.3 2586.8 2869.25 2640.13
C 2873.2 2693.46 2867.93 2707.95 2867.93 2742.18
C 2867.93 2776.42 2863.98 2833.04 2858.06 2865.96
C 2866.62 2928.51 2871.23 2973.94 2892.95 3088.49
C 2906.78 3162.23 2905.46 3172.77 2906.78 3203.71
C 2908.1 3234.66 2909.41 3245.19 2914.68 3269.55
C 2919.95 3293.91 2925.87 3320.25 2925.87 3375.55
C 2925.87 3430.86 2918.63 3481.55 2918.63 3481.55
C 2918.63 3481.55 2938.38 3548.71 2946.94 3624.42
C 2955.5 3700.14 2959.45 3772.56 2959.45 3772.56
L 252.162 3771.24
C 252.162 3771.24 250.845 3731.08 252.821 3671.83
C 254.796 3612.57 252.821 3577.02 255.454 3487.48
C 258.088 3397.94 260.063 3357.78 267.305 3287.33
C 274.547 3216.88 279.156 3192.52 285.74 3122.07
C 292.324 3051.62 298.908 3001.59 317.343 2919.95
C 335.777 2838.31 343.678 2813.95 358.821 2773.79
C 373.964 2733.62 385.815 2697.41 398.983 2664.49
C 412.15 2631.57 442.436 2568.37 471.405 2523.6
C 500.374 2478.83 520.784 2447.23 553.045 2406.41
C 585.306 2365.59 620.859 2324.11 668.263 2281.97
C 715.667 2239.83 761.754 2204.28 796.648 2175.31
C 831.543 2146.34 859.195 2121.98 883.556 2100.91
C 907.916 2079.85 948.736 2046.93 990.873 2012.03
C 1033.01 1977.14 1057.37 1957.39 1100.82 1916.57
C 1144.28 1875.75 1163.37 1861.26 1196.29 1839.53
C 1229.21 1817.81 1241.72 1804.64 1252.25 1798.06
C 1262.79 1791.47 1267.4 1786.2 1267.4 1786.2
C 1267.4 1786.2 1282.54 1749.99 1288.46 1721.02
C 1294.39 1692.06 1306.24 1665.06 1315.46 1645.31
C 1324.68 1625.56 1331.92 1610.42 1337.84 1591.32
C 1343.77 1572.23 1362.2 1544.58 1412.9 1528.78
C 1358.91 1492.56 1377.26 1421.94 1376.62 1370.14
C 1375.97 1318.34 1397.34 1251 1397.34 1251
C 1397.34 1251 1380.5 1234.16 1372.73 1218.62
C 1364.96 1203.08 1366.9 1195.31 1367.55 1188.84
C 1352.66 1168.76 1341.65 1144.81 1335.17 1123.44
C 1328.7 1102.07 1326.11 1089.77 1326.11 1072.93
C 1326.11 1056.1 1325.46 1042.5 1318.34 1023.72
C 1311.22 1004.94 1311.86 997.172 1313.16 973.214
C 1314.45 949.256 1318.34 921.413 1318.34 907.815
C 1318.34 894.217 1327.4 859.251 1358.48 856.014
C 1318.99 842.416 1302.15 762.124 1307.98 703.2
C 1313.81 644.276 1326.11 488.226 1339.06 392.393
C 1352.01 296.561 1385.68 230.515 1473.74 167.706
C 1561.8 104.897 1696.49 53.096 1779.37 45.3258
C 1862.25 37.5556 2037.73 21.3679 2129.67 71.2263
C 2221.62 121.085 2320.69 191.017 2356.95 264.833
C 2393.21 338.65 2440.48 491.463 2451.49 601.541
"/>
</g>
</svg>

aux:ApproximateFocusDistance: 237/100
aux:Firmware: 1.1.3
aux:FlashCompensation: 0/1
aux:ImageNumber: 0
aux:Lens: EF70-200mm f/2.8L IS II USM
aux:LensID: 251
aux:LensInfo: 70/1 200/1 0/0 0/0
aux:LensSerialNumber: 00008136df
aux:SerialNumber: 053024007704
crs:AlreadyApplied: True
crs:AutoLateralCA: 0
crs:AutoWhiteVersion: 134348800
crs:BlueHue: 0
crs:BlueSaturation: 0
crs:Brightness: +50
crs:CameraProfile: Adobe Standard
crs:Clarity: 0
crs:ColorNoiseReduction: 25
crs:ColorNoiseReductionDetail: 50
crs:ColorNoiseReductionSmoothness: 50
crs:Contrast: +25
crs:ConvertToGrayscale: False
crs:DefringeGreenAmount: 0
crs:DefringeGreenHueHi: 60
crs:DefringeGreenHueLo: 40
crs:DefringePurpleAmount: 0
crs:DefringePurpleHueHi: 70
crs:DefringePurpleHueLo: 30
crs:Exposure: +0.11
crs:FillLight: 0
crs:GrainAmount: 0
crs:GreenHue: 0
crs:GreenSaturation: 0
crs:HasCrop: False
crs:HasSettings: True
crs:HighlightRecovery: 77
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:LensManualDistortionAmount: 0
crs:LensProfileEnable: 0
crs:LensProfileSetup: LensDefaults
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: 0
crs:ParametricHighlights: 0
crs:ParametricHighlightSplit: 75
crs:ParametricLights: 0
crs:ParametricMidtoneSplit: 50
crs:ParametricShadows: 0
crs:ParametricShadowSplit: 25
crs:PerspectiveAspect: 0
crs:PerspectiveHorizontal: 0
crs:PerspectiveRotate: 0.0
crs:PerspectiveScale: 100
crs:PerspectiveUpright: 0
crs:PerspectiveVertical: 0
crs:PostCropVignetteAmount: 0
crs:ProcessVersion: 5.7
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: 5
crs:ShadowTint: 0
crs:SharpenDetail: 25
crs:SharpenEdgeMasking: 0
crs:SharpenRadius: +1.0
crs:Sharpness: 25
crs:SplitToningBalance: 0
crs:SplitToningHighlightHue: 0
crs:SplitToningHighlightSaturation: 0
crs:SplitToningShadowHue: 0
crs:SplitToningShadowSaturation: 0
crs:Temperature: 6200
crs:Tint: -2
crs:ToneCurveName: Medium Contrast
crs:ToneCurveName2012: Linear
crs:Version: 9.3
crs:Vibrance: 0
crs:VignetteAmount: 0
crs:WhiteBalance: As Shot
date:create: 2020-01-27T07:26:28+00:00
date:modify: 2020-01-24T13:58:14+00:00
dc:format: image/tiff
exif:ApertureValue: 6
exif:CustomRendered: 0
exif:DateTimeDigitized: 2016:02:23 12:48:51
exif:DateTimeOriginal: 2016:02:23 12:48:51
exif:ExposureBiasValue: 0
exif:ExposureMode: 1
exif:ExposureProgram: 1
exif:ExposureTime: 0.0125
exif:Flash: 16
exif:FNumber: 8
exif:FocalLength: 88
exif:FocalPlaneResolutionUnit: 3
exif:FocalPlaneXResolution: 1600
exif:FocalPlaneYResolution: 1600
exif:ISOSpeedRatings: 160
exif:MaxApertureValue: 3
exif:MeteringMode: 5
exif:PixelXDimension: 3764
exif:PixelYDimension: 3764
exif:SceneCaptureType: 0
exif:ShutterSpeedValue: 6.32193
exif:SubjectDistance: 2.37
exif:SubSecTimeDigitized: 63
exif:SubSecTimeOriginal: 63
exif:WhiteBalance: 0
photoshop:ColorMode: 3
photoshop:DateCreated: 2016-02-23
photoshop:ICCProfile: eciRGB v2
signature: 769728dcf4e63abc58d83e297cf51cae718813ffc5c0d92518ee17d2e3bdca5b
tiff:alpha: unspecified
tiff:endian: lsb
tiff:make: Canon
tiff:model: Canon EOS 5D Mark III
tiff:photometric: RGB
tiff:rows-per-strip: 23
tiff:software: Adobe Photoshop 21.0 (Windows)
tiff:timestamp: 2020:01:24 14:58:10
xmp:CreateDate: 2016-02-23T12:48:51
xmp:CreatorTool: Adobe Photoshop CC 2015 (Macintosh)
xmp:MetadataDate: 2020-01-24T14:58:10+01:00
xmp:ModifyDate: 2020-01-24T14:58:10+01:00
xmp:Rating: 3
xmpMM:DerivedFrom: F58134488D3CFC1810B99F7B4B6B54B7
xmpMM:DocumentID: adobe:docid:photoshop:eeb3ff06-5334-1179-b177-fd5f15ccd4e8
xmpMM:InstanceID: xmp.iid:27d1a743-c4e2-3f4e-a821-9071d809db30
xmpMM:OriginalDocumentID: F58134488D3CFC1810B99F7B4B6B54B7
xmpRights:Marked: False
Artifacts:
tiff:has-layers: true
verbose: true
Tainted: False
Filesize: 34.8883MiB
Number pixels: 14.1677M
Pixels per second: 15.2367MP
User time: 1.281u
Elapsed time: 0:01.929
Version: ImageMagick 7.0.9-21 Q16 x64 2020-02-01 http://www.imagemagick.org
Image: C:\temp\14_140600m_portrait.tif
Format: TIFF (Tagged Image File Format)
Mime type: image/tiff
Class: DirectClass
Geometry: 2710x3695+0+0
Resolution: 300x300
Print size: 9.03333x12.3167
Units: PixelsPerInch
Colorspace: sRGB
Type: TrueColorAlpha
Base type: Undefined
Endianess: LSB
Depth: 8-bit
Channel depth:
Red: 8-bit
Green: 8-bit
Blue: 8-bit
Alpha: 8-bit
Channel statistics:
Pixels: 10013450
Red:
min: 0 (0)
max: 255 (1)
mean: 194.765 (0.763783)
standard deviation: 36.9565 (0.144928)
kurtosis: 3.3263
skewness: -1.5526
entropy: 0.837513
Green:
min: 0 (0)
max: 255 (1)
mean: 191.461 (0.750829)
standard deviation: 39.9311 (0.156592)
kurtosis: 2.69559
skewness: -1.44268
entropy: 0.847813
Blue:
min: 0 (0)
max: 255 (1)
mean: 189.98 (0.745018)
standard deviation: 45.986 (0.180337)
kurtosis: 1.6271
skewness: -1.25164
entropy: 0.862256
Alpha:
min: 0 (0)
max: 255 (1)
mean: 158.411 (0.62122)
standard deviation: 123.518 (0.484386)
kurtosis: -1.74796
skewness: -0.499789
entropy: 0.12978
Image statistics:
Overall:
min: 0 (0)
max: 255 (1)
mean: 183.654 (0.720213)
standard deviation: 61.598 (0.241561)
kurtosis: 1.31864
skewness: -1.47807
entropy: 0.66934
Alpha: srgba(144,147,145,0) #90939100
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)
Matte color: grey74
Background color: white
Border color: srgb(223,223,223)
Transparent color: none
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 2710x3695+250+69
Origin geometry: +250+69
Dispose: Undefined
Iterations: 0
Scene: 1 of 2
Compression: RLE
Orientation: TopLeft
Clipping path:
<?xml version="1.0" encoding="iso-8859-1"?>
<svg xmlns="http://www.w3.org/2000/svg" width="2710" height="3695">
<g>
<path fill-rule="evenodd" style="fill:#000000;stroke:#000000;stroke-width:0;stroke-antialiasing:false" d="
M 1742.52 847.323
C 1742.52 847.323 1750.1 857.664 1748.68 887.394
C 1747.26 917.125 1752.94 937.161 1754.37 956.55
C 1755.79 975.94 1753.42 994.683 1747.26 1035.4
C 1747.73 1085.81 1744.89 1109.73 1730.19 1149.8
C 1733.98 1181.47 1730.66 1195.04 1723.08 1216.37
C 1739.2 1230.59 1743.46 1283.59 1729.72 1351.45
C 1715.97 1419.31 1663.83 1575.08 1619.27 1594.47
C 1614.05 1659.1 1606.47 1752.81 1606.47 1752.81
C 1606.47 1752.81 1645.34 1783.84 1688 1839.42
C 1738.25 1851.05 1756.74 1858.81 1818.36 1902.76
C 1879.98 1946.71 1904.16 1965.45 1945.87 2027.5
C 1970.52 2063.69 1987.59 2095.36 2007.97 2165.81
C 2028.35 2236.26 2046.37 2331.27 2054.9 2412.06
C 2063.43 2492.85 2062.96 2539.38 2065.8 2591.74
C 2068.64 2644.09 2064.85 2658.31 2064.85 2691.91
C 2064.85 2725.52 2062.01 2781.11 2057.74 2813.42
C 2063.9 2874.82 2067.22 2919.42 2082.87 3031.88
C 2092.82 3104.27 2091.87 3114.61 2092.82 3144.98
C 2093.77 3175.36 2094.72 3185.7 2098.51 3209.62
C 2102.3 3233.53 2106.57 3259.38 2106.57 3313.67
C 2106.57 3367.96 2101.35 3417.73 2101.35 3417.73
C 2101.35 3417.73 2115.57 3483.65 2121.74 3557.98
C 2127.9 3632.31 2130.74 3703.4 2130.74 3703.4
L 181.552 3702.11
C 181.552 3702.11 180.603 3662.68 182.025 3604.52
C 183.448 3546.35 182.025 3511.45 183.922 3423.55
C 185.818 3335.65 187.24 3296.22 192.454 3227.07
C 197.668 3157.91 200.986 3134 205.727 3064.84
C 210.467 2995.68 215.207 2946.56 228.48 2866.42
C 241.753 2786.28 247.441 2762.36 258.343 2722.94
C 269.246 2683.51 277.778 2647.96 287.259 2615.65
C 296.739 2583.33 318.545 2521.29 339.402 2477.34
C 360.259 2433.39 374.954 2402.36 398.181 2362.29
C 421.408 2322.22 447.005 2281.5 481.135 2240.14
C 515.265 2198.77 548.447 2163.87 573.57 2135.43
C 598.693 2107 618.602 2083.08 636.141 2062.4
C 653.68 2041.72 683.07 2009.4 713.407 1975.15
C 743.745 1940.89 761.284 1921.5 792.569 1881.43
C 823.855 1841.36 837.602 1827.14 861.303 1805.81
C 885.004 1784.48 894.011 1771.56 901.595 1765.09
C 909.179 1758.63 912.498 1753.46 912.498 1753.46
C 912.498 1753.46 923.4 1717.91 927.667 1689.48
C 931.933 1661.04 940.465 1634.54 947.102 1615.15
C 953.738 1595.76 958.952 1580.89 963.218 1562.15
C 967.485 1543.41 980.757 1516.26 1017.26 1500.75
C 978.387 1465.2 991.6 1395.87 991.134 1345.02
C 990.667 1294.17 1006.05 1228.06 1006.05 1228.06
C 1006.05 1228.06 993.931 1211.54 988.336 1196.28
C 982.742 1181.03 984.141 1173.4 984.607 1167.04
C 973.884 1147.34 965.959 1123.82 961.297 1102.84
C 956.635 1081.87 954.77 1069.79 954.77 1053.26
C 954.77 1036.74 954.304 1023.39 949.176 1004.95
C 944.048 986.52 944.514 978.892 945.446 955.373
C 946.379 931.854 949.176 904.522 949.176 891.173
C 949.176 877.825 955.703 843.5 978.08 840.322
C 949.642 826.973 937.521 748.153 941.717 690.309
C 945.913 632.466 954.77 479.276 964.094 385.2
C 973.418 291.125 997.66 226.289 1061.06 164.632
C 1124.47 102.974 1221.43 52.1227 1281.11 44.4949
C 1340.78 36.8672 1467.12 20.9762 1533.32 69.9206
C 1599.52 118.865 1670.85 187.515 1696.96 259.978
C 1723.06 332.442 1757.09 482.454 1765.02 590.513
"/>
</g>
</svg>

Profiles:
Profile-8bim: 9672 bytes
Profile-psd:additional-info: 248 bytes
Profile-xmp: 26293 bytes
Properties:
8BIM:1999,2998:#1: <?xml version="1.0" encoding="iso-8859-1"?>
<svg xmlns="http://www.w3.org/2000/svg" width="2710" height="3695">
<g>
<path fill-rule="evenodd" style="fill:#000000;stroke:#000000;stroke-width:0;stroke-antialiasing:false" d="
M 1742.52 847.323
C 1742.52 847.323 1750.1 857.664 1748.68 887.394
C 1747.26 917.125 1752.94 937.161 1754.37 956.55
C 1755.79 975.94 1753.42 994.683 1747.26 1035.4
C 1747.73 1085.81 1744.89 1109.73 1730.19 1149.8
C 1733.98 1181.47 1730.66 1195.04 1723.08 1216.37
C 1739.2 1230.59 1743.46 1283.59 1729.72 1351.45
C 1715.97 1419.31 1663.83 1575.08 1619.27 1594.47
C 1614.05 1659.1 1606.47 1752.81 1606.47 1752.81
C 1606.47 1752.81 1645.34 1783.84 1688 1839.42
C 1738.25 1851.05 1756.74 1858.81 1818.36 1902.76
C 1879.98 1946.71 1904.16 1965.45 1945.87 2027.5
C 1970.52 2063.69 1987.59 2095.36 2007.97 2165.81
C 2028.35 2236.26 2046.37 2331.27 2054.9 2412.06
C 2063.43 2492.85 2062.96 2539.38 2065.8 2591.74
C 2068.64 2644.09 2064.85 2658.31 2064.85 2691.91
C 2064.85 2725.52 2062.01 2781.11 2057.74 2813.42
C 2063.9 2874.82 2067.22 2919.42 2082.87 3031.88
C 2092.82 3104.27 2091.87 3114.61 2092.82 3144.98
C 2093.77 3175.36 2094.72 3185.7 2098.51 3209.62
C 2102.3 3233.53 2106.57 3259.38 2106.57 3313.67
C 2106.57 3367.96 2101.35 3417.73 2101.35 3417.73
C 2101.35 3417.73 2115.57 3483.65 2121.74 3557.98
C 2127.9 3632.31 2130.74 3703.4 2130.74 3703.4
L 181.552 3702.11
C 181.552 3702.11 180.603 3662.68 182.025 3604.52
C 183.448 3546.35 182.025 3511.45 183.922 3423.55
C 185.818 3335.65 187.24 3296.22 192.454 3227.07
C 197.668 3157.91 200.986 3134 205.727 3064.84
C 210.467 2995.68 215.207 2946.56 228.48 2866.42
C 241.753 2786.28 247.441 2762.36 258.343 2722.94
C 269.246 2683.51 277.778 2647.96 287.259 2615.65
C 296.739 2583.33 318.545 2521.29 339.402 2477.34
C 360.259 2433.39 374.954 2402.36 398.181 2362.29
C 421.408 2322.22 447.005 2281.5 481.135 2240.14
C 515.265 2198.77 548.447 2163.87 573.57 2135.43
C 598.693 2107 618.602 2083.08 636.141 2062.4
C 653.68 2041.72 683.07 2009.4 713.407 1975.15
C 743.745 1940.89 761.284 1921.5 792.569 1881.43
C 823.855 1841.36 837.602 1827.14 861.303 1805.81
C 885.004 1784.48 894.011 1771.56 901.595 1765.09
C 909.179 1758.63 912.498 1753.46 912.498 1753.46
C 912.498 1753.46 923.4 1717.91 927.667 1689.48
C 931.933 1661.04 940.465 1634.54 947.102 1615.15
C 953.738 1595.76 958.952 1580.89 963.218 1562.15
C 967.485 1543.41 980.757 1516.26 1017.26 1500.75
C 978.387 1465.2 991.6 1395.87 991.134 1345.02
C 990.667 1294.17 1006.05 1228.06 1006.05 1228.06
C 1006.05 1228.06 993.931 1211.54 988.336 1196.28
C 982.742 1181.03 984.141 1173.4 984.607 1167.04
C 973.884 1147.34 965.959 1123.82 961.297 1102.84
C 956.635 1081.87 954.77 1069.79 954.77 1053.26
C 954.77 1036.74 954.304 1023.39 949.176 1004.95
C 944.048 986.52 944.514 978.892 945.446 955.373
C 946.379 931.854 949.176 904.522 949.176 891.173
C 949.176 877.825 955.703 843.5 978.08 840.322
C 949.642 826.973 937.521 748.153 941.717 690.309
C 945.913 632.466 954.77 479.276 964.094 385.2
C 973.418 291.125 997.66 226.289 1061.06 164.632
C 1124.47 102.974 1221.43 52.1227 1281.11 44.4949
C 1340.78 36.8672 1467.12 20.9762 1533.32 69.9206
C 1599.52 118.865 1670.85 187.515 1696.96 259.978
C 1723.06 332.442 1757.09 482.454 1765.02 590.513
"/>
</g>
</svg>

aux:ApproximateFocusDistance: 237/100
aux:Firmware: 1.1.3
aux:FlashCompensation: 0/1
aux:ImageNumber: 0
aux:Lens: EF70-200mm f/2.8L IS II USM
aux:LensID: 251
aux:LensInfo: 70/1 200/1 0/0 0/0
aux:LensSerialNumber: 00008136df
aux:SerialNumber: 053024007704
crs:AlreadyApplied: True
crs:AutoLateralCA: 0
crs:AutoWhiteVersion: 134348800
crs:BlueHue: 0
crs:BlueSaturation: 0
crs:Brightness: +50
crs:CameraProfile: Adobe Standard
crs:Clarity: 0
crs:ColorNoiseReduction: 25
crs:ColorNoiseReductionDetail: 50
crs:ColorNoiseReductionSmoothness: 50
crs:Contrast: +25
crs:ConvertToGrayscale: False
crs:DefringeGreenAmount: 0
crs:DefringeGreenHueHi: 60
crs:DefringeGreenHueLo: 40
crs:DefringePurpleAmount: 0
crs:DefringePurpleHueHi: 70
crs:DefringePurpleHueLo: 30
crs:Exposure: +0.11
crs:FillLight: 0
crs:GrainAmount: 0
crs:GreenHue: 0
crs:GreenSaturation: 0
crs:HasCrop: False
crs:HasSettings: True
crs:HighlightRecovery: 77
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:LensManualDistortionAmount: 0
crs:LensProfileEnable: 0
crs:LensProfileSetup: LensDefaults
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: 0
crs:ParametricHighlights: 0
crs:ParametricHighlightSplit: 75
crs:ParametricLights: 0
crs:ParametricMidtoneSplit: 50
crs:ParametricShadows: 0
crs:ParametricShadowSplit: 25
crs:PerspectiveAspect: 0
crs:PerspectiveHorizontal: 0
crs:PerspectiveRotate: 0.0
crs:PerspectiveScale: 100
crs:PerspectiveUpright: 0
crs:PerspectiveVertical: 0
crs:PostCropVignetteAmount: 0
crs:ProcessVersion: 5.7
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: 5
crs:ShadowTint: 0
crs:SharpenDetail: 25
crs:SharpenEdgeMasking: 0
crs:SharpenRadius: +1.0
crs:Sharpness: 25
crs:SplitToningBalance: 0
crs:SplitToningHighlightHue: 0
crs:SplitToningHighlightSaturation: 0
crs:SplitToningShadowHue: 0
crs:SplitToningShadowSaturation: 0
crs:Temperature: 6200
crs:Tint: -2
crs:ToneCurveName: Medium Contrast
crs:ToneCurveName2012: Linear
crs:Version: 9.3
crs:Vibrance: 0
crs:VignetteAmount: 0
crs:WhiteBalance: As Shot
date:create: 2020-02-03T09:14:01+00:00
date:modify: 2020-02-03T09:14:01+00:00
dc:format: image/tiff
exif:ApertureValue: 6
exif:CustomRendered: 0
exif:DateTimeDigitized: 2016:02:23 12:48:51
exif:DateTimeOriginal: 2016:02:23 12:48:51
exif:ExposureBiasValue: 0
exif:ExposureMode: 1
exif:ExposureProgram: 1
exif:ExposureTime: 0.0125
exif:Flash: 16
exif:FNumber: 8
exif:FocalLength: 88
exif:FocalPlaneResolutionUnit: 3
exif:FocalPlaneXResolution: 1600
exif:FocalPlaneYResolution: 1600
exif:ISOSpeedRatings: 160
exif:MaxApertureValue: 3
exif:MeteringMode: 5
exif:PixelXDimension: 3764
exif:PixelYDimension: 3764
exif:SceneCaptureType: 0
exif:ShutterSpeedValue: 6.32193
exif:SubjectDistance: 2.37
exif:SubSecTimeDigitized: 63
exif:SubSecTimeOriginal: 63
exif:WhiteBalance: 0
label: Background
photoshop:ColorMode: 3
photoshop:DateCreated: 2016-02-23
photoshop:ICCProfile: eciRGB v2
signature: 429f8c77d4ad0b590b427124bbf13f9e396385e45f717e7f2e7dfa9e722162eb
tiff:alpha: unspecified
tiff:endian: lsb
tiff:make: Canon
tiff:model: Canon EOS 5D Mark III
tiff:photometric: RGB
tiff:rows-per-strip: 23
tiff:software: Adobe Photoshop 21.0 (Windows)
tiff:timestamp: 2020:01:24 14:58:10
xmp:CreateDate: 2016-02-23T12:48:51
xmp:CreatorTool: Adobe Photoshop CC 2015 (Macintosh)
xmp:MetadataDate: 2020-01-24T14:58:10+01:00
xmp:ModifyDate: 2020-01-24T14:58:10+01:00
xmp:Rating: 3
xmpMM:DerivedFrom: F58134488D3CFC1810B99F7B4B6B54B7
xmpMM:DocumentID: adobe:docid:photoshop:eeb3ff06-5334-1179-b177-fd5f15ccd4e8
xmpMM:InstanceID: xmp.iid:27d1a743-c4e2-3f4e-a821-9071d809db30
xmpMM:OriginalDocumentID: F58134488D3CFC1810B99F7B4B6B54B7
xmpRights:Marked: False
Artifacts:
psd:layer.opacity: 65535
psd:layer.x: 250
psd:layer.y: 69
tiff:has-layers: true
verbose: true
Tainted: False
Filesize: 34.8883MiB
Number pixels: 10.0135M
Pixels per second: 3.7525MP
User time: 3.359u
Elapsed time: 0:03.668
Version: ImageMagick 7.0.9-21 Q16 x64 2020-02-01 http://www.imagemagick.org

246246
Posts: 200
Joined: 2015-07-06T07:38:22-07:00
Authentication code: 1151

Re: Alpha off and transparent background

Post by 246246 »

I expect I see the histogram, but still I can say your file does not have alpha channel bacause Type is TrueColor. (If it has alpha, Imagemagick shows that type is TrueColorAlpha or PalleteAlpha. Or check the channel depth or channel statistics, it does not contain Alpha entry.)

Also It is created by Photoshop. I once saw the tiff that is transparent only in Photoshop, so I think your file is not transparent in other application.
(If you saw the only first layer, and/or strip Photoshop specific profile or properties, I think the transparency would be lost.)

So if you are willing to publish your file, you have to convert it to some format so as to be recognized its transparency by other applications.
As I said, there is no standard tiff that has transparency without using alpha channel.


PS
Your 2nd layer, ignored by other applications, has alpha. Maybe extracting the 2nd layer will be your help.
Last edited by 246246 on 2020-02-03T18:48:26-07:00, edited 1 time in total.

snibgo
Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Alpha off and transparent background

Post by snibgo »

The tiff file contains two images, sized 3764x3764 and 2710x3695. Only the second has alpha.

Tiffs from Photoshop commonly have the first image being a flattened version of all the others. But they are different sizes, so that is not the case here.

Converting this TIFF to PNG will create two PNG files. The first will be opaque. Use [1] if you want only the second.
snibgo's IM pages: im.snibgo.com

Locked