hefronmedia / pdfsizeopt

Automatically exported from code.google.com/p/pdfsizeopt
0 stars 0 forks source link

pngout fails if it cannot decrease the size of the .png #60

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
info: executing image optimizer pngout: pngout pso.conv-601.parse.png pso.conv-6
01.pngout.png
 In:     175 bytes               pso.conv-601.parse.png /c2 /f0
Out:     184 bytes               pso.conv-601.pngout.png /c3 /f0 /d4, 11 colors
Unable to compress further: copying original file
info: pngout failed, status=0x2
Traceback (most recent call last):
  File ".\pdfsizeopt.py", line 7789, in <module>
    main(sys.argv)
  File ".\pdfsizeopt.py", line 7761, in main
    pdf.OptimizeImages(use_pngout=use_pngout, use_jbig2=use_jbig2)
  File ".\pdfsizeopt.py", line 6214, in OptimizeImages
    return_none_if_status=0x200)
  File ".\pdfsizeopt.py", line 5637, in ConvertImage
    assert 0, '%s failed (status)' % cmd_name
AssertionError: pngout failed (status)

Running with --use-pngout=no is a temporary workaround.

A real fix would be ignoring the error.

Original issue reported on code.google.com by pts...@gmail.com on 2 Jul 2012 at 5:17

GoogleCodeExporter commented 8 years ago
FYI The problem cannot be reproduced on Linux.

Reproduced the problem on Wine 1.2 on the attacked d2b.pdf using

  $ wine pdfsizeopt_python.exe pdfsizeopt.py d2b.pdf

Fixed in r205 by adding the flag -force to the pngout command-line.

Original comment by pts...@gmail.com on 3 Jul 2012 at 4:00

GoogleCodeExporter commented 8 years ago
Attached.

Original comment by pts...@gmail.com on 3 Jul 2012 at 4:01

Attachments: