Package: pngcrush Version: 1.8.13-3 pngcrush -ow softlink_to_a_png_file
currently removes the soft link and replaces it with a regular file. No warning is issued. Changing the file type silently by an image-processing tool is substandard behavior. This is unwanted, particularly if you run this in scripts, such as for file in *.png; do pngcrush -ow $file; done In this situation, if the current directory contains a mixture of links with the extension .png and regular .png files, all the soft links will be silently turned into regular files, and their origins get forgotten forever. At the very least, pngcrush should warn the caller or simply bail out with an error message and a nonzero error code. In my personal use cases, I need the tool to write through a soft link. (An alternative solution, though an overkill for me, would be to have an option, say, “-dereference”, which would allow for writing through a soft link specified with the option “-ow” and bailing out on a soft link if “-dereference” is not supplied.)

