List Info

Thread: Looking for complete set of PNG samples




Looking for complete set of PNG samples
user name
2007-02-17 06:22:27
Hello.

I'm looking for a way to generate a large set of PNGs:
ideally,
every possible combination of PNG_COLOR_TYPE and bit depth.

I've tried ImageMagick and Gimp, but unfortunately they
utterly
refuse to create less often seen formats such as 2 and 4
bit
indexed, 64 bit RGBA etc.

The reason I'm looking to generate the set and not simply
download one is that they are to be distributed along with
a public-domain software package as test cases, and any
images I've  found online are obviously subject to
copyright.

I'm hoping not to have to fall back to using libpng
directly, as
that would likely take more work than the entire software
package did.

For reference, my platform is FreeBSD 6.2.

thanks,
MC

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
png-mng-implement mailing list
png-mng-implementlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/png-m
ng-implement

Re: Looking for complete set of PNG samples
country flaguser name
United States
2007-02-17 07:25:03
At 12:22 PM 2/17/2007 +0000, mal content wrote:
>Hello.
>
>I'm looking for a way to generate a large set of PNGs:
ideally,
>every possible combination of PNG_COLOR_TYPE and bit
depth.

pngcrush -bit_depth D -c ColorType input.png
output_ColorType_D.png

However, I just tried making a bit_depth==2 file and got
this:

$ pngcheck -v logo2_pc.png
File: logo2_pc.png (12920 bytes)
  chunk IHDR at offset 0x0000c, length 13
    654 x 418 image, 2-bit colormap, non-interlaced
  chunk PLTE at offset 0x00025, length 384: 128 palette
entries
  chunk IDAT at offset 0x001b1, length 12467
    zlib: deflated, 32K window, maximum compression
  chunk IEND at offset 0x03270, length 0
No errors detected in logo2_pc.png (4 chunks, 81.2%
compression).

The PLTE chunk should only have 4 entries but it's got 128. 
Pngcheck
doesn't detect the error.

>I've tried ImageMagick and Gimp, but unfortunately they
utterly
>refuse to create less often seen formats such as 2 and 4
bit
>indexed, 64 bit RGBA etc.
>
>The reason I'm looking to generate the set and not
simply
>download one is that they are to be distributed along
with
>a public-domain software package as test cases, and any
>images I've  found online are obviously subject to
copyright.

I believe the "pngsuite" from Willem Schaik is
redistributable.
Follow the link from the PNG web site.



------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
png-mng-implement mailing list
png-mng-implementlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/png-m
ng-implement

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )