Pages

Wednesday 14 November 2012

compress a picture without losing quality


Image Worsener To Reduce Image Quality Without Reducing Quality 150Pxp2Did you know that you can compress pictures and make them considerably smaller without actually reducing the image quality?


Today, we are starting a new series of posts exclusive to windows7themes.net titled “Did You Know”. Here is the first one!

Reduce Image Files By Stripping Metadata – Works Great!

Image Worsener To Reduce Image Quality Without Reducing Quality
1. Download imageworsener – a free utility for lossless image compression:
2. In the ZIP file you find the imagew.exe – extract it
3. Copy and paste the following text into the notepad editor

SETLOCAL
set CURRENTDIR=%CD%
echo %currentdir%
FOR /f "usebackq delims=|" %%f in (`dir /b "%currentdir%"`) DO (
set str1=%%f
echo %str1%
set str3=%str1:~-4%
echo %str3%
set str2="thumb_%str3%"
IF NOT EXIST "thumb_%%f" CALL C:\images\imagew.exe "%%f" "thumb_%%f")
ENDLOCAL
4. Save the file with the extension .bat and select “All files” from the dropdown when saving the file (or it wont actually create a bat file). You could give it the name lossless.bat
5. Open a command prompt
6. Use the CD command to change the directory to C:\images or your own path and copy all of your images that you want to compress there as well. If the directory does not exist create one
Making The Images Dir
7. Now run the script lossless.bat and it will compress all images in the folder.
Running Lossless Batch
If something does not work you may have to tweak it a little, I use it in combination with the following script

Set CURRENTDIR=%CD%
CALL C:\images\lossless.bat %CURRENTDIR%
pause Do you want to continue?
8. You could, if you want to go one step further and become more productive, add the code above into a batch file called losslessA.bat and then add this to your context menu

No comments:

Post a Comment