Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在使用和UIImageJPEGRepresentation捕获图像后使用。由于某种原因,当我使用图像压缩图像时,图像底部有一条细白线。有人知道如何解决这个问题吗?AVCaptureSessionAVCaptureStillImageOutputUIImageJPEGRepresentation
UIImageJPEGRepresentation
AVCaptureSession
AVCaptureStillImageOutput
问题实际上是我正在调整图像的大小,但是这样做的比例没有对齐,所以底部有一个空像素行,默认为白色,因为文件是 jpeg。请参阅下面的链接
调整图像大小时添加细白线