When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

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?".
i73
Posts: 50
Joined: 2016-08-24T11:30:27-07:00
Authentication code: 1151

When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

Post by i73 »

I'm currently resizing images and I ran into a problem of ImageMagic applying it's own bit depth (Not taking into account of the depth of image) so now I am using 'png32':

Code: Select all

$ C:/test.png -resize 128 -unsharp 1.5x1.2+1.0+0.10 png32:C:/test2.png
Ideally I am looking to just read the images depth from the first image and use that as opposed to setting the depth myself (have to write a bunch of flags if so), is this possible?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

Post by fmw42 »

What is your IM version?
C:/test.png -resize 128 -unsharp 1.5x1.2+1.0+0.10 png32:C:/test2.png
This is not a valid command. If on IM 6, then it needs convert at the beginning. If on IM 7 it needs magick at the beginning.

If you just specify PNG00:, then I believe it should not try to change your depth. See http://www.imagemagick.org/Usage/formats/#png_formats
i73
Posts: 50
Joined: 2016-08-24T11:30:27-07:00
Authentication code: 1151

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

Post by i73 »

fmw42 wrote: 2017-07-04T17:40:13-07:00 What is your IM version?
C:/test.png -resize 128 -unsharp 1.5x1.2+1.0+0.10 png32:C:/test2.png
This is not a valid command. If on IM 6, then it needs convert at the beginning. If on IM 7 it needs magick at the beginning.

If you just specify PNG00:, then I believe it should not try to change your depth. See http://www.imagemagick.org/Usage/formats/#png_formats
Yeah disregarding the convert (I left it out) PNG00 works perfectly thanks so much!
i73
Posts: 50
Joined: 2016-08-24T11:30:27-07:00
Authentication code: 1151

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

Post by i73 »

I spoke a little too soon @fmw42, "It works" But not for 32 bit images, when I resize a 32 it drops the depth down to 8 bit (because its dropping the channels with the resize). Do you know if there is another flag, or a flag that would extend to 32 bit? I was hoping that I could get away with this but is my only other option passing flags to the method myself?

Eg. PNG8:, etc.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

Post by fmw42 »

i73 wrote: 2017-07-05T19:16:20-07:00 I spoke a little too soon @fmw42, "It works" But not for 32 bit images, when I resize a 32 it drops the depth down to 8 bit (because its dropping the channels with the resize).

Eg. PNG8:, etc.
Are you saying that you go from 32-bit color to 8-bit color upon resizing? Are you downsizing? Are you losing the alpha channel? Is your PNG8 transparent or not?

Please clarify or post an input and output result with the exact command?

Also what is your version of libpng and Imagemagick? You an find that from:

Code: Select all

convert -list format
(see PNG line) and

Code: Select all

convert -version

Please always provide your IM version and platform when asking questions, since syntax and results may differ.
i73
Posts: 50
Joined: 2016-08-24T11:30:27-07:00
Authentication code: 1151

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

Post by i73 »

Sorry, I understand the syntax for any of the flags so I did not think it would matter what versions or platform I am using.

Code: Select all

convert C:/test_512x512_32.png -resize 128 -unsharp 1.5x1.2+1.0+0.10 PNG00:C:/test2_128x128.png
Yes I am converting a larger image to a smaller one, when I export, after doing some research it drops channels when resizing down, I was just curious if there was a flag to stop this, not a lot of info about PNG00:

https://cdn.pbrd.co/images/GzChHOe.png

I'm using 'ImageMagick 6.8.6-8' Windows, using .net command line.

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

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

Post by fmw42 »

I still do not understand what channels are being lost? Again are you losing transparency? If not, then is it just going from 32-bit color to 8-bit color with transparency.

Can you upload your input and output images to some free hosting service and post the URL here.

If the images are proprietary, then do you have an example that is not. If not, then can you post the information returned from

Code: Select all

identify -verbose test_512x512_32.png
and

Code: Select all

identify -verbose test2_128x128.png
My guess is that you end up with 256 colors or less and thus it is being reduced from 32-bit color to 8-bit color. But PNG00: is supposed to prevent that from happening. So the PNG developer may have to check this out or comment. That is why I want your images, so I can try your command to confirm and pass the information to the PNG developer.

That is also why I asked what your version of libpng was.

Please answer all my questions in particular what do you get for PNG from

Code: Select all

convert list format
that should tell us the libpng version
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

Post by snibgo »

i73 wrote:But not for 32 bit images, when I resize a 32 it drops the depth down to 8 bit (because its dropping the channels with the resize).
I'm not sure what this means. Perhaps your "32 bit image" has 4 channels, each of 8 bits. Perhaps your output file is the same, but paletted. You can use "-type" to prevent paletisation.
snibgo's IM pages: im.snibgo.com
i73
Posts: 50
Joined: 2016-08-24T11:30:27-07:00
Authentication code: 1151

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

Post by i73 »

You can use "-type" to prevent paletisation.
But I would have to pass a type to my method, correct? I'm trying to stay away from passing arguments other than size and image name.


You can find the images here:
https://ibb.co/gurNQF
https://ibb.co/eSaGkF

Code: Select all

Image: D:\z\TestLayer.png
  Format: PNG (Portable Network Graphics)
  Class: DirectClass
  Geometry: 200x200+0+0
  Units: Undefined
  Type: PaletteAlpha
  Endianess: Undefined
  Colorspace: sRGB
  Depth: 8-bit
  Channel depth:
    red: 1-bit
    green: 1-bit
    blue: 1-bit
    alpha: 8-bit
  Channel statistics:
    Red:
      min: 255 (1)
      max: 255 (1)
      mean: 255 (1)
      standard deviation: 0 (0)
      kurtosis: 0
      skewness: 0
    Green:
      min: 0 (0)
      max: 255 (1)
      mean: 92.4757 (0.36265)
      standard deviation: 122.595 (0.480765)
      kurtosis: -1.67352
      skewness: 0.571381
    Blue:
      min: 0 (0)
      max: 255 (1)
      mean: 92.4757 (0.36265)
      standard deviation: 122.595 (0.480765)
      kurtosis: -1.67352
      skewness: 0.571381
    Alpha:
      min: 0 (0)
      max: 255 (1)
      mean: 130.95 (0.513528)
      standard deviation: 126.288 (0.495247)
      kurtosis: -1.98386
      skewness: 0.0529741
  Image statistics:
    Overall:
      min: 0 (0)
      max: 255 (1)
      mean: 141 (0.552943)
      standard deviation: 107.247 (0.420577)
      kurtosis: -0.970374
      skewness: -0.349883
  Alpha: srgba(255,255,255,0)   #FFFFFF00
  Colors: 251
  Histogram:
     19814: (255,  0,  0,255) #FF0000 red
      4028: (255,  0,  0,  0) #FF000000 srgba(255,0,0,0)
        80: (255,  0,  0,254) #FF0000FE srgba(255,0,0,0.996078)
        79: (255,  0,  0,  1) #FF000001 srgba(255,0,0,0.00392157)
        61: (255,  0,  0,  2) #FF000002 srgba(255,0,0,0.00784314)
        36: (255,  0,  0,253) #FF0000FD srgba(255,0,0,0.992157)
        31: (255,  0,  0,  3) #FF000003 srgba(255,0,0,0.0117647)
        31: (255,  0,  0,  7) #FF000007 srgba(255,0,0,0.027451)
        29: (255,  0,  0,  4) #FF000004 srgba(255,0,0,0.0156863)
        27: (255,  0,  0,  6) #FF000006 srgba(255,0,0,0.0235294)
        24: (255,  0,  0,  5) #FF000005 srgba(255,0,0,0.0196078)
        22: (255,  0,  0,  8) #FF000008 srgba(255,0,0,0.0313725)
        21: (255,  0,  0,251) #FF0000FB srgba(255,0,0,0.984314)
        18: (255,  0,  0,252) #FF0000FC srgba(255,0,0,0.988235)
        16: (255,  0,  0,248) #FF0000F8 srgba(255,0,0,0.972549)
        14: (255,  0,  0,  9) #FF000009 srgba(255,0,0,0.0352941)
        14: (255,  0,  0,250) #FF0000FA srgba(255,0,0,0.980392)
        14: (255,  0,  0, 10) #FF00000A srgba(255,0,0,0.0392157)
        14: (255,  0,  0, 11) #FF00000B srgba(255,0,0,0.0431373)
        14: (255,  0,  0, 21) #FF000015 srgba(255,0,0,0.0823529)
        14: (255,  0,  0, 43) #FF00002B srgba(255,0,0,0.168627)
        13: (255,  0,  0, 17) #FF000011 srgba(255,0,0,0.0666667)
        12: (255,  0,  0, 15) #FF00000F srgba(255,0,0,0.0588235)
        12: (255,  0,  0, 16) #FF000010 srgba(255,0,0,0.0627451)
        12: (255,  0,  0, 14) #FF00000E srgba(255,0,0,0.054902)
        12: (255,  0,  0,126) #FF00007E srgba(255,0,0,0.494118)
        11: (255,  0,  0, 13) #FF00000D srgba(255,0,0,0.0509804)
        11: (255,  0,  0,247) #FF0000F7 srgba(255,0,0,0.968627)
        11: (255,  0,  0,249) #FF0000F9 srgba(255,0,0,0.976471)
        11: (255,  0,  0,245) #FF0000F5 srgba(255,0,0,0.960784)
        11: (255,  0,  0, 20) #FF000014 srgba(255,0,0,0.0784314)
        10: (255,  0,  0,210) #FF0000D2 srgba(255,0,0,0.823529)
        10: (255,  0,  0, 24) #FF000018 srgba(255,0,0,0.0941176)
        10: (255,  0,  0, 49) #FF000031 srgba(255,0,0,0.192157)
        10: (255,  0,  0, 42) #FF00002A srgba(255,0,0,0.164706)
        10: (255,  0,  0,243) #FF0000F3 srgba(255,0,0,0.952941)
        10: (255,  0,  0, 72) #FF000048 srgba(255,0,0,0.282353)
         9: (255,  0,  0, 34) #FF000022 srgba(255,0,0,0.133333)
         9: (255,  0,  0,174) #FF0000AE srgba(255,0,0,0.682353)
         9: (255,  0,  0, 31) #FF00001F srgba(255,0,0,0.121569)
         9: (255,  0,  0,240) #FF0000F0 srgba(255,0,0,0.941176)
         9: (255,  0,  0, 25) #FF000019 srgba(255,0,0,0.0980392)
         9: (255,  0,  0, 12) #FF00000C srgba(255,0,0,0.0470588)
         9: (255,  0,  0, 36) #FF000024 srgba(255,0,0,0.141176)
         9: (255,  0,  0, 46) #FF00002E srgba(255,0,0,0.180392)
         8: (255,  0,  0, 30) #FF00001E srgba(255,0,0,0.117647)
         8: (255,  0,  0,246) #FF0000F6 srgba(255,0,0,0.964706)
         8: (255,  0,  0, 39) #FF000027 srgba(255,0,0,0.152941)
         8: (255,  0,  0, 47) #FF00002F srgba(255,0,0,0.184314)
         8: (255,  0,  0,223) #FF0000DF srgba(255,0,0,0.87451)
         8: (255,  0,  0,179) #FF0000B3 srgba(255,0,0,0.701961)
         8: (255,  0,  0, 19) #FF000013 srgba(255,0,0,0.0745098)
         8: (255,  0,  0,235) #FF0000EB srgba(255,0,0,0.921569)
         8: (255,  0,  0, 52) #FF000034 srgba(255,0,0,0.203922)
         8: (255,  0,  0,107) #FF00006B srgba(255,0,0,0.419608)
         8: (255,  0,  0, 27) #FF00001B srgba(255,0,0,0.105882)
         8: (255,  0,  0,229) #FF0000E5 srgba(255,0,0,0.898039)
         7: (255,  0,  0,242) #FF0000F2 srgba(255,0,0,0.94902)
         7: (255,  0,  0, 98) #FF000062 srgba(255,0,0,0.384314)
         7: (255,  0,  0,238) #FF0000EE srgba(255,0,0,0.933333)
         7: (255,  0,  0,220) #FF0000DC srgba(255,0,0,0.862745)
         7: (255,  0,  0,135) #FF000087 srgba(255,0,0,0.529412)
         7: (255,  0,  0, 78) #FF00004E srgba(255,0,0,0.305882)
         7: (255,  0,  0,236) #FF0000EC srgba(255,0,0,0.92549)
         7: (255,  0,  0,141) #FF00008D srgba(255,0,0,0.552941)
         7: (255,  0,  0,144) #FF000090 srgba(255,0,0,0.564706)
         7: (255,  0,  0, 33) #FF000021 srgba(255,0,0,0.129412)
         7: (255,  0,  0, 28) #FF00001C srgba(255,0,0,0.109804)
         7: (255,  0,  0, 23) #FF000017 srgba(255,0,0,0.0901961)
         7: (255,  0,  0,234) #FF0000EA srgba(255,0,0,0.917647)
         7: (255,  0,  0,232) #FF0000E8 srgba(255,0,0,0.909804)
         7: (255,  0,  0, 18) #FF000012 srgba(255,0,0,0.0705882)
         7: (255,  0,  0,205) #FF0000CD srgba(255,0,0,0.803922)
         7: (255,  0,  0,244) #FF0000F4 srgba(255,0,0,0.956863)
         6: (255,  0,  0, 74) #FF00004A srgba(255,0,0,0.290196)
         6: (255,  0,  0, 48) #FF000030 srgba(255,0,0,0.188235)
         6: (255,  0,  0,176) #FF0000B0 srgba(255,0,0,0.690196)
         6: (255,  0,  0,222) #FF0000DE srgba(255,0,0,0.870588)
         6: (255,  0,  0, 44) #FF00002C srgba(255,0,0,0.172549)
         6: (255,  0,  0,233) #FF0000E9 srgba(255,0,0,0.913725)
         6: (255,  0,  0,172) #FF0000AC srgba(255,0,0,0.67451)
         6: (255,  0,  0, 66) #FF000042 srgba(255,0,0,0.258824)
         6: (255,  0,  0, 94) #FF00005E srgba(255,0,0,0.368627)
         6: (255,  0,  0, 38) #FF000026 srgba(255,0,0,0.14902)
         6: (255,  0,  0,193) #FF0000C1 srgba(255,0,0,0.756863)
         6: (255,  0,  0,241) #FF0000F1 srgba(255,0,0,0.945098)
         6: (255,  0,  0, 59) #FF00003B srgba(255,0,0,0.231373)
         6: (255,  0,  0,109) #FF00006D srgba(255,0,0,0.427451)
         6: (255,  0,  0,143) #FF00008F srgba(255,0,0,0.560784)
         6: (255,  0,  0,108) #FF00006C srgba(255,0,0,0.423529)
         6: (255,  0,  0,225) #FF0000E1 srgba(255,0,0,0.882353)
         6: (255,  0,  0, 29) #FF00001D srgba(255,0,0,0.113725)
         6: (255,  0,  0, 22) #FF000016 srgba(255,0,0,0.0862745)
         6: (255,  0,  0,155) #FF00009B srgba(255,0,0,0.607843)
         6: (255,  0,  0, 56) #FF000038 srgba(255,0,0,0.219608)
         5: (255,  0,  0,157) #FF00009D srgba(255,0,0,0.615686)
         5: (255,  0,  0, 58) #FF00003A srgba(255,0,0,0.227451)
         5: (255,  0,  0,158) #FF00009E srgba(255,0,0,0.619608)
         5: (255,  0,  0,214) #FF0000D6 srgba(255,0,0,0.839216)
         5: (255,  0,  0,153) #FF000099 srgba(255,0,0,0.6)
         5: (255,  0,  0, 26) #FF00001A srgba(255,0,0,0.101961)
         5: (255,  0,  0,161) #FF0000A1 srgba(255,0,0,0.631373)
         5: (255,  0,  0,187) #FF0000BB srgba(255,0,0,0.733333)
         5: (255,  0,  0,162) #FF0000A2 srgba(255,0,0,0.635294)
         5: (255,  0,  0,104) #FF000068 srgba(255,0,0,0.407843)
         5: (255,  0,  0,106) #FF00006A srgba(255,0,0,0.415686)
         5: (255,  0,  0,186) #FF0000BA srgba(255,0,0,0.729412)
         5: (255,  0,  0,163) #FF0000A3 srgba(255,0,0,0.639216)
         5: (255,  0,  0, 32) #FF000020 srgba(255,0,0,0.12549)
         5: (255,  0,  0,202) #FF0000CA srgba(255,0,0,0.792157)
         5: (255,  0,  0,167) #FF0000A7 srgba(255,0,0,0.654902)
         5: (255,  0,  0,201) #FF0000C9 srgba(255,0,0,0.788235)
         5: (255,  0,  0,140) #FF00008C srgba(255,0,0,0.54902)
         5: (255,  0,  0,139) #FF00008B srgba(255,0,0,0.545098)
         5: (255,  0,  0, 97) #FF000061 srgba(255,0,0,0.380392)
         5: (255,  0,  0,226) #FF0000E2 srgba(255,0,0,0.886275)
         5: (255,  0,  0,221) #FF0000DD srgba(255,0,0,0.866667)
         5: (255,  0,  0,194) #FF0000C2 srgba(255,0,0,0.760784)
         5: (255,  0,  0,170) #FF0000AA srgba(255,0,0,0.666667)
         5: (255,  0,  0, 40) #FF000028 srgba(255,0,0,0.156863)
         5: (255,  0,  0, 41) #FF000029 srgba(255,0,0,0.160784)
         5: (255,  0,  0,130) #FF000082 srgba(255,0,0,0.509804)
         5: (255,  0,  0,115) #FF000073 srgba(255,0,0,0.45098)
         5: (255,  0,  0,195) #FF0000C3 srgba(255,0,0,0.764706)
         5: (255,  0,  0,129) #FF000081 srgba(255,0,0,0.505882)
         5: (255,  0,  0,224) #FF0000E0 srgba(255,0,0,0.878431)
         5: (255,  0,  0, 45) #FF00002D srgba(255,0,0,0.176471)
         5: (255,  0,  0, 71) #FF000047 srgba(255,0,0,0.278431)
         5: (255,  0,  0,177) #FF0000B1 srgba(255,0,0,0.694118)
         5: (255,  0,  0,119) #FF000077 srgba(255,0,0,0.466667)
         5: (255,  0,  0, 84) #FF000054 srgba(255,0,0,0.329412)
         5: (255,  0,  0,215) #FF0000D7 srgba(255,0,0,0.843137)
         5: (255,  0,  0, 75) #FF00004B srgba(255,0,0,0.294118)
         4: (255,  0,  0,123) #FF00007B srgba(255,0,0,0.482353)
         4: (255,  0,  0,230) #FF0000E6 srgba(255,0,0,0.901961)
         4: (255,  0,  0, 51) #FF000033 srgba(255,0,0,0.2)
         4: (255,  0,  0,231) #FF0000E7 srgba(255,0,0,0.905882)
         4: (255,  0,  0, 50) #FF000032 srgba(255,0,0,0.196078)
         4: (255,  0,  0,112) #FF000070 srgba(255,0,0,0.439216)
         4: (255,  0,  0,137) #FF000089 srgba(255,0,0,0.537255)
         4: (255,  0,  0,111) #FF00006F srgba(255,0,0,0.435294)
         4: (255,  0,  0,217) #FF0000D9 srgba(255,0,0,0.85098)
         4: (255,  0,  0,200) #FF0000C8 srgba(255,0,0,0.784314)
         4: (255,  0,  0,227) #FF0000E3 srgba(255,0,0,0.890196)
         4: (255,  0,  0,146) #FF000092 srgba(255,0,0,0.572549)
         4: (255,  0,  0,216) #FF0000D8 srgba(255,0,0,0.847059)
         4: (255,  0,  0,213) #FF0000D5 srgba(255,0,0,0.835294)
         4: (255,  0,  0,211) #FF0000D3 srgba(255,0,0,0.827451)
         4: (255,  0,  0,166) #FF0000A6 srgba(255,0,0,0.65098)
         4: (255,  0,  0, 60) #FF00003C srgba(255,0,0,0.235294)
         4: (255,  0,  0,182) #FF0000B6 srgba(255,0,0,0.713725)
         4: (255,  0,  0, 99) #FF000063 srgba(255,0,0,0.388235)
         4: (255,  0,  0, 61) #FF00003D srgba(255,0,0,0.239216)
         4: (255,  0,  0,169) #FF0000A9 srgba(255,0,0,0.662745)
         4: (255,  0,  0, 95) #FF00005F srgba(255,0,0,0.372549)
         4: (255,  0,  0,171) #FF0000AB srgba(255,0,0,0.670588)
         4: (255,  0,  0, 63) #FF00003F srgba(255,0,0,0.247059)
         4: (255,  0,  0, 62) #FF00003E srgba(255,0,0,0.243137)
         4: (255,  0,  0,207) #FF0000CF srgba(255,0,0,0.811765)
         4: (255,  0,  0, 68) #FF000044 srgba(255,0,0,0.266667)
         4: (255,  0,  0,206) #FF0000CE srgba(255,0,0,0.807843)
         4: (255,  0,  0, 89) #FF000059 srgba(255,0,0,0.34902)
         4: (255,  0,  0, 87) #FF000057 srgba(255,0,0,0.341176)
         4: (255,  0,  0, 73) #FF000049 srgba(255,0,0,0.286275)
         4: (255,  0,  0,228) #FF0000E4 srgba(255,0,0,0.894118)
         4: (255,  0,  0,178) #FF0000B2 srgba(255,0,0,0.698039)
         4: (255,  0,  0, 82) #FF000052 srgba(255,0,0,0.321569)
         4: (255,  0,  0,122) #FF00007A srgba(255,0,0,0.478431)
         4: (255,  0,  0, 80) #FF000050 srgba(255,0,0,0.313725)
         4: (255,  0,  0,180) #FF0000B4 srgba(255,0,0,0.705882)
         4: (255,  0,  0,219) #FF0000DB srgba(255,0,0,0.858824)
         3: (255,  0,  0,190) #FF0000BE srgba(255,0,0,0.745098)
         3: (255,  0,  0,159) #FF00009F srgba(255,0,0,0.623529)
         3: (255,  0,  0,156) #FF00009C srgba(255,0,0,0.611765)
         3: (255,  0,  0,208) #FF0000D0 srgba(255,0,0,0.815686)
         3: (255,  0,  0,147) #FF000093 srgba(255,0,0,0.576471)
         3: (255,  0,  0, 85) #FF000055 srgba(255,0,0,0.333333)
         3: (255,  0,  0, 86) #FF000056 srgba(255,0,0,0.337255)
         3: (255,  0,  0,145) #FF000091 srgba(255,0,0,0.568627)
         3: (255,  0,  0, 88) #FF000058 srgba(255,0,0,0.345098)
         3: (255,  0,  0, 35) #FF000023 srgba(255,0,0,0.137255)
         3: (255,  0,  0,142) #FF00008E srgba(255,0,0,0.556863)
         3: (255,  0,  0, 90) #FF00005A srgba(255,0,0,0.352941)
         3: (255,  0,  0,237) #FF0000ED srgba(255,0,0,0.929412)
         3: (255,  0,  0, 65) #FF000041 srgba(255,0,0,0.254902)
         3: (255,  0,  0,198) #FF0000C6 srgba(255,0,0,0.776471)
         3: (255,  0,  0,191) #FF0000BF srgba(255,0,0,0.74902)
         3: (255,  0,  0,131) #FF000083 srgba(255,0,0,0.513725)
         3: (255,  0,  0,127) #FF00007F srgba(255,0,0,0.498039)
         3: (255,  0,  0,124) #FF00007C srgba(255,0,0,0.486275)
         3: (255,  0,  0,118) #FF000076 srgba(255,0,0,0.462745)
         3: (255,  0,  0,173) #FF0000AD srgba(255,0,0,0.678431)
         3: (255,  0,  0,105) #FF000069 srgba(255,0,0,0.411765)
         3: (255,  0,  0,114) #FF000072 srgba(255,0,0,0.447059)
         3: (255,  0,  0, 54) #FF000036 srgba(255,0,0,0.211765)
         3: (255,  0,  0, 53) #FF000035 srgba(255,0,0,0.207843)
         3: (255,  0,  0,110) #FF00006E srgba(255,0,0,0.431373)
         2: (255,  0,  0, 55) #FF000037 srgba(255,0,0,0.215686)
         2: (255,  0,  0, 57) #FF000039 srgba(255,0,0,0.223529)
         2: (255,  0,  0,103) #FF000067 srgba(255,0,0,0.403922)
         2: (255,  0,  0,239) #FF0000EF srgba(255,0,0,0.937255)
         2: (255,  0,  0,121) #FF000079 srgba(255,0,0,0.47451)
         2: (255,  0,  0,120) #FF000078 srgba(255,0,0,0.470588)
         2: (255,  0,  0,125) #FF00007D srgba(255,0,0,0.490196)
         2: (255,  0,  0,196) #FF0000C4 srgba(255,0,0,0.768627)
         2: (255,  0,  0,199) #FF0000C7 srgba(255,0,0,0.780392)
         2: (255,  0,  0,128) #FF000080 srgba(255,0,0,0.501961)
         2: (255,  0,  0, 93) #FF00005D srgba(255,0,0,0.364706)
         2: (255,  0,  0, 92) #FF00005C srgba(255,0,0,0.360784)
         2: (255,  0,  0,132) #FF000084 srgba(255,0,0,0.517647)
         2: (255,  0,  0,134) #FF000086 srgba(255,0,0,0.52549)
         2: (255,  0,  0,136) #FF000088 srgba(255,0,0,0.533333)
         2: (255,  0,  0, 67) #FF000043 srgba(255,0,0,0.262745)
         2: (255,  0,  0, 37) #FF000025 srgba(255,0,0,0.145098)
         2: (255,  0,  0, 69) #FF000045 srgba(255,0,0,0.270588)
         2: (255,  0,  0,203) #FF0000CB srgba(255,0,0,0.796078)
         2: (255,  0,  0, 70) #FF000046 srgba(255,0,0,0.27451)
         2: (255,  0,  0, 83) #FF000053 srgba(255,0,0,0.32549)
         2: (255,  0,  0,148) #FF000094 srgba(255,0,0,0.580392)
         2: (255,  0,  0,149) #FF000095 srgba(255,0,0,0.584314)
         2: (255,  0,  0,185) #FF0000B9 srgba(255,0,0,0.72549)
         2: (255,  0,  0,183) #FF0000B7 srgba(255,0,0,0.717647)
         2: (255,  0,  0,181) #FF0000B5 srgba(255,0,0,0.709804)
         2: (255,  0,  0,175) #FF0000AF srgba(255,0,0,0.686275)
         2: (255,  0,  0,212) #FF0000D4 srgba(255,0,0,0.831373)
         2: (255,  0,  0,218) #FF0000DA srgba(255,0,0,0.854902)
         2: (255,  0,  0,160) #FF0000A0 srgba(255,0,0,0.627451)
         2: (255,  0,  0, 79) #FF00004F srgba(255,0,0,0.309804)
         1: (255,  0,  0,168) #FF0000A8 srgba(255,0,0,0.658824)
         1: (255,  0,  0,164) #FF0000A4 srgba(255,0,0,0.643137)
         1: (255,  0,  0,154) #FF00009A srgba(255,0,0,0.603922)
         1: (255,  0,  0,152) #FF000098 srgba(255,0,0,0.596078)
         1: (255,  0,  0,151) #FF000097 srgba(255,0,0,0.592157)
         1: (255,  0,  0,150) #FF000096 srgba(255,0,0,0.588235)
         1: (255,  0,  0,184) #FF0000B8 srgba(255,0,0,0.721569)
         1: (255,  0,  0,138) #FF00008A srgba(255,0,0,0.541176)
         1: (255,  0,  0,189) #FF0000BD srgba(255,0,0,0.741176)
         1: (255,  0,  0,133) #FF000085 srgba(255,0,0,0.521569)
         1: (255,  0,  0,117) #FF000075 srgba(255,0,0,0.458824)
         1: (255,  0,  0,102) #FF000066 srgba(255,0,0,0.4)
         1: (255,  0,  0,100) #FF000064 srgba(255,0,0,0.392157)
         1: (255,  0,  0,197) #FF0000C5 srgba(255,0,0,0.772549)
         1: (255,  0,  0, 96) #FF000060 srgba(255,0,0,0.376471)
         1: (255,  0,  0, 64) #FF000040 srgba(255,0,0,0.25098)
         1: (255,  0,  0, 91) #FF00005B srgba(255,0,0,0.356863)
         1: (255,  0,  0,204) #FF0000CC srgba(255,0,0,0.8)
         1: (255,  0,  0,209) #FF0000D1 srgba(255,0,0,0.819608)
         1: (255,  0,  0, 81) #FF000051 srgba(255,0,0,0.317647)
         1: (255,  0,  0, 77) #FF00004D srgba(255,0,0,0.301961)
         1: (255,  0,  0, 76) #FF00004C srgba(255,0,0,0.298039)
     14506: (255,255,255,  0) #FFFFFF00 srgba(255,255,255,0)
  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)
  Background color: white
  Border color: srgba(223,223,223,1)
  Matte color: grey74
  Transparent color: none
  Interlace: None
  Intensity: Undefined
  Compose: Over
  Page geometry: 200x200+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: Zip
  Orientation: Undefined
  Properties:
    date:create: 2017-07-05T19:40:38-07:00
    date:modify: 2017-07-05T19:40:38-07:00
    png:IHDR.bit-depth-orig: 8
    png:IHDR.bit_depth: 8
    png:IHDR.color-type-orig: 6
    png:IHDR.color_type: 6 (RGBA)
    png:IHDR.interlace_method: 0 (Not interlaced)
    png:IHDR.width,height: 200, 200
    png:sRGB: intent=0 (Perceptual Intent)
    png:text: 1 tEXt/zTXt/iTXt chunks were found
    signature: 423bfcc8495a382e46e478dfd7204d44832dd065fe07b6061be18bb5f6c5b4ea
    Software: Adobe ImageReady
  Artifacts:
    filename: D:\z\TestLayer.png
    verbose: true
  Tainted: False
  Filesize: 5.39KB
  Number pixels: 40K
  Pixels per second: 13.34MB
  User time: 0.000u
  Elapsed time: 0:01.002
  Version: ImageMagick 6.8.6-8 2013-08-04 Q16 http://www.imagemagick.org

Code: Select all

Image: D:\z\TestLayer_200.png
  Format: PNG (Portable Network Graphics)
  Class: DirectClass
  Geometry: 200x200+0+0
  Units: Undefined
  Type: PaletteAlpha
  Endianess: Undefined
  Colorspace: sRGB
  Depth: 8-bit
  Channel depth:
    red: 1-bit
    green: 1-bit
    blue: 1-bit
    alpha: 8-bit
  Channel statistics:
    Red:
      min: 255 (1)
      max: 255 (1)
      mean: 255 (1)
      standard deviation: 0 (0)
      kurtosis: 0
      skewness: 0
    Green:
      min: 0 (0)
      max: 255 (1)
      mean: 92.4757 (0.36265)
      standard deviation: 122.595 (0.480765)
      kurtosis: -1.67352
      skewness: 0.571381
    Blue:
      min: 0 (0)
      max: 255 (1)
      mean: 92.4757 (0.36265)
      standard deviation: 122.595 (0.480765)
      kurtosis: -1.67352
      skewness: 0.571381
    Alpha:
      min: 0 (0)
      max: 255 (1)
      mean: 130.95 (0.513528)
      standard deviation: 126.288 (0.495247)
      kurtosis: -1.98386
      skewness: 0.0529741
  Image statistics:
    Overall:
      min: 0 (0)
      max: 255 (1)
      mean: 141 (0.552943)
      standard deviation: 107.247 (0.420577)
      kurtosis: -0.970374
      skewness: -0.349883
  Alpha: srgba(255,255,255,0)   #FFFFFF00
  Colors: 251
  Histogram:
     19814: (255,  0,  0,255) #FF0000 red
      4028: (255,  0,  0,  0) #FF000000 srgba(255,0,0,0)
        80: (255,  0,  0,254) #FF0000FE srgba(255,0,0,0.996078)
        79: (255,  0,  0,  1) #FF000001 srgba(255,0,0,0.00392157)
        61: (255,  0,  0,  2) #FF000002 srgba(255,0,0,0.00784314)
        36: (255,  0,  0,253) #FF0000FD srgba(255,0,0,0.992157)
        31: (255,  0,  0,  3) #FF000003 srgba(255,0,0,0.0117647)
        31: (255,  0,  0,  7) #FF000007 srgba(255,0,0,0.027451)
        29: (255,  0,  0,  4) #FF000004 srgba(255,0,0,0.0156863)
        27: (255,  0,  0,  6) #FF000006 srgba(255,0,0,0.0235294)
        24: (255,  0,  0,  5) #FF000005 srgba(255,0,0,0.0196078)
        22: (255,  0,  0,  8) #FF000008 srgba(255,0,0,0.0313725)
        21: (255,  0,  0,251) #FF0000FB srgba(255,0,0,0.984314)
        18: (255,  0,  0,252) #FF0000FC srgba(255,0,0,0.988235)
        16: (255,  0,  0,248) #FF0000F8 srgba(255,0,0,0.972549)
        14: (255,  0,  0,  9) #FF000009 srgba(255,0,0,0.0352941)
        14: (255,  0,  0,250) #FF0000FA srgba(255,0,0,0.980392)
        14: (255,  0,  0, 10) #FF00000A srgba(255,0,0,0.0392157)
        14: (255,  0,  0, 11) #FF00000B srgba(255,0,0,0.0431373)
        14: (255,  0,  0, 21) #FF000015 srgba(255,0,0,0.0823529)
        14: (255,  0,  0, 43) #FF00002B srgba(255,0,0,0.168627)
        13: (255,  0,  0, 17) #FF000011 srgba(255,0,0,0.0666667)
        12: (255,  0,  0, 15) #FF00000F srgba(255,0,0,0.0588235)
        12: (255,  0,  0, 16) #FF000010 srgba(255,0,0,0.0627451)
        12: (255,  0,  0, 14) #FF00000E srgba(255,0,0,0.054902)
        12: (255,  0,  0,126) #FF00007E srgba(255,0,0,0.494118)
        11: (255,  0,  0, 13) #FF00000D srgba(255,0,0,0.0509804)
        11: (255,  0,  0,247) #FF0000F7 srgba(255,0,0,0.968627)
        11: (255,  0,  0,249) #FF0000F9 srgba(255,0,0,0.976471)
        11: (255,  0,  0,245) #FF0000F5 srgba(255,0,0,0.960784)
        11: (255,  0,  0, 20) #FF000014 srgba(255,0,0,0.0784314)
        10: (255,  0,  0,210) #FF0000D2 srgba(255,0,0,0.823529)
        10: (255,  0,  0, 24) #FF000018 srgba(255,0,0,0.0941176)
        10: (255,  0,  0, 49) #FF000031 srgba(255,0,0,0.192157)
        10: (255,  0,  0, 42) #FF00002A srgba(255,0,0,0.164706)
        10: (255,  0,  0,243) #FF0000F3 srgba(255,0,0,0.952941)
        10: (255,  0,  0, 72) #FF000048 srgba(255,0,0,0.282353)
         9: (255,  0,  0, 34) #FF000022 srgba(255,0,0,0.133333)
         9: (255,  0,  0,174) #FF0000AE srgba(255,0,0,0.682353)
         9: (255,  0,  0, 31) #FF00001F srgba(255,0,0,0.121569)
         9: (255,  0,  0,240) #FF0000F0 srgba(255,0,0,0.941176)
         9: (255,  0,  0, 25) #FF000019 srgba(255,0,0,0.0980392)
         9: (255,  0,  0, 12) #FF00000C srgba(255,0,0,0.0470588)
         9: (255,  0,  0, 36) #FF000024 srgba(255,0,0,0.141176)
         9: (255,  0,  0, 46) #FF00002E srgba(255,0,0,0.180392)
         8: (255,  0,  0, 30) #FF00001E srgba(255,0,0,0.117647)
         8: (255,  0,  0,246) #FF0000F6 srgba(255,0,0,0.964706)
         8: (255,  0,  0, 39) #FF000027 srgba(255,0,0,0.152941)
         8: (255,  0,  0, 47) #FF00002F srgba(255,0,0,0.184314)
         8: (255,  0,  0,223) #FF0000DF srgba(255,0,0,0.87451)
         8: (255,  0,  0,179) #FF0000B3 srgba(255,0,0,0.701961)
         8: (255,  0,  0, 19) #FF000013 srgba(255,0,0,0.0745098)
         8: (255,  0,  0,235) #FF0000EB srgba(255,0,0,0.921569)
         8: (255,  0,  0, 52) #FF000034 srgba(255,0,0,0.203922)
         8: (255,  0,  0,107) #FF00006B srgba(255,0,0,0.419608)
         8: (255,  0,  0, 27) #FF00001B srgba(255,0,0,0.105882)
         8: (255,  0,  0,229) #FF0000E5 srgba(255,0,0,0.898039)
         7: (255,  0,  0,242) #FF0000F2 srgba(255,0,0,0.94902)
         7: (255,  0,  0, 98) #FF000062 srgba(255,0,0,0.384314)
         7: (255,  0,  0,238) #FF0000EE srgba(255,0,0,0.933333)
         7: (255,  0,  0,220) #FF0000DC srgba(255,0,0,0.862745)
         7: (255,  0,  0,135) #FF000087 srgba(255,0,0,0.529412)
         7: (255,  0,  0, 78) #FF00004E srgba(255,0,0,0.305882)
         7: (255,  0,  0,236) #FF0000EC srgba(255,0,0,0.92549)
         7: (255,  0,  0,141) #FF00008D srgba(255,0,0,0.552941)
         7: (255,  0,  0,144) #FF000090 srgba(255,0,0,0.564706)
         7: (255,  0,  0, 33) #FF000021 srgba(255,0,0,0.129412)
         7: (255,  0,  0, 28) #FF00001C srgba(255,0,0,0.109804)
         7: (255,  0,  0, 23) #FF000017 srgba(255,0,0,0.0901961)
         7: (255,  0,  0,234) #FF0000EA srgba(255,0,0,0.917647)
         7: (255,  0,  0,232) #FF0000E8 srgba(255,0,0,0.909804)
         7: (255,  0,  0, 18) #FF000012 srgba(255,0,0,0.0705882)
         7: (255,  0,  0,205) #FF0000CD srgba(255,0,0,0.803922)
         7: (255,  0,  0,244) #FF0000F4 srgba(255,0,0,0.956863)
         6: (255,  0,  0, 74) #FF00004A srgba(255,0,0,0.290196)
         6: (255,  0,  0, 48) #FF000030 srgba(255,0,0,0.188235)
         6: (255,  0,  0,176) #FF0000B0 srgba(255,0,0,0.690196)
         6: (255,  0,  0,222) #FF0000DE srgba(255,0,0,0.870588)
         6: (255,  0,  0, 44) #FF00002C srgba(255,0,0,0.172549)
         6: (255,  0,  0,233) #FF0000E9 srgba(255,0,0,0.913725)
         6: (255,  0,  0,172) #FF0000AC srgba(255,0,0,0.67451)
         6: (255,  0,  0, 66) #FF000042 srgba(255,0,0,0.258824)
         6: (255,  0,  0, 94) #FF00005E srgba(255,0,0,0.368627)
         6: (255,  0,  0, 38) #FF000026 srgba(255,0,0,0.14902)
         6: (255,  0,  0,193) #FF0000C1 srgba(255,0,0,0.756863)
         6: (255,  0,  0,241) #FF0000F1 srgba(255,0,0,0.945098)
         6: (255,  0,  0, 59) #FF00003B srgba(255,0,0,0.231373)
         6: (255,  0,  0,109) #FF00006D srgba(255,0,0,0.427451)
         6: (255,  0,  0,143) #FF00008F srgba(255,0,0,0.560784)
         6: (255,  0,  0,108) #FF00006C srgba(255,0,0,0.423529)
         6: (255,  0,  0,225) #FF0000E1 srgba(255,0,0,0.882353)
         6: (255,  0,  0, 29) #FF00001D srgba(255,0,0,0.113725)
         6: (255,  0,  0, 22) #FF000016 srgba(255,0,0,0.0862745)
         6: (255,  0,  0,155) #FF00009B srgba(255,0,0,0.607843)
         6: (255,  0,  0, 56) #FF000038 srgba(255,0,0,0.219608)
         5: (255,  0,  0,157) #FF00009D srgba(255,0,0,0.615686)
         5: (255,  0,  0, 58) #FF00003A srgba(255,0,0,0.227451)
         5: (255,  0,  0,158) #FF00009E srgba(255,0,0,0.619608)
         5: (255,  0,  0,214) #FF0000D6 srgba(255,0,0,0.839216)
         5: (255,  0,  0,153) #FF000099 srgba(255,0,0,0.6)
         5: (255,  0,  0, 26) #FF00001A srgba(255,0,0,0.101961)
         5: (255,  0,  0,161) #FF0000A1 srgba(255,0,0,0.631373)
         5: (255,  0,  0,187) #FF0000BB srgba(255,0,0,0.733333)
         5: (255,  0,  0,162) #FF0000A2 srgba(255,0,0,0.635294)
         5: (255,  0,  0,104) #FF000068 srgba(255,0,0,0.407843)
         5: (255,  0,  0,106) #FF00006A srgba(255,0,0,0.415686)
         5: (255,  0,  0,186) #FF0000BA srgba(255,0,0,0.729412)
         5: (255,  0,  0,163) #FF0000A3 srgba(255,0,0,0.639216)
         5: (255,  0,  0, 32) #FF000020 srgba(255,0,0,0.12549)
         5: (255,  0,  0,202) #FF0000CA srgba(255,0,0,0.792157)
         5: (255,  0,  0,167) #FF0000A7 srgba(255,0,0,0.654902)
         5: (255,  0,  0,201) #FF0000C9 srgba(255,0,0,0.788235)
         5: (255,  0,  0,140) #FF00008C srgba(255,0,0,0.54902)
         5: (255,  0,  0,139) #FF00008B srgba(255,0,0,0.545098)
         5: (255,  0,  0, 97) #FF000061 srgba(255,0,0,0.380392)
         5: (255,  0,  0,226) #FF0000E2 srgba(255,0,0,0.886275)
         5: (255,  0,  0,221) #FF0000DD srgba(255,0,0,0.866667)
         5: (255,  0,  0,194) #FF0000C2 srgba(255,0,0,0.760784)
         5: (255,  0,  0,170) #FF0000AA srgba(255,0,0,0.666667)
         5: (255,  0,  0, 40) #FF000028 srgba(255,0,0,0.156863)
         5: (255,  0,  0, 41) #FF000029 srgba(255,0,0,0.160784)
         5: (255,  0,  0,130) #FF000082 srgba(255,0,0,0.509804)
         5: (255,  0,  0,115) #FF000073 srgba(255,0,0,0.45098)
         5: (255,  0,  0,195) #FF0000C3 srgba(255,0,0,0.764706)
         5: (255,  0,  0,129) #FF000081 srgba(255,0,0,0.505882)
         5: (255,  0,  0,224) #FF0000E0 srgba(255,0,0,0.878431)
         5: (255,  0,  0, 45) #FF00002D srgba(255,0,0,0.176471)
         5: (255,  0,  0, 71) #FF000047 srgba(255,0,0,0.278431)
         5: (255,  0,  0,177) #FF0000B1 srgba(255,0,0,0.694118)
         5: (255,  0,  0,119) #FF000077 srgba(255,0,0,0.466667)
         5: (255,  0,  0, 84) #FF000054 srgba(255,0,0,0.329412)
         5: (255,  0,  0,215) #FF0000D7 srgba(255,0,0,0.843137)
         5: (255,  0,  0, 75) #FF00004B srgba(255,0,0,0.294118)
         4: (255,  0,  0,123) #FF00007B srgba(255,0,0,0.482353)
         4: (255,  0,  0,230) #FF0000E6 srgba(255,0,0,0.901961)
         4: (255,  0,  0, 51) #FF000033 srgba(255,0,0,0.2)
         4: (255,  0,  0,231) #FF0000E7 srgba(255,0,0,0.905882)
         4: (255,  0,  0, 50) #FF000032 srgba(255,0,0,0.196078)
         4: (255,  0,  0,112) #FF000070 srgba(255,0,0,0.439216)
         4: (255,  0,  0,137) #FF000089 srgba(255,0,0,0.537255)
         4: (255,  0,  0,111) #FF00006F srgba(255,0,0,0.435294)
         4: (255,  0,  0,217) #FF0000D9 srgba(255,0,0,0.85098)
         4: (255,  0,  0,200) #FF0000C8 srgba(255,0,0,0.784314)
         4: (255,  0,  0,227) #FF0000E3 srgba(255,0,0,0.890196)
         4: (255,  0,  0,146) #FF000092 srgba(255,0,0,0.572549)
         4: (255,  0,  0,216) #FF0000D8 srgba(255,0,0,0.847059)
         4: (255,  0,  0,213) #FF0000D5 srgba(255,0,0,0.835294)
         4: (255,  0,  0,211) #FF0000D3 srgba(255,0,0,0.827451)
         4: (255,  0,  0,166) #FF0000A6 srgba(255,0,0,0.65098)
         4: (255,  0,  0, 60) #FF00003C srgba(255,0,0,0.235294)
         4: (255,  0,  0,182) #FF0000B6 srgba(255,0,0,0.713725)
         4: (255,  0,  0, 99) #FF000063 srgba(255,0,0,0.388235)
         4: (255,  0,  0, 61) #FF00003D srgba(255,0,0,0.239216)
         4: (255,  0,  0,169) #FF0000A9 srgba(255,0,0,0.662745)
         4: (255,  0,  0, 95) #FF00005F srgba(255,0,0,0.372549)
         4: (255,  0,  0,171) #FF0000AB srgba(255,0,0,0.670588)
         4: (255,  0,  0, 63) #FF00003F srgba(255,0,0,0.247059)
         4: (255,  0,  0, 62) #FF00003E srgba(255,0,0,0.243137)
         4: (255,  0,  0,207) #FF0000CF srgba(255,0,0,0.811765)
         4: (255,  0,  0, 68) #FF000044 srgba(255,0,0,0.266667)
         4: (255,  0,  0,206) #FF0000CE srgba(255,0,0,0.807843)
         4: (255,  0,  0, 89) #FF000059 srgba(255,0,0,0.34902)
         4: (255,  0,  0, 87) #FF000057 srgba(255,0,0,0.341176)
         4: (255,  0,  0, 73) #FF000049 srgba(255,0,0,0.286275)
         4: (255,  0,  0,228) #FF0000E4 srgba(255,0,0,0.894118)
         4: (255,  0,  0,178) #FF0000B2 srgba(255,0,0,0.698039)
         4: (255,  0,  0, 82) #FF000052 srgba(255,0,0,0.321569)
         4: (255,  0,  0,122) #FF00007A srgba(255,0,0,0.478431)
         4: (255,  0,  0, 80) #FF000050 srgba(255,0,0,0.313725)
         4: (255,  0,  0,180) #FF0000B4 srgba(255,0,0,0.705882)
         4: (255,  0,  0,219) #FF0000DB srgba(255,0,0,0.858824)
         3: (255,  0,  0,190) #FF0000BE srgba(255,0,0,0.745098)
         3: (255,  0,  0,159) #FF00009F srgba(255,0,0,0.623529)
         3: (255,  0,  0,156) #FF00009C srgba(255,0,0,0.611765)
         3: (255,  0,  0,208) #FF0000D0 srgba(255,0,0,0.815686)
         3: (255,  0,  0,147) #FF000093 srgba(255,0,0,0.576471)
         3: (255,  0,  0, 85) #FF000055 srgba(255,0,0,0.333333)
         3: (255,  0,  0, 86) #FF000056 srgba(255,0,0,0.337255)
         3: (255,  0,  0,145) #FF000091 srgba(255,0,0,0.568627)
         3: (255,  0,  0, 88) #FF000058 srgba(255,0,0,0.345098)
         3: (255,  0,  0, 35) #FF000023 srgba(255,0,0,0.137255)
         3: (255,  0,  0,142) #FF00008E srgba(255,0,0,0.556863)
         3: (255,  0,  0, 90) #FF00005A srgba(255,0,0,0.352941)
         3: (255,  0,  0,237) #FF0000ED srgba(255,0,0,0.929412)
         3: (255,  0,  0, 65) #FF000041 srgba(255,0,0,0.254902)
         3: (255,  0,  0,198) #FF0000C6 srgba(255,0,0,0.776471)
         3: (255,  0,  0,191) #FF0000BF srgba(255,0,0,0.74902)
         3: (255,  0,  0,131) #FF000083 srgba(255,0,0,0.513725)
         3: (255,  0,  0,127) #FF00007F srgba(255,0,0,0.498039)
         3: (255,  0,  0,124) #FF00007C srgba(255,0,0,0.486275)
         3: (255,  0,  0,118) #FF000076 srgba(255,0,0,0.462745)
         3: (255,  0,  0,173) #FF0000AD srgba(255,0,0,0.678431)
         3: (255,  0,  0,105) #FF000069 srgba(255,0,0,0.411765)
         3: (255,  0,  0,114) #FF000072 srgba(255,0,0,0.447059)
         3: (255,  0,  0, 54) #FF000036 srgba(255,0,0,0.211765)
         3: (255,  0,  0, 53) #FF000035 srgba(255,0,0,0.207843)
         3: (255,  0,  0,110) #FF00006E srgba(255,0,0,0.431373)
         2: (255,  0,  0, 55) #FF000037 srgba(255,0,0,0.215686)
         2: (255,  0,  0, 57) #FF000039 srgba(255,0,0,0.223529)
         2: (255,  0,  0,103) #FF000067 srgba(255,0,0,0.403922)
         2: (255,  0,  0,239) #FF0000EF srgba(255,0,0,0.937255)
         2: (255,  0,  0,121) #FF000079 srgba(255,0,0,0.47451)
         2: (255,  0,  0,120) #FF000078 srgba(255,0,0,0.470588)
         2: (255,  0,  0,125) #FF00007D srgba(255,0,0,0.490196)
         2: (255,  0,  0,196) #FF0000C4 srgba(255,0,0,0.768627)
         2: (255,  0,  0,199) #FF0000C7 srgba(255,0,0,0.780392)
         2: (255,  0,  0,128) #FF000080 srgba(255,0,0,0.501961)
         2: (255,  0,  0, 93) #FF00005D srgba(255,0,0,0.364706)
         2: (255,  0,  0, 92) #FF00005C srgba(255,0,0,0.360784)
         2: (255,  0,  0,132) #FF000084 srgba(255,0,0,0.517647)
         2: (255,  0,  0,134) #FF000086 srgba(255,0,0,0.52549)
         2: (255,  0,  0,136) #FF000088 srgba(255,0,0,0.533333)
         2: (255,  0,  0, 67) #FF000043 srgba(255,0,0,0.262745)
         2: (255,  0,  0, 37) #FF000025 srgba(255,0,0,0.145098)
         2: (255,  0,  0, 69) #FF000045 srgba(255,0,0,0.270588)
         2: (255,  0,  0,203) #FF0000CB srgba(255,0,0,0.796078)
         2: (255,  0,  0, 70) #FF000046 srgba(255,0,0,0.27451)
         2: (255,  0,  0, 83) #FF000053 srgba(255,0,0,0.32549)
         2: (255,  0,  0,148) #FF000094 srgba(255,0,0,0.580392)
         2: (255,  0,  0,149) #FF000095 srgba(255,0,0,0.584314)
         2: (255,  0,  0,185) #FF0000B9 srgba(255,0,0,0.72549)
         2: (255,  0,  0,183) #FF0000B7 srgba(255,0,0,0.717647)
         2: (255,  0,  0,181) #FF0000B5 srgba(255,0,0,0.709804)
         2: (255,  0,  0,175) #FF0000AF srgba(255,0,0,0.686275)
         2: (255,  0,  0,212) #FF0000D4 srgba(255,0,0,0.831373)
         2: (255,  0,  0,218) #FF0000DA srgba(255,0,0,0.854902)
         2: (255,  0,  0,160) #FF0000A0 srgba(255,0,0,0.627451)
         2: (255,  0,  0, 79) #FF00004F srgba(255,0,0,0.309804)
         1: (255,  0,  0,168) #FF0000A8 srgba(255,0,0,0.658824)
         1: (255,  0,  0,164) #FF0000A4 srgba(255,0,0,0.643137)
         1: (255,  0,  0,154) #FF00009A srgba(255,0,0,0.603922)
         1: (255,  0,  0,152) #FF000098 srgba(255,0,0,0.596078)
         1: (255,  0,  0,151) #FF000097 srgba(255,0,0,0.592157)
         1: (255,  0,  0,150) #FF000096 srgba(255,0,0,0.588235)
         1: (255,  0,  0,184) #FF0000B8 srgba(255,0,0,0.721569)
         1: (255,  0,  0,138) #FF00008A srgba(255,0,0,0.541176)
         1: (255,  0,  0,189) #FF0000BD srgba(255,0,0,0.741176)
         1: (255,  0,  0,133) #FF000085 srgba(255,0,0,0.521569)
         1: (255,  0,  0,117) #FF000075 srgba(255,0,0,0.458824)
         1: (255,  0,  0,102) #FF000066 srgba(255,0,0,0.4)
         1: (255,  0,  0,100) #FF000064 srgba(255,0,0,0.392157)
         1: (255,  0,  0,197) #FF0000C5 srgba(255,0,0,0.772549)
         1: (255,  0,  0, 96) #FF000060 srgba(255,0,0,0.376471)
         1: (255,  0,  0, 64) #FF000040 srgba(255,0,0,0.25098)
         1: (255,  0,  0, 91) #FF00005B srgba(255,0,0,0.356863)
         1: (255,  0,  0,204) #FF0000CC srgba(255,0,0,0.8)
         1: (255,  0,  0,209) #FF0000D1 srgba(255,0,0,0.819608)
         1: (255,  0,  0, 81) #FF000051 srgba(255,0,0,0.317647)
         1: (255,  0,  0, 77) #FF00004D srgba(255,0,0,0.301961)
         1: (255,  0,  0, 76) #FF00004C srgba(255,0,0,0.298039)
     14506: (255,255,255,  0) #FFFFFF00 srgba(255,255,255,0)
  Rendering intent: Perceptual
  Gamma: 0.45455
  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)
  Background color: white
  Border color: srgba(223,223,223,1)
  Matte color: grey74
  Transparent color: none
  Interlace: None
  Intensity: Undefined
  Compose: Over
  Page geometry: 200x200+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: Zip
  Orientation: Undefined
  Properties:
    date:create: 2017-07-05T19:40:38-07:00
    date:modify: 2017-07-05T19:40:38-07:00
    png:bKGD: chunk was found (see Background color, above)
    png:cHRM: chunk was found (see Chromaticity, above)
    png:gAMA: gamma=0.45454544 (See Gamma, above)
    png:IHDR.bit-depth-orig: 8
    png:IHDR.bit_depth: 8
    png:IHDR.color-type-orig: 3
    png:IHDR.color_type: 3 (Indexed)
    png:IHDR.interlace_method: 0 (Not interlaced)
    png:IHDR.width,height: 200, 200
    png:PLTE.number_colors: 252
    png:sRGB: intent=0 (Perceptual Intent)
    png:text: 3 tEXt/zTXt/iTXt chunks were found
    png:tRNS: chunk was found
    signature: 423bfcc8495a382e46e478dfd7204d44832dd065fe07b6061be18bb5f6c5b4ea
    Software: Adobe ImageReady
  Artifacts:
    filename: D:\z\TestLayer_200.png
    verbose: true
  Tainted: False
  Filesize: 3.99KB
  Number pixels: 40K
  Pixels per second: 7.998MB
  User time: 0.016u
  Elapsed time: 0:01.005
  Version: ImageMagick 6.8.6-8 2013-08-04 Q16 http://www.imagemagick.org
I think you mean

Code: Select all

Identify list format 

Code: Select all

Format  Module    Mode  Description
-------------------------------------------------------------------------------
      3FR  DNG       r--   Hasselblad CFV/H3D39II
        A* RAW       rw+   Raw alpha samples
      AAI* AAI       rw+   AAI Dune image
       AI  PDF       rw-   Adobe Illustrator CS2
      ART* ART       rw-   PFS: 1st Publisher Clip Art
      ARW  DNG       r--   Sony Alpha Raw Image Format
      AVI  MPEG      r--   Microsoft Audio/Visual Interleaved
      AVS* AVS       rw+   AVS X image
        B* RAW       rw+   Raw blue samples
      BGR* BGR       rw+   Raw blue, green, and red samples
     BGRA* BGR       rw+   Raw blue, green, red, and alpha samples
      BIE* JBIG      rw-   Joint Bi-level Image experts Group interchange format (1.6)
      BMP* BMP       rw-   Microsoft Windows bitmap image
     BMP2* BMP       -w-   Microsoft Windows bitmap image (V2)
     BMP3* BMP       -w-   Microsoft Windows bitmap image (V3)
      BRF* BRAILLE   -w-   BRF ASCII Braille format
        C* RAW       rw+   Raw cyan samples
      CAL* CALS      rw-   Continuous Acquisition and Life-cycle Support Type 1
           Specified in MIL-R-28002 and MIL-PRF-28002
     CALS* CALS      rw-   Continuous Acquisition and Life-cycle Support Type 1
           Specified in MIL-R-28002 and MIL-PRF-28002
   CANVAS* XC        r--   Constant image uniform color
  CAPTION* CAPTION   r--   Caption
      CIN* CIN       rw-   Cineon Image File
      CIP* CIP       -w-   Cisco IP phone image format
     CLIP* CLIP      rw+   Image Clip Mask
CLIPBOARD* CLIPBOARD rw-   The system clipboard
     CMYK* CMYK      rw+   Raw cyan, magenta, yellow, and black samples
    CMYKA* CMYK      rw+   Raw cyan, magenta, yellow, black, and alpha samples
      CR2  DNG       r--   Canon Digital Camera Raw Image Format
      CRW  DNG       r--   Canon Digital Camera Raw Image Format
      CUR* CUR       rw-   Microsoft icon
      CUT* CUT       r--   DR Halo
      DCM* DCM       r--   Digital Imaging and Communications in Medicine image
           DICOM is used by the medical community for images like X-rays.  The
           specification, "Digital Imaging and Communications in Medicine
           (DICOM)", is available at http://medical.nema.org/.  In particular,
           see part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),
           and supplement 61 which adds JPEG-2000 encoding.
      DCR  DNG       r--   Kodak Digital Camera Raw Image File
      DCX* PCX       rw+   ZSoft IBM PC multi-page Paintbrush
      DDS* DDS       r--   Microsoft DirectDraw Surface
    DFONT* TTF       r--   Multi-face font package (Freetype 2.1.5)
     DJVU* DJVU      ---   Déjà vu
           See http://www.djvuzone.org/ for details about the DJVU format.  The
           DJVU 1.2 specification is available there and at
           ftp://swrinde.nde.swri.edu/pub/djvu/documents/.
      DNG  DNG       r--   Digital Negative
      DOT  DOT       ---   Graphviz
      DPS  DPS       ---   Display Postscript Interpreter
      DPX* DPX       rw-   SMPTE 268M-2003 (DPX 2.0)
           Digital Moving Picture Exchange Bitmap, Version 2.0.
           See SMPTE 268M-2003 specification at http://www.smtpe.org

      EMF  WMF       ---   Windows WIN32 API rendered Enhanced Meta File
     EPDF  PDF       rw-   Encapsulated Portable Document Format
      EPI  PS        rw-   Encapsulated PostScript Interchange format
      EPS  PS        rw-   Encapsulated PostScript
     EPS2* PS2       -w-   Level II Encapsulated PostScript
     EPS3* PS3       -w+   Level III Encapsulated PostScript
     EPSF  PS        rw-   Encapsulated PostScript
     EPSI  PS        rw-   Encapsulated PostScript Interchange format
      EPT  EPT       rw-   Encapsulated PostScript with TIFF preview
     EPT2  EPT       rw-   Encapsulated PostScript Level II with TIFF preview
     EPT3  EPT       rw+   Encapsulated PostScript Level III with TIFF preview
      ERF  DNG       r--   Epson RAW Format
      EXR  EXR       ---   High Dynamic-range (HDR)
      FAX* FAX       rw+   Group 3 FAX
           FAX machines use non-square pixels which are 1.5 times wider than
           they are tall but computer displays use square pixels, therefore
           FAX images may appear to be narrow unless they are explicitly
           resized using a geometry of "150x100%".

     FITS* FITS      rw-   Flexible Image Transport System
      FPX  FPX       ---   FlashPix Format
  FRACTAL* PLASMA    r--   Plasma fractal image
      FTS* FTS       rw-   Flexible Image Transport System
        G* RAW       rw+   Raw green samples
       G3* FAX       rw-   Group 3 FAX
      GIF* GIF       rw+   CompuServe graphics interchange format
    GIF87* GIF       rw-   CompuServe graphics interchange format (version 87a)
 GRADIENT* GRADIENT  r--   Gradual linear passing from one shade to another
     GRAY* GRAY      rw+   Raw gray samples
   GROUP4* TIFF      rw-   Raw CCITT Group4
       GV  DOT       ---   Graphviz
     HALD*           r--   Identity Hald color lookup table image
      HDR* HDR       rw+   Radiance RGBE image format
HISTOGRAM* HISTOGRAM -w-   Histogram of the image
      HRZ* HRZ       rw-   Slow Scan TeleVision
      HTM* HTML      -w-   Hypertext Markup Language and a client-side image map
     HTML* HTML      -w-   Hypertext Markup Language and a client-side image map
      ICB* TGA       rw-   Truevision Targa image
      ICO* ICON      rw+   Microsoft icon
     ICON* ICON      rw-   Microsoft icon
     INFO  INFO      -w+   The image format and characteristics
   INLINE* INLINE    r--   Base64-encoded inline images
      IPL* IPL       rw+   IPL Image Sequence
   ISOBRL* BRAILLE   -w-   ISO/TR 11548-1 format
      J2C* JP2       rw-   JPEG-2000 Code Stream Syntax
      J2K* JP2       rw-   JPEG-2000 Code Stream Syntax
      JBG* JBIG      rw+   Joint Bi-level Image experts Group interchange format (1.6)
     JBIG* JBIG      rw+   Joint Bi-level Image experts Group interchange format (1.6)
      JNG* PNG       rw-   JPEG Network Graphics
           See http://www.libpng.org/pub/mng/ for details about the JNG
           format.
      JNX* JNX       r--   Garmin tile format
      JP2* JP2       rw-   JPEG-2000 File Format Syntax
      JPC* JP2       rw-   JPEG-2000 Code Stream Syntax
     JPEG* JPEG      rw-   Joint Photographic Experts Group JFIF format (80)
      JPG* JPEG      rw-   Joint Photographic Experts Group JFIF format (80)
      JPX* JP2       rw-   JPEG-2000 File Format Syntax
        K* RAW       rw+   Raw black samples
      K25  DNG       r--   Kodak Digital Camera Raw Image Format
      KDC  DNG       r--   Kodak Digital Camera Raw Image Format
    LABEL* LABEL     r--   Image label
        M* RAW       rw+   Raw magenta samples
      M2V  MPEG      rw+   MPEG Video Stream
      M4V  MPEG      rw+   Raw MPEG-4 Video
      MAC* MAC       r--   MAC Paint
      MAP* MAP       rw-   Colormap intensities and indices
     MASK* MASK      rw+   Image Clip Mask
      MAT  MAT       rw+   MATLAB level 5 image format
    MATTE* MATTE     -w+   MATTE format
      MEF  DNG       r--   Mamiya Raw Image File
     MIFF* MIFF      rw+   Magick Image File Format
      MNG* PNG       rw+   Multiple-image Network Graphics (libpng 1.5.13)
           See http://www.libpng.org/pub/mng/ for details about the MNG
           format.
     MONO* MONO      rw-   Raw bi-level bitmap
      MOV  MPEG      rw+   MPEG Video Stream
      MP4  MPEG      rw+   MPEG-4 Video Stream
      MPC* MPC       rw+   Magick Persistent Cache image format
     MPEG  MPEG      rw+   MPEG Video Stream
      MPG  MPEG      rw+   MPEG Video Stream
      MRW  DNG       r--   Sony (Minolta) Raw Image File
      MSL* MSL       rw+   Magick Scripting Language
     MSVG  SVG       rw+   ImageMagick's own SVG internal renderer
      MTV* MTV       rw+   MTV Raytracing image format
      MVG* MVG       rw-   Magick Vector Graphics
      NEF  DNG       r--   Nikon Digital SLR Camera Raw Image File
      NRW  DNG       r--   Nikon Digital SLR Camera Raw Image File
     NULL* NULL      rw-   Constant image of uniform color
        O* RAW       rw+   Raw opacity samples
      ORF  DNG       r--   Olympus Digital Camera Raw Image File
      OTB* OTB       rw-   On-the-air bitmap
      OTF* TTF       r--   Open Type font (Freetype 2.1.5)
      PAL* UYVY      rw-   16bit/pixel interleaved YUV
     PALM* PALM      rw+   Palm pixmap
      PAM* PNM       rw+   Common 2-dimensional bitmap format
    PANGO* PANGO     ---   Pango Markup Language
  PATTERN* PATTERN   r--   Predefined pattern
      PBM* PNM       rw+   Portable bitmap format (black and white)
      PCD* PCD       rw-   Photo CD
     PCDS* PCD       rw-   Photo CD
      PCL  PCL       rw+   Printer Control Language
      PCT* PICT      rw-   Apple Macintosh QuickDraw/PICT
      PCX* PCX       rw-   ZSoft IBM PC Paintbrush
      PDB* PDB       rw+   Palm Database ImageViewer Format
      PDF  PDF       rw+   Portable Document Format
     PDFA  PDF       rw+   Portable Document Archive Format
      PEF  DNG       r--   Pentax Electronic File
      PES* PES       r--   Embrid Embroidery Format
      PFA* TTF       r--   Postscript Type 1 font (ASCII) (Freetype 2.1.5)
      PFB* TTF       r--   Postscript Type 1 font (binary) (Freetype 2.1.5)
      PFM* PFM       rw+   Portable float format
      PGM* PNM       rw+   Portable graymap format (gray scale)
      PGX* JP2       r--   JPEG-2000 VM Format
    PICON* XPM       rw-   Personal Icon
     PICT* PICT      rw-   Apple Macintosh QuickDraw/PICT
      PIX* PIX       r--   Alias/Wavefront RLE image format
    PJPEG* JPEG      rw-   Joint Photographic Experts Group JFIF format (80)
   PLASMA* PLASMA    r--   Plasma fractal image
      PNG* PNG       rw-   Portable Network Graphics (libpng 1.5.13)
           See http://www.libpng.org/ for details about the PNG format.
    PNG00* PNG       rw-   PNG inheriting bit-depth and color-type from original
    PNG24* PNG       rw-   opaque or binary transparent 24-bit RGB (zlib 1.2.7)
    PNG32* PNG       rw-   opaque or transparent 32-bit RGBA
    PNG48* PNG       rw-   opaque or binary transparent 48-bit RGB
    PNG64* PNG       rw-   opaque or transparent 64-bit RGBA
     PNG8* PNG       rw-   8-bit indexed with optional binary transparency
      PNM* PNM       rw+   Portable anymap
      PPM* PNM       rw+   Portable pixmap format (color)
  PREVIEW* PREVIEW   -w-   Show a preview an image enhancement, effect, or f/x
       PS  PS        rw+   PostScript
      PS2* PS2       -w+   Level II PostScript
      PS3* PS3       -w+   Level III PostScript
      PSB* PSD       rw+   Adobe Large Document Format
      PSD* PSD       rw+   Adobe Photoshop bitmap
     PTIF* TIFF      rw+   Pyramid encoded TIFF
      PWP* PWP       r--   Seattle Film Works
        R* RAW       rw+   Raw red samples
RADIAL-GRADIENT* GRADIENT  r--   Gradual radial passing from one shade to another
      RAF  DNG       r--   Fuji CCD-RAW Graphic File
      RAS* SUN       rw+   SUN Rasterfile
      RGB* RGB       rw+   Raw red, green, and blue samples
     RGBA* RGB       rw+   Raw red, green, blue, and alpha samples
     RGBO* RGB       rw+   Raw red, green, blue, and opacity samples
      RLA* RLA       r--   Alias/Wavefront image
      RLE* RLE       r--   Utah Run length encoded image
      RW2  DNG       r--   Panasonic Lumix Raw Image
      SCR* SCR       r--   ZX-Spectrum SCREEN$
      SCT* SCT       r--   Scitex HandShake
      SFW* SFW       r--   Seattle Film Works
      SGI* SGI       rw+   Irix RGB image
    SHTML* HTML      -w-   Hypertext Markup Language and a client-side image map
SPARSE-COLOR* TXT       -w+   Sparse Color
      SR2  DNG       r--   Sony Raw Format 2
      SRF  DNG       r--   Sony Raw Format
  STEGANO* STEGANO   r--   Steganographic image
      SUN* SUN       rw+   SUN Rasterfile
      SVG  SVG       rw+   Scalable Vector Graphics (XML 2.9.0)
     SVGZ  SVG       rw+   Compressed Scalable Vector Graphics (XML 2.9.0)
     TEXT* TXT       rw+   Text
      TGA* TGA       rw-   Truevision Targa image
THUMBNAIL* THUMBNAIL -w+   EXIF Profile Thumbnail
     TIFF* TIFF      rw+   Tagged Image File Format (LIBTIFF, Version 4.0.3)
   TIFF64* TIFF      rw-   Tagged Image File Format (64-bit) (LIBTIFF, Version 4.0.3)
     TILE* TILE      r--   Tile image with a texture
      TIM* TIM       r--   PSX TIM
      TTC* TTF       r--   TrueType font collection (Freetype 2.1.5)
      TTF* TTF       r--   TrueType font (Freetype 2.1.5)
      TXT* TXT       rw+   Text
     UBRL* BRAILLE   -w-   Unicode Text format
      UIL* UIL       -w-   X-Motif UIL table
     UYVY* UYVY      rw-   16bit/pixel interleaved YUV
      VDA* TGA       rw-   Truevision Targa image
    VICAR* VICAR     rw-   VICAR rasterfile format
      VID* VID       rw+   Visual Image Directory
     VIFF* VIFF      rw+   Khoros Visualization image
      VST* TGA       rw-   Truevision Targa image
     WBMP* WBMP      rw-   Wireless Bitmap (level 0) image
     WEBP* WEBP      rw-   WebP Image Format (libwebp 0.3.1)
      WMF* WMF       ---   Windows Meta File
 WMFWIN32  WMFWIN32  ---   Windows WIN32 API rendered Meta File
      WMV  MPEG      rw+   Windows Media Video
      WMZ* WMZ       ---   Compressed Windows Meta File
      WPG* WPG       r--   Word Perfect Graphics
        X* X         rw+   X Image
      X3F  DNG       r--   Sigma Camera RAW Picture File
      XBM* XBM       rw-   X Windows system bitmap (black and white)
       XC* XC        r--   Constant image uniform color
      XCF* XCF       r--   GIMP image
      XPM* XPM       rw-   X Windows system pixmap (color)
      XPS  XPS       r--   Microsoft XML Paper Specification
       XV* VIFF      rw+   Khoros Visualization image
      XWD* XWD       rw-   X Windows system window dump (color)
        Y* RAW       rw+   Raw yellow samples
    YCbCr* YCbCr     rw+   Raw Y, Cb, and Cr samples
   YCbCrA* YCbCr     rw+   Raw Y, Cb, Cr, and alpha samples
      YUV* YUV       rw-   CCIR 601 4:1:1 or 4:2:2

* native blob support
r read support
w write support
+ support for multiple images
Let me know if I'm missing something,
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

Post by fmw42 »

libpng 1.5.13
That is old. My version is libpng 1.6.29. Perhaps you should try upgrading libpng.
i73
Posts: 50
Joined: 2016-08-24T11:30:27-07:00
Authentication code: 1151

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

Post by i73 »

I'm not able to, it's already packaged and distributed, would this be the issue I am having with the PNG00? Are you getting the same issue with your convert?

Code: Select all

convert C:/test_512x512_32.png -resize 128 -unsharp 1.5x1.2+1.0+0.10 PNG00:C:/test2_128x128.png
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

Post by fmw42 »

Testing and looking at the verbose information (identify -verbose image) with IM 6.9.8.10 Q16 Mac OS X, I see no change. Both images are type palette alpha, since your base image is solid red (1-bit) and only the alpha channel is 8-bit.

Code: Select all

Image: Test_Layer.png
  Format: PNG (Portable Network Graphics)
  Mime type: image/png
  Class: DirectClass
  Geometry: 200x200+0+0
  Units: Undefined
  Type: PaletteAlpha
  Endianess: Undefined
  Colorspace: sRGB
  Depth: 8-bit
  Channel depth:
    red: 1-bit
    green: 1-bit
    blue: 1-bit
    alpha: 8-bit

Code: Select all

convert Test_Layer.png -resize 128 PNG00:tmp.png

Code: Select all

Image: tmp.png
  Format: PNG (Portable Network Graphics)
  Mime type: image/png
  Class: DirectClass
  Geometry: 128x128+0+0
  Units: Undefined
  Type: PaletteAlpha
  Endianess: Undefined
  Colorspace: sRGB
  Depth: 8-bit
  Channel depth:
    red: 1-bit
    green: 1-bit
    blue: 1-bit
    alpha: 8-bit
i73
Posts: 50
Joined: 2016-08-24T11:30:27-07:00
Authentication code: 1151

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

Post by i73 »

So, I'm getting the exact same output when I preform -verbose but in both the properties and in my code it's been changed from 32 bit to 8 bit:

Image
i73
Posts: 50
Joined: 2016-08-24T11:30:27-07:00
Authentication code: 1151

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

Post by i73 »

Should I open a new question for this? If you run my code on your image and look at the actual bit depth you'll see it's been changed to 8.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: When resizing it's not using the first images bit depth. Is it possible to read the incoming bit depth and use that?

Post by snibgo »

I don't understand what problem you are trying to solve. You have linked to two files. Exiftool says they are both palette files. So what?

You have shown two screnshots. From what software? Relating to what files? They say one file is "Bit depth 32" whatever that means, the other is "Bit depth 8". So what is the problem?
snibgo's IM pages: im.snibgo.com
Post Reply