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 1111875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:37:04+00:00 2026-05-17T02:37:04+00:00

I have a few images I’m trying to normalize to a certain scale by

  • 0

I have a few images I’m trying to normalize to a certain scale by resizing them.
When I started resizing the images, I noticed that their volume (KB) became much larger than the original image.

I checked it out further by simply doing:
convert x.png y.png
And got some difference. E.g. in one case x.png is 143KB and y.png is 208KB.

Since I’m also optimizing for image size, I was wondering if anyone has an idea why this is the case and any suggestions to solve this.

I’m using Imagemagick 6.6.4-Q16 on windows 7.

Thanks, Amit

EDIT:

Thanks for the suggestion, guys, and sorry for the late reply! Here’s what I tried to do and here are the results. The original image is 112KB. Doing convert with no parameters results in 169KB image. Using OptiPNG on it (PNGCrush didn’t work for me) with -o7 results in 113KB. I then tried to do convert -quality X for every X between 0-99, and I found that for quality 90 I achieve a file size of 116KB, so OptiPNG is better. However – when I do convert -resize to a smaller image (proportionally), I get a 199KB with no parameters, 196KB for the best convert -quality X (x=0), and 196KB for OptiPNG.
This is 75% increase in file size when I would expect the file to be smaller, since I resized the image by 35% from 377×2290 to 234×1419. Any thoughts?

Thanks!

EDIT – Images attached + the resize problem investigated:

Here is a link to the three images (look at the captions): Original image, image after simple ImageMagick convert, and the same output image after optipng.
http://picasaweb.google.com/101622787022351879933/ImageMagickProblem?feat=directlink

Also, I think there might be an issue with the resize option of ImageMagick. I did the following exercise to isolate it:
For every x between 1-100:
convert a.png -resize x% a_x.png

As expected, the size of the image almost constantly increases from 1% to 100%. There is a slight drop in 40% and in 50%. The issue is that from 40% and on, the output image size bypasses the original image size. Only when you hit 100% there is a large drop in image size back to the original size (slightly more actually, per my first edit – 169KB instead of 112KB, and 113KB after Optipng).

Even running Optipng with -o7 on each output file doesn’t correct this.

You can see the results of this experiment in the graph below:
http://picasaweb.google.com/lh/photo/fFL1W6SiUfFWhBqdUf3BZg?feat=directlink

  • 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. Editorial Team
    Editorial Team
    2026-05-17T02:37:04+00:00Added an answer on May 17, 2026 at 2:37 am

    Ok, the issue was with the filters per Michael’s suggestion.

    Here is what I did:

    convert -list filter > 1.txt
    

    to get a list of all filters.
    Then, for every x which is a filter on that list, I did:

    convert -filter x -resize 234x1419 a.png b_x.png
    

    I recorded the file size, and then did “optipng -o7” on each file.

    The best filter for this image for my case was “Box”: it was the only one that actually got reduced from 112KB to 111KB, and then to 81KB by optipng.

    I think it is interesting to note that after all this process, only the Box filter actually got the size of the image reduced, even though all of them have less pixels after the resize process.

    BTW: watch out for the following trap

    convert -filter Box -resize 234x1419 a.png a_box.png
    

    results in an image of 112KB which can be compressed to 81KB, as I said above. However:

    convert a.png -filter Box -resize 234x1419 a_box.png
    

    results in an image of 199KB!

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

Sidebar

Related Questions

I have a few images and their rollover images. Using jQuery, I want to
I'm using flex and have a few images that I need to sequence through.
I am using the cycle jquery plugin. I have a few images that fade
I have an expression blend 3 solution, that has a few images(my buttons). Now
I have div that contains quite a few images. When I say quite a
I have to transform a few hundred images every day in a specific way.
I've seen a few fixes for allowing PNG images to have transparency in Internet
I have a few Visual Studio Solutions/Projects that are being worked on in my
I have few images on a web page which are fetched from HTTP server
I have few images in a grid, then when i click a button, a

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.