Tag Archives: compression

Compress JPG files in a directory in C#

I wrote this example to help produce reduced-size versions of some of the thousands of pictures I’ve collected over the years. Unfortunately pictures you take with a modern camera or phone tend to be enormous. Fortunately most of my relatives … Continue reading

Posted in algorithms, files, graphics, image processing, tools | Tagged , , , , , , , , , , , , , , , , , , | Leave a comment

Quickly pick JPG compression level in C#

The example Compress JPG files to a certain size in C# lets you adjust a file’s JPG compression level until it is no bigger than a specified size. It does that by starting at a compression level of 100 and … Continue reading

Posted in algorithms, files, graphics, image processing | Tagged , , , , , , , , , , , , , , , , , | 1 Comment

Compress JPG files to a certain size in C#

The example Optimize JPEG compression level and file size in C# shows how to save a JPG file with different compression levels. Using a smaller level makes the resulting file smaller but introduces more error into the image. If you … Continue reading

Posted in algorithms, files, graphics, image processing | Tagged , , , , , , , , , , , , , , , , | 1 Comment

Change audio gain in C#

Note: This example was written in Visual Studio 2010. This example shows how you can re-encode a video to change its audio gain. Earlier examples such as Change video quality in C# show how to use Microsoft Expression Encoder to … Continue reading

Posted in animation, multimedia | Tagged , , , , , , , , , , , , , , , , , , , | Leave a comment

Merge splash screens and videos in a directory in C#

(Note that this example was written in Visual Studio 2010.) This example shows how you can merge splash screens and videos in a directory. The example Merge videos in C# shows how you can concatenate two videos. Because I had … Continue reading

Posted in animation, files, multimedia | Tagged , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Merge videos in C#

(Note that this example was written in Visual Studio 2010.) My original problem was that I had created a bunch of videos and needed to add a splash screen at the beginning of each. This example merges videos so it … Continue reading

Posted in animation, multimedia | Tagged , , , , , , , , , , , , , , , , , , | 10 Comments

Change video quality in C#

(Note that this example was written in Visual Studio 2010.) This post shows how you can load and save a video with a given video quality. Lately I’ve been recording screencast videos for my next book. Unfortunately I recorded several … Continue reading

Posted in animation, API, multimedia | Tagged , , , , , , , , , , , , , , , , , , | 2 Comments

Optimize JPEG compression levels and file sizes in C#

This example lets you check image quality with different JPEG compression levels. Use the File menu’s Open command to load an image file. Then use the “JPEG Compression Index (CI)” ComboBox to select a compression level. The program saves the … Continue reading

Posted in files, graphics | Tagged , , , , , , , , , , , , , | 8 Comments