My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 60: pngout fails if it cannot decrease the size of the .png
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  pts...@gmail.com
Closed:  Jul 2012


 
Project Member Reported by pts...@gmail.com, Jul 2, 2012
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.
Jul 3, 2012
Project Member #1 pts...@gmail.com
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.
Status: Fixed
Jul 3, 2012
Project Member #2 pts...@gmail.com
Attached.
d2b.pdf
0 bytes   Download

Powered by Google Project Hosting