Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 134171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:33:55+00:00 2026-05-11T06:33:55+00:00

My source images are 2288px x 1712px and 816kb. When I create a thumbnail

  • 0

My source images are 2288px x 1712px and 816kb. When I create a thumbnail of 1024 x 768 the file sizes are more than double the high res source (1.13mb – 1.8mb depending on method used).

The source images and thumbnails created are .jpg

Even creating a 299 x 224 thumbnail is 180kb where as if I manually create a thumbnail in GIMP it is 14kb.

I need the images to look good so cannot compromise on quality for size.

I have tried Image.GetThumbnailImage which created a 1.13mb file but I read that it can create unexpected results.

Most articles say to write the code like this article: http://www.codeproject.com/KB/GDI-plus/imageresize.aspx

That gives me a thumbnail of 1.83mb.

Should I be expecting larger file sizes compared to doing the same thing with a desktop application?

I have tried 16 bit instead of 24 and commenting out the ‘high quality’ values but I still cannot get it under 1mb. Any ideas?

Bitmap bmPhoto = new Bitmap(destWidth, destHeight,PixelFormat.Format24bppRgb);         bmPhoto.SetResolution(image.HorizontalResolution,image.VerticalResolution);          Graphics grPhoto = Graphics.FromImage(bmPhoto);          grPhoto.InterpolationMode = InterpolationMode.HighQualityBicubic;                 grPhoto.SmoothingMode = SmoothingMode.HighQuality;         grPhoto.PixelOffsetMode = PixelOffsetMode.HighQuality;         grPhoto.CompositingQuality = CompositingQuality.HighQuality; 

EDIT FOR ANSWER

I was lacking compression. My 1024 thumbnail is now 112kb.

Encoder qualityEncoder = Encoder.Quality; //80L is the compression percentage EncoderParameter ratio = new EncoderParameter(qualityEncoder, 80L); // Add the quality parameter to the list EncoderParameters codecParams = new EncoderParameters(1); codecParams.Param[0] = ratio;  ImageCodecInfo jpegCodecInfo = GetEncoderInfo('image/jpeg');   bmPhoto.Save(Path.Combine(filepath, RenameImage(filename, appendName, replaceWholeString)), jpegCodecInfo, codecParams);   ImageCodecInfo GetEncoderInfo(string mimeType)     {     int j;     ImageCodecInfo[] encoders;     encoders = ImageCodecInfo.GetImageEncoders();  for(j = 0; j < encoders.Length; ++j)     {     if(encoders[j].MimeType.ToUpper() == mimeType.ToUpper())     return encoders[j];     }     return null;     } 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T06:33:56+00:00Added an answer on May 11, 2026 at 6:33 am

    The bitmap format is your main problem. This will always be huge by comparison with other formats. Bitmaps are run-length-encoded and uncompressed.

    If your images are photographs, JPEG is your best bet. You can get great visual quality with tiny file sizes. If they are line art and don’t have a lot of color, GIF may also be a good option. There are several good image manipulation libraries out there, such as FreeImage.

    EDIT: Noticed the comment that you’re going JPEG to JPEG… the lack of good compression may be a limitation of the Framework’s built-in image capabilities.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to set the source of images as follows : private void
I've a source code(test.cpp) that supposed to display three images(color, grayscale and canny) copied
Is there an open source .NET library that can render PDFs to images (for
I'm trying to get the source attribute of all images withing a specific div
I have something like this in my xaml: <Grid> <Image Name=image Source=../../Images/DefaultImage.png HorizontalAlignment=Stretch VerticalAlignment=Stretch></Image>
Im trying to create a board game generator in ruby which takes images from
In this case I have XML data source and external images files whole together
I have a folder name: 'create_assets', where I store my source files of images
I'm trying to set a WPF Image's source. XAML works: <Image Name=ImageThing Source=images/Thing.png/> Visual
Im embeding assets into my as3 like: [Embed(source = assets/images/+assetSizeString+/ui/left_thumb.png)] private static const leftThumb:Class;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.