Forum Discussion
Leondup
Jun 17, 2026Copper Contributor
How can I compress photo file size to 50kb in Windows 10?
I need to reduce the size of a photo file to approximately 50KB on Windows 10, but I am unsure of the best method to do so without losing too much image quality. I have tried resizing the image and l...
Hampep
Jun 17, 2026Copper Contributor
OptiPNG is a free, open-source command-line tool that specializes in losslessly shrinking PNG files. It doesn't mess with image quality; it just finds smarter ways to compress the data. The goal is a smaller file, but it's a bit of a guessing game. It tries a bunch of compression methods and picks the smallest result, but you can't just tell it to compress photo file size to 50kb. It works with what you give it.\
Here's the simple, step-by-step way to give it a shot:
- Download and extract: Obtain the ZIP file of OptiPNG.
- Open Command Prompt: Press the Windows key + R, enter cmd, and then press Enter.
- Enter the OptiPNG folder: Use the cd cd cd commands to switch to this folder, for example: cd C:\optipng.
- Run the basic command: Input optipng -o7 "C:\path\your photo,png", then press Enter. The -o77 flag indicates that the program should compress as much as possible to obtain the smallest file size.
- View the result: OptiPNG will overwrite the original file. View the file size in the File Explorer to confirm if the processing effect is satisfactory.
If you're lucky and the photo is simple, -o7 might help you compress photo file size to 50kb. If not, you'll need to resize the image in another program first before running OptiPNG.