[Bug 302057] Re: Reducing scale of png images usually result in bigger file size
Andrew McCarthy
me at andrewmccarthy.ie
Tue Nov 25 15:53:32 UTC 2008
The resize is achieved by using ImageMagick to run
convert <originalfile> -resize <newsize> <newfile>
As noted on this page:
http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=6245
resizing causes the image to change to 16-bit, probably from 8-bit (run "identify filename.png" at a command prompt to see). I can see why this is done - as the image is shrunk, pixels are merged and new colours created. However, this makes the file larger.
Perhaps the tool should include an option that causes the output to have the same depth as the input? The original image's depth can be determined with:
"identify -format '%[depth]' filename.png"
which outputs a single integer.
** Changed in: nautilus-image-converter (Ubuntu)
Status: New => Confirmed
--
Reducing scale of png images usually result in bigger file size
https://bugs.launchpad.net/bugs/302057
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list