10

我有一堆太大的图像,我需要将它们的大小从 30 kb 减小到 10 或 5 kb 而不会降低质量。我试图更改 dpi 和像素但没有成功。图像变得模糊,并且由于它们有文字,更改后我无法阅读任何内容。无论如何我可以在不损失质量的情况下做到这一点吗?我的应用程序中有近十几个图像。

提前致谢,祝您有美好的一天。

4

4 回答 4

3

对于批量调整大小,我使用 IrfanView(尽管它是“精简版”,但它非常强大)。它有一个很好的批处理对话框,有很多选项。

如果您使用的是 png 文件,请尝试使用更好的压缩和/或不同的颜色深度设置(如果您不使用透明度,您可以尝试将它们转换为 jpeg,尽管您可能会损失一些质量)

更改颜色深度/范围/压缩可能不会影响图像质量(如果适度使用,无论如何都不可见)并且它会减小图片的大小 - 在大多数情况下无论如何

如果您想坚持使用 Gimp(我从未亲自使用过),它应该具有一些导出功能,您可以在其中为图像选择一些设置,例如格式和选项

于 2011-01-12T12:53:49.943 回答
2

You cannot leave out data without reducing quality. Data has meaning.

You may try to use improved compression, pngcrush is the tool that automatically tries several approaches for you and picks the best.

Reducing colour depth will reduce the file size (while reducing colour quality). You can also turn on dithering in some image editors, but that's another loss in quality.

If your image has photographic content rather than graphical, convert to JPEG and use the JPEG quality settings, experiment with them a bit.

于 2011-01-12T12:50:14.003 回答
0

似乎如果我有一个 2500 像素宽的大 png 并且我想将其调整为 100 像素宽,如果我一次将图像缩放到所需的大小,图像就会变得扭曲使用。

但是,如果我以 200 像素的小增量缩放图像并重复,直到达到所需的长度,图像就不会失真。因此,如果我是 2500 像素,那么我会将图像缩放到 2300 像素,然后再缩放到 2100,依此类推。比例越小失真越小。

于 2018-08-02T12:51:35.487 回答
-1

任何调整大小的方法都会有一些损失,无论多小。以下步骤将使您失去质量。

单层步骤

    layer->scale layer
    image->scale image
    image->fit canvas to layer
    file->export as

多层步骤

    layer->new layer group
    move all layers to layer group
    select layer group
    layer->scale layer
    image->scale image
    image->fit canvas to layer
    file->export as
于 2014-06-30T20:00:19.193 回答