Prev Previous Post   Next Post Next
Old 28th November 2003, 18:09   #11
SLoB
Major Dude
 
SLoB's Avatar
 
Join Date: Jul 2003
Location: UK
Posts: 1,316
just a quick bat file for use with pngcrush (handy dos utility to reduce your bloated pngs ), this will crush the pngs in the specific folder & move the originals to a new folder (for safe keeping ) & then move the new crushed pngs back to the original folder
handy for the last skin optimisations
use at own risk it works on my box

@ECHO OFF
REM ********************************************************************************************************
REM
REM this will pngcrush all pngs and output the new crushed pngs to the output folder
REM it will create a source folder within your folder and move the original pngs to that for safe keeping
REM copy pngcrush.exe and this file to each of your png folders you want to crush
REM USE AT OWN RISK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
REM
REM ********************************************************************************************************
REM Basic pngcrush -d dir [other options] files.png ...

CLS

@ECHO ON

ECHO Making an Originalsource folder
md originals
pause

ECHO Crushing those bloated pngs
pngcrush -d output *.png *.png
pause

ECHO Moving all original pngs to source folder
move *.png originals\
pause

ECHO Moving all crushed pngs to original folder
move output\*.png
pause

ECHO Complete
pause
SLoB is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump