[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Pre-commit hook to ensure pngcrush has been used on every png

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Wed, 19 Aug 2009 05:48:51 -0500

On Aug 19, 2009, at 05:25, Andrey Repin wrote:

> Greetings, Ryan Schmidt!
>
>> I work on web sites, and I want to make sure that any png file I
>> commit takes as little disk space possible. When I think about it, I
>> run pngcrush on each png before committing, but I often forget. So
>> today I wrote a pre-commit hook to enforce that every png must be
>> crushed. Here it is, in case this is useful to others.
>
> If I understand it right, you're forcibly running pngcrush on png
> files and
> see if they were changed or not?

Yes.

> What happens if my image editing sofrtware or local different
> version of
> pngcrush compressing them better than server version?
> Your hook will tell me that i should use pngcrush, but i've either
> used it or
> can't achieve better results using it.

If it's not useful to you, don't use it. If you want to improve it,
do so. I just wrote the script because it filled a need for me, and I
wanted to share it with the group in case anyone else needed
something like this.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2385177

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-19 12:49:55 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.