Does Inkscape export PNG as non-interlaced or interlaced?

Asked by Jon Grossart on 2015-02-10

Summary has the question.

I'm using this for Android boot animation, which requires non-interlaced PNG.

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
Jon Grossart
Solved:
2015-02-10
Last query:
2015-02-10
Last reply:
2015-02-10
Mc (mc...) said : #1

non-interlaced afaik.

jazzynico (jazzynico) said : #2

There's an old request for additional PNG options, but no development planned for now.
See https://bugs.launchpad.net/inkscape/+bug/170650 (Granular PNG Export Options)

Jon Grossart (jon-grossart) said : #3

I noticed that feature request, and had added my name to it.

But, I don't necessarily care about the options (although they'd be helpful), I just wanted to know what settings Inkscape actually used.

Jon Grossart (jon-grossart) said : #5

Nevermind, I dug into the code and found it myself:

 png_set_IHDR(png_ptr, info_ptr,
width,
height,
8, /* bit_depth */
PNG_COLOR_TYPE_RGB_ALPHA,
PNG_INTERLACE_NONE,
PNG_COMPRESSION_TYPE_BASE,
PNG_FILTER_TYPE_BASE);

Mc (mc...) said : #6

My method was faster than digging in the code :P
-> launch inkscape
-> draw anything (or not)
-> export as png
-> launch terminal

$ file test.png
test.png: PNG image data, 1488 x 2105, 8-bit/color RGBA, non-interlaced