On 28 June 2012 15:05, David C. Rankin
<drankinatty@suddenlinkmail.com> wrote:
On 06/27/2012 03:04 PM, Darrell Anderson wrote:
> Considering the original volume of changes needed, we're about as okay as we
> can expect, but --- we still find branding issues. For example, today I found
> some more and I am pushing patches.
>
> To resolve remaining branding issues we need the following:
>
> * Some really smart person to grep the system properly looking for corrupt
> image files (png, xcf, jpg/jpeg, whatever else might be out there). We can't
> inspect those images for branding issues. For whatever reason, seems many of
> the images got corrupted with CR/LF issues. We have found most of the corrupt
> files (walch.martin found most of them --- I only pushed clean files), but I
> don't know of a good way to search the sources for corrupt image files.
>
> (Note: Corrupt image files do not block building packages, but they cause
> usability issues that reflect badly on us).
>
This is tricky. Using 'file' to test even the corrupt jpeg images will return a
valid jpeg header in most cases and miss the fact that the image is corrupt. I
don't mind grepping or running find tde/main -type f -name "*.jpg" -execdir
<what> '{}' \;, but I need to know what <what> will do the trick. Ideas?
use an image program to open the image that will error out and close if the file is corrupt. Check the return value of the program, if it exits with an error, then echo "blah blah blah" or something.
Calvin