pdfsizeopt icon indicating copy to clipboard operation
pdfsizeopt copied to clipboard

sam2p calls the pngtopnm tool on the system

Open pts opened this issue 7 years ago • 0 comments

If pdfsizeopt_libexec/png22pnm called by pdfsizeopt_libexec/sam2p fails, then pdfsizeopt_libexec/sam2p also calls the pngtopnm tool on the system:

sam2p: Error: Filter::PipeE: system() failed: (png22pnm -rgba /tmp/tmp__sam2p__16767_0 || (pngtopnm </tmp/tmp__sam2p__16767_0 && pngtopnm -alpha </tmp/tmp__sam2p__16767_0)) >/tmp/tmp__sam2p__16767_1

The expected behavior is that pdfsizeopt_libexec/sam2p never calls the pngtopnm tool on the system.

One possible way to fix this is integrating the functionality of png22pnm to sam2p.

Another option is replacing sam2p with imgdataopt (https://github.com/pts/pdfsizeopt/issues/51).

pts avatar Oct 04 '17 07:10 pts