使用 Gimp 调整图像大小而不损失质量
我有一堆太大的图像,我需要将它们的大小从 30 kb 减小到 10 或 5 kb,而不损失质量。我尝试更改 dpi 和像素但没有成功。图像变得模糊,并且由于它们有文本,更改后我无法阅读任何内容。无论如何我可以在不损失质量的情况下完成这个任务吗?我的应用程序中有近十二张图像。
提前致谢,祝您有美好的一天。
i have a bunch of images which are way too big i need to decrease their size from 30 kb to 10 or 5 kb without loosing quality. I tried to change the dpi and pixels with no succeed. The images got blurred, and as they have text i can't read anything after the changes. Is there anyway i can accomplish this without loosing quality? I have almost a dozen images in my application.
Thanks in advance and have a nice day.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
对于批量调整大小,我使用 IrfanView(尽管它是“精简版”,但它非常强大)。
它有一个很好的批处理对话框,有很多选项。
如果您正在使用 png 文件,请尝试使用更好的压缩和/或不同的颜色深度设置(如果您不使用透明度,您可以尝试将它们转换为 jpeg,尽管您可能会损失一些质量)
更改颜色深度/范围/压缩可能不会影响图像质量(无论如何不可见,如果适度使用)并且它会减小图片的大小 - 在大多数情况下无论如何,
如果你想坚持使用 Gimp (我个人从未使用过)它),它应该有一些导出功能,您可以在其中选择图像的一些设置,例如格式和选项
for batch resizing I use IrfanView (despite it's "lite-ness" it's very powerful).
It has a nice batch dialog, with a lot of options.
If you're working with png files try using better compression, and/or different color depth settings (if you're not using transparency you could try converting them to jpeg, although you might lose some quality)
changing color depth/range/compression might not affect image quality (not visibile anyway, if used with moderation) and it will decrease the size of the picture - in most of the cases anyway
if you want to stick to Gimp (I never personally used it), it should have some export features where you can select some settings for the image, like format and options
您不能在不降低质量的情况下遗漏数据。数据有意义。
您可以尝试使用改进的压缩,pngcrush 是一个工具,它会自动为您尝试多种方法并选择最好的。
减少颜色深度将减小文件大小(同时降低颜色质量)。您还可以在某些图像编辑器中打开抖动功能,但这又是质量的损失。
如果您的图像包含照片内容而不是图形,请转换为 JPEG 并使用 JPEG 质量设置,并进行一些试验。
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.
看起来,如果我有一个 2500px 宽的大 png,并且我想将其调整为 100px 宽,如果我一次将图像全部缩放到所需的大小,则图像在使用时会变得扭曲。
但是,如果我以 200 像素的小增量缩放图像并重复直到达到所需的长度,图像就不会失真。因此,如果我的分辨率为 2500 像素,那么我会将图像缩放到 2300 像素,然后缩放到 2100 像素,依此类推。比例越小,失真越小。
It seems that if I have a large png of 2500px wide and I want to resize it down to 100px wide, If I scale the image all at once the the desired size the image becomes way to distorted to use.
However If I scale the image in small increments of 200 pixels and repeat until you reach the desired length the image does not get as distorted. So if Im at 2500px then I would scale the image to 2300px then to 2100 and so on. The smaller the scale the less distortion.
任何调整大小方法都会产生一些损失,无论损失有多大。以下步骤将使您失去质量。
单层步骤
多层步骤
Any resize method will have some loss, no matter how small. Following steps will make you lose quality.
steps for a single layer
steps for multiple layers