Skip to content

Commit

Permalink
修正图片方向
Browse files Browse the repository at this point in the history
  • Loading branch information
rztime committed Nov 19, 2024
1 parent 57b811f commit e27fc6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion RZRichTextView/Classes/RZAttachmentInfoLayerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ open class RZAttachmentInfoLayerView: UIView, RZAttachmentInfoLayerProtocol {
option.deliveryMode = .highQualityFormat
PHImageManager.default().requestImageData(for: asset, options: option) { [weak self] data, _, _, _ in
if let imageData = data {
self?.imageView.kf.setImage(with: .provider(RawImageDataProvider(data: imageData, cacheKey: asset.localIdentifier))) { _ in
self?.imageView.kf.setImage(with: .provider(RawImageDataProvider(data: imageData, cacheKey: asset.localIdentifier))) { res in
if let image = try? res.get().image, !asset.qisGif {
self?.imageView.image = image.qfixOrientation
}
self?.updateImageViewSize()
}
}
Expand Down

0 comments on commit e27fc6c

Please sign in to comment.