问题标签 [jpeg]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
2605 浏览

c# - How to disable subsampling with .NET / GDI+?

I am trying to save a JPEG image using the Bitmap class. I noticed that sharp edges were always blury regardless of the quality level that I specify. I figured out that it is due to subsampling of one or more of the channels. How do I disable subsampling when saving the image?

I am currently using this code:

NOTE

I know that JPEG is lossy, but that's not the issue here. If I use ImageMagick and save the image with the default options, I get similar results. However, if I specify 1:1:1 subsampling, the blurring disappears.

I do not want to use PNG because I need better compression. If I save the image as BMP and then convert it manually to JPEG, I get excellent results, without blurring. Therefore, the format is not the issue here.

0 投票
4 回答
3976 浏览

image-processing - 寻找值得信赖的 JPEG 批量转换器/大小调整器

我有一批需要转换为 JPEG 的 PNG 文件。我正在寻找一个免费的值得信赖的实用程序,它将为我提供最优化的 JPEG。

我找到了一些付费实用程序,并且我有 Photoshop,但我想要一些专门用于该任务的东西,我不想意外下载间谍软件。

我真的很惊讶没有在 StackOverflow 上找到这个问题,但如果存在任何类似问题,请指出我的方向。

0 投票
16 回答
37125 浏览

c# - C#如何测试文件是jpeg?

使用 C# 如何测试文件是否为 jpeg?我应该检查 .jpg 扩展名吗?

谢谢

0 投票
2 回答
3584 浏览

c# - 无法在 C# 中通过 http 流式传输 Jpegs 图像

我有一个 Jpegs 图像流,我正在尝试使用 HTTP 将它们流式传输到 VLC

如果代码如下:

出于某种原因,如果我尝试在 Firefox 中打开流,它会返回全黑,如果我尝试使用 VLC 打开它,我会得到“无法打开流”

如果我只流式传输 1 个图像,Firefox 处理它没有问题。

提前谢谢,何塞

0 投票
3 回答
387 浏览

flash - 为什么 .jpg 在我的 flash as3 应用程序中显示为黄色?

我从我的服务器检索 .jpgs 并将它们加载到我的 as3 应用程序中。我使用 Flash CS3,而不是使用 flex。有时,某些图像会在应用程序中显示为黄色且无法读取。图像的实际原件很好,并且没有这样的泛黄,但是当我在 Flash 中加载图像时,它显示为黄色。这似乎与大小无关,因为我的大小图像显示为黄色,而有些图像则没有。

在 flashplayer 9 中查看图像时,会出现这种泛黄现象。它总是发生在同一个上,其余的都按预期出现。在 flashplayer 10 中查看图像时,它永远不会变黄,所有图像都按预期显示。

0 投票
4 回答
52433 浏览

c++ - OpenCV cvSaveImage Jpeg 压缩系数

我正在使用 OpenCV 并使用 cvSaveImage 函数保存为 jpeg,但我无法找到它使用的 Jpeg 压缩因子。

  1. 什么是 cvSaveImage(...) 的 Jpeg 压缩系数
  2. 使用 cvSaveImage(...) 时如何传递压缩因子
0 投票
1 回答
1044 浏览

c - 在 C 中使用 socket_stream 传输 jpg 文件

我想知道是否通过 socket_stream 发送带有 jpg 扩展名的文件,这会自动将字节转换为 jpg ?或者需要实现一些算法来将大量字节转换为图像......请有人解释一下我的方法吗?

0 投票
1 回答
981 浏览

windows-mobile - 在 Windows Mobile 上加载 JPEG

我正在寻找一种更快的方法将 JPEG(或 PNG?)加载到 Windows Mobile 上的 .NET 位图中...

我刚刚尝试加载 JPEG、PNG 和 GIF:

托管的 Bitmap 类可能不是最快的 - 但有人确定吗?

0 投票
3 回答
13343 浏览

c# - 使用 C# 更改 jpeg 图像的分辨率

我需要在不改变图像尺寸的情况下修改垂直和水平分辨率。

0 投票
4 回答
30087 浏览

imagemagick - 在 Linux 上转换 JPEG 颜色空间(Adobe RGB 到 sRGB)

我正在从大照片中生成缩略图和中等大小的图像。这些较小的照片用于在在线画廊中展示。许多摄影师使用Adob​​e RGB提交 JPEG 图像。我被问到缩略图和中等大小的图像是否可以使用sRGB作为在某些浏览器中显示为“平面”的图像。

我目前正在使用 ImageMagick 创建较小的版本。它有一个-colorspace选项,但这似乎并没有达到我想要的效果。

有没有其他方法可以做到这一点?另外,你觉得这样划算吗?